Debugging Tools for Windows

GetThreadIdByDataOffset

The GetThreadIdByDataOffset method returns the engine thread ID for the specified thread. The thread is specified by its system data structure.

HRESULT
  IDebugSystemObjects::GetThreadIdByDataOffset(
    IN ULONG64  Offset,
    OUT PULONG  Id
    );

Parameters

Offset
Specifies the location of the system data structure for the thread.
Id
Receives the engine thread ID.

Return Value

S_OK
The method was successful.

This method may also return error values. See Return Values for more details.

Interface Version

GetThreadIdByDataOffset is available in all versions of IDebugSystemObjects.

Comments

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.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

Build machine: CAPEBUILD