The SetDebugOptions method of the IRemoteProcessEx interface changes the debugger flags and indicates if any could not be changed because of the current state of the VM.
HRESULT SetDebugOptions(DWORD dwOptions);
S_OK -- all flags were modified as specified.
S_FALSE -- some flags could not be modified as specified.
E_FAIL -- no flags could be modified.
[in] dwOptions | The requested settings for the debugger flags. |