Debugging Tools for Windows |
The GetCurrentThreadHandle method returns the system handle for the current thread.
HRESULT
IDebugSystemObjects::GetCurrentThreadHandle(
OUT PULONG64 Handle
);
This method may also return other error values. See Return Values for more details.
GetCurrentThreadHandle is available in all versions of IDebugSystemObjects.
In kernel-mode debugging, an artificial handle is created because the threads are virtual threads.
For more information about threads, see Threads and Processes. For details on system handles, see Handles.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.