IDebugSystemObjects2::GetThreadIdByProcessor method (dbgeng.h)

The GetThreadIdByProcessor method returns the engine thread ID for the kernel-mode virtual thread corresponding to the specified processor.

Syntax

HRESULT GetThreadIdByProcessor(
  [in]  ULONG  Processor,
  [out] PULONG Id
);

Parameters

[in] Processor

Specifies the processor corresponding to the desired thread.

[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

This method is only available in kernel-mode debugging.

For more information about threads, see Threads and Processes.

Requirements

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