IDebugSystemObjects::GetThreadIdByTeb method

The GetThreadIdByTeb method returns the engine thread ID of the specified thread. The thread is specified by its thread environment block (TEB).

Syntax


HRESULT GetThreadIdByTeb(
  [in]   ULONG64 Offset,
  [out]  PULONG Id
);

Parameters

Offset [in]

Specifies the location of the thread's TEB.

Id [out]

Receives the engine thread ID.

Return value

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

Return codeDescription
S_OK

The method was successful.

 

Remarks

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

Header

Dbgeng.h (include Dbgeng.h)

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft