Debugging Tools for Windows

GetCurrentThreadSystemId

The GetCurrentThreadSystemId method returns the system thread ID of the current thread.

HRESULT
  IDebugSystemObjects::GetCurrentThreadSystemId(
    OUT PULONG  SysId
    );

Parameters

SysId
Receives the system 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

GetCurrentThreadSystemId 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

Versions:

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

Build machine: CAPEBUILD