LocalHookGetProcessIdByHandle Method |
Tries to get the underlying process ID for a given handle.
Namespace:
EasyHook
Assembly:
EasyHook (in EasyHook.dll) Version: 2.7.6684.0 (2.7.6684.0)
Syntax public static int GetProcessIdByHandle(
IntPtr InProcessHandle
)
Public Shared Function GetProcessIdByHandle (
InProcessHandle As IntPtr
) As Integer
public:
static int GetProcessIdByHandle(
IntPtr InProcessHandle
)
static member GetProcessIdByHandle :
InProcessHandle : IntPtr -> int
Parameters
- InProcessHandle
- Type: SystemIntPtr
A valid process handle.
Return Value
Type:
Int32A valid process ID associated with the given process handle.
Exceptions Remarks
This is not always possible. The handle has to be opened with PROCESS_QUERY_INFORMATION
access.
See Also