Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperGetProcessHandleCount Method

Retrieves the number of open handles that belong to the specified process.

GetProcessHandleCount 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 GetProcessHandleCount(
	IntPtr processHandle,
	ref uint handleCount
)

Parameters

processHandle  IntPtr
A handle to the process whose handle count is being requested. The handle must have the or access right.
handleCount  UInt32
A pointer to a variable that receives the number of open handles that belong to the specified process.

Return Value

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