Debugging Tools for Windows

GetThreadIdByProcessor

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

HRESULT
  IDebugSystemObjects::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

S_OK
The method was successful.

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

Interface Version

GetThreadIdByProcessor is available in all versions of IDebugSystemObjects.

Comments

This method is only available in kernel-mode debugging.

For more information about threads, see Threads and Processes.

Requirements

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

Build machine: CAPEBUILD