Debugging Tools for Windows

GetThreadIdBySystemId

The GetThreadIdBySystemId method returns the engine thread ID for the specified thread. The thread is specified by its system thread ID.

HRESULT
  IDebugSystemObjects::GetThreadIdBySystemId(
    IN ULONG  SysId,
    OUT PULONG  Id
    );

Parameters

SysId
Specifies the system thread ID.
Id
Receives the engine thread ID.

Return Value

S_OK
The method was successful.
E_NOTIMPL
The target is a kernel-mode target.

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

Interface Version

GetThreadIdBySystemId is available in all versions of IDebugSystemObjects.

Comments

This method is only available in user-mode debugging.

For more information about threads, see Threads and Processes.

Requirements

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

Build machine: CAPEBUILD