IDebugSystemObjects4::SetCurrentSystemId method (dbgeng.h)
The SetCurrentSystemId method makes the specified target the current target.
Syntax
HRESULT SetCurrentSystemId(
[in] ULONG Id
);
Parameters
[in] Id
Specifies the engine target ID for the target that is to become the current target.
Return value
This method may also return error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
|
No process with the given ID was found. |
Remarks
This method also sets the current thread and current process, and may change the current computer.
If the current target 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) |