LocalHookGetThreadIdByHandle Method |
Tries to get the underlying thread 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 GetThreadIdByHandle(
IntPtr InThreadHandle
)
Public Shared Function GetThreadIdByHandle (
InThreadHandle As IntPtr
) As Integer
public:
static int GetThreadIdByHandle(
IntPtr InThreadHandle
)
static member GetThreadIdByHandle :
InThreadHandle : IntPtr -> int
Parameters
- InThreadHandle
- Type: SystemIntPtr
A valid thread handle.
Return Value
Type:
Int32A valid thread ID associated with the given thread handle.
Exceptions Remarks
This is not always possible. The handle has to be opened with THREAD_QUERY_INFORMATION
access.
See Also