Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperQueryFullProcessImageName Method

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

QueryFullProcessImageName function


Namespace: Xcalibur.NativeMethods.V2.Processes
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("kernel32.dll", SetLastError = true)]
public static bool QueryFullProcessImageName(
	IntPtr processHandle,
	ProcessNamePathTypes processNameType,
	StringBuilder exeName,
	ref int size
)

Parameters

processHandle  IntPtr
A handle to the process. The handle must have the or access right.
processNameType  ProcessNamePathTypes
value associated with the request.
exeName  StringBuilder
The path to the executable image. If the function succeeds, this string is null-terminated.
size  Int32
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.

Return Value

Boolean
If the function fails, the return value is zero. To get extended error information, call .
See Also