IDebugProcessEx2::Attach

Applies to: yesVisual Studio noVisual 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 now debugging the process.

Syntax

HRESULT Attach( 
   IDebugSession2* pSession
);
int Attach(
   IDebugSession2 pSession
);

Parameters

pSession
[in] A value that uniquely identifies the session attaching to this process.

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 attaching to this process; none of the methods on the supplied interface are functional.

See also