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