IDebugSystemObjects::GetCurrentThreadHandle method

The GetCurrentThreadHandle method returns the system handle for the current thread.

Syntax


HRESULT GetCurrentThreadHandle(
  [out]  PULONG64 Handle
);

Parameters

Handle [out]

Receives the current thread's system handle.

Return value

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

Return codeDescription
S_OK

The method was successful.

 

Remarks

In kernel-mode debugging, an artificial handle is created because the threads are virtual threads.

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

Requirements

Header

Dbgeng.h (include Dbgeng.h)

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft