IDebugSystemObjects2::GetCurrentThreadId method (dbgeng.h)

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

Syntax

HRESULT GetCurrentThreadId(
  [out] PULONG Id
);

Parameters

[out] Id

Receives the engine thread ID.

Return value

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

Return code Description
S_OK
The method was successful.

Remarks

For more information about threads, see Threads and Processes.

Requirements

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)