IDebugProcessEx2::Detach
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
This method informs the process that a session is no longer debugging the process.
Syntax
HRESULT Detach(
IDebugSession2* pSession
);
int Detach(
IDebugSession2 pSession
);
Parameters
pSession
[in] A value that uniquely identifies the session to detach this process from.
Return Value
If successful, returns S_OK
; otherwise, returns an error code.
Remarks
The interface passed in pSession
is to be treated only as a cookie, a value that uniquely identifies the session debug manager that originally attached to this process; none of the methods on the supplied interface are functional.