Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SetCurrentThreadId method makes the specified thread the current thread.
Syntax
HRESULT SetCurrentThreadId(
[in] ULONG Id
);
Parameters
[in] Id
Specifies the engine thread ID of the thread that is to become the current thread.
Return value
This method may also return other error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
|
No thread with the specified ID was found. |
Remarks
This method may also change the current process, current target, and current computer.
If the thread is changed, the callback IDebugEventCallbacks::ChangeEngineState will be called with the DEBUG_CES_CURRENT_THREAD bit set.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |