The GetThreadIdByHandle method returns the engine thread ID for the specified thread. The thread is specified by its system handle.
HRESULT GetThreadIdByHandle( ULONG64 Handle, PULONG Id );
Specifies the system handle of the thread whose thread ID is requested.
Receives the engine thread ID.
This method may also return error values. See Return Values for more details.
||The method was successful.|
In kernel-mode debugging, because the handle is an artificial handle for a processor, this method returns the engine thread ID for the virtual thread representing that processor.
|Header||dbgeng.h (include Dbgeng.h)|