|
ProcessHelperGetProcessHandleCount 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 GetProcessHandleCount(
IntPtr processHandle,
ref uint handleCount
)
<DllImportAttribute("kernel32.dll", SetLastError := true>]
Public Shared Function GetProcessHandleCount (
processHandle As IntPtr,
ByRef handleCount As UInteger
) As Boolean
public:
[DllImportAttribute(L"kernel32.dll", SetLastError = true)]
static bool GetProcessHandleCount(
IntPtr processHandle,
unsigned int% handleCount
)
[<DllImportAttribute("kernel32.dll", SetLastError = true)>]
static member GetProcessHandleCount :
processHandle : IntPtr *
handleCount : uint32 byref -> bool
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
BooleanIf the function fails, the return value is zero. To get extended error
information, call .
See Also