QueryFullProcessImageName
Jump to navigation
Jump to search
Description
Retrieves the full name of the executable image for the specified process.
Syntax
BOOL WINAPI QueryFullProcessImageName(
_In_ HANDLE hProcess,
_In_ DWORD dwFlags,
_Out_ LPTSTR lpExeName,
_Inout_ PDWORD lpdwSize
);
Parameters
- 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. PROCESS_NAME_NATIVE
0x00000001The 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.