Debugging Tools for Windows

GetCurrentThreadId

The GetCurrentThreadId method returns the engine thread ID for the current thread.

HRESULT
  IDebugSystemObjects::GetCurrentThreadId(
    OUT PULONG  Id
    );

Parameters

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

GetCurrentThreadId is available in all versions of IDebugSystemObjects.

Comments

For more information about threads, see Threads and Processes.

Requirements

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

Build machine: CAPEBUILD