ScnLib_GetGamePath()

ScnLib_GetGamePathA/W()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_GetGamePathA(LPSTR pszPath);
__declspec(dllimport) void __stdcall ScnLib_GetGamePathW(LPWSTR pwszPath);
C# [DllImport("ScnLib.dll", CharSet = CharSet.Unicode)] public static extern void ScnLib_GetGamePathW(StringBuilder Path);
Basic Public Declare Unicode Sub ScnLib_GetGamePathW Lib "ScnLib.dll" (ByVal Path As StringBuilder)
Delphi procedure ScnLib_GetGamePathA(Path: PAnsiChar); stdcall; external 'ScnLib.dll';
procedure ScnLib_GetGamePathW(Path: PWideChar); stdcall; external 'ScnLib.dll';
  • Description
    Obtain the file path of the executable of the game process currently being captured via the API-hook method.

  • Parameters
    • Path [out]
      The string buffer allocated to receive the file path of the executable. Ensure that the buffer has a capacity greater than 260 characters. A returned empty string signifies that no game process is currently being captured via the API-hook method.
  • Return Value
    None.

  • Remarks
    Use this function to obtain the file path of the executable of the game process currently being captured via the API-hook method.

  • See Also
    ScnLib_EnableGameCaptureMode()
    ScnLib_GetGameWnd()

Try the SDK for FREE SDK APIs overview