Share via


IVsDebugger.AdviseDebuggerEvents(IVsDebuggerEvents, UInt32) Method

Definition

Used by a client to get notification of debugger events.

public:
 int AdviseDebuggerEvents(Microsoft::VisualStudio::Shell::Interop::IVsDebuggerEvents ^ pSink, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdviseDebuggerEvents(Microsoft::VisualStudio::Shell::Interop::IVsDebuggerEvents const & pSink, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdviseDebuggerEvents (Microsoft.VisualStudio.Shell.Interop.IVsDebuggerEvents pSink, out uint pdwCookie);
abstract member AdviseDebuggerEvents : Microsoft.VisualStudio.Shell.Interop.IVsDebuggerEvents * uint32 -> int
Public Function AdviseDebuggerEvents (pSink As IVsDebuggerEvents, ByRef pdwCookie As UInteger) As Integer

Parameters

pSink
IVsDebuggerEvents

[in] Pointer to a IVsDebuggerEvents interface to receive event notices.

pdwCookie
UInt32

[out] Cookie returned to identify this particular sink interface. Client needs to save the cookie and use it in the call to UnadviseDebuggerEvents(UInt32).

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsDebugger::AdviseDebuggerEvents(  
   [in] IVsDebuggerEvents *psink,  
   [out] VSCOOKIE *pdwCookie  
);  

Applies to