|
ProcessHelperQueryFullProcessImageName Method |
Namespace: Xcalibur.NativeMethods.V2.ProcessesAssembly: 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
)
<DllImportAttribute("kernel32.dll", SetLastError := true>]
Public Shared Function QueryFullProcessImageName (
processHandle As IntPtr,
processNameType As ProcessNamePathTypes,
<OutAttribute> exeName As StringBuilder,
ByRef size As Integer
) As Boolean
public:
[DllImportAttribute(L"kernel32.dll", SetLastError = true)]
static bool QueryFullProcessImageName(
IntPtr processHandle,
[InAttribute] ProcessNamePathTypes processNameType,
[OutAttribute] StringBuilder^ exeName,
int% size
)
[<DllImportAttribute("kernel32.dll", SetLastError = true)>]
static member QueryFullProcessImageName :
processHandle : IntPtr *
processNameType : ProcessNamePathTypes *
exeName : StringBuilder byref *
size : int byref -> bool
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
BooleanIf the function fails, the return value is zero. To get extended error
information, call .
See Also