IDebugSystemObjects::GetThreadIdByHandle method

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

Syntax


HRESULT GetThreadIdByHandle(
  [in]  ULONG64 Handle,
  [out] PULONG  Id
);

Parameters

Handle [in]

Specifies the system handle of the thread whose thread ID is requested.

Id [out]

Receives the engine thread ID.

Return value

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

Return codeDescription
S_OK

The method was successful.

 

Remarks

In kernel-mode debugging, because the handle is an artificial handle for a processor, this method returns the engine thread ID for the virtual thread representing that processor.

For more information about threads, see Threads and Processes. For details on system handles, see Handles.

Requirements

Target platform

Desktop

Header

Dbgeng.h (include Dbgeng.h)

 

 

Send comments about this topic to Microsoft

表示:
© 2015 Microsoft