GetThreadIdByProcessor method

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

Syntax

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

Parameters

Processor

Specifies the processor corresponding to the desired thread.

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

   
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)
Library dbgeng.h