Debugging Tools for Windows |
The GetThreadIdByTeb method returns the engine thread ID of the specified thread. The thread is specified by its thread environment block (TEB).
HRESULT
IDebugSystemObjects::GetThreadIdByTeb(
IN ULONG64 Offset,
OUT PULONG Id
);
This method may also return error values. See Return Values for more details.
GetThreadIdByTeb is available in all versions of IDebugSystemObjects.
In kernel-mode debugging, this method returns the engine thread ID for the virtual thread representing the processor on which the specified thread is executing. If the thread is not executing on a processor, this method will fail.
For more information about threads, see Threads and Processes.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.