IDebugSystemObjects4::GetThreadIdBySystemId method (dbgeng.h)

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

Syntax

HRESULT GetThreadIdBySystemId(
  [in]  ULONG  SysId,
  [out] PULONG Id
);

Parameters

[in] SysId

Specifies the system thread ID.

[out] Id

Receives the engine thread ID.

Return value

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

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

Remarks

This method is only available in user-mode debugging.

For more information about threads, see Threads and Processes.

Requirements

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