Partilhar via


IDebugProcessEx2::Attach

This method informs the process that a session is now debugging the process.

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

Reference

IDebugProcessEx2