From aldeid
Jump to navigation Jump to search


Retrieves the full name of the executable image for the specified process.


BOOL WINAPI QueryFullProcessImageName(
  _In_    HANDLE hProcess,
  _In_    DWORD  dwFlags,
  _Out_   LPTSTR lpExeName,
  _Inout_ PDWORD lpdwSize


hProcess [in]
A handle to the process. This handle must be created with the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right.
dwFlags [in]
This parameter can be one of the following values.
Value Meaning
0 The name should use the Win32 path format.
The name should use the native system path format.
lpExeName [out]
The path to the executable image. If the function succeeds, this string is null-terminated.
lpdwSize [in, out]
On input, specifies the size of the lpExeName buffer, in characters. On success, receives the number of characters written to the buffer, not including the null-terminating character.