GetProcessImageFileName function kernel32

int GetProcessImageFileName(
  1. int hProcess,
  2. Pointer<Utf16> lpImageFileName,
  3. int nSize
)

Retrieves the name of the executable file for the specified process.

DWORD K32GetProcessImageFileNameW(
  [in]  HANDLE hProcess,
  [out] LPWSTR lpImageFileName,
  [in]  DWORD  nSize
);

Implementation

int GetProcessImageFileName(
        int hProcess, Pointer<Utf16> lpImageFileName, int nSize) =>
    _K32GetProcessImageFileName(hProcess, lpImageFileName, nSize);