IVsUIHierWinClipboardHelper::AdviseClipboardHelperEvents Method (IVsUIHierWinClipboardHelperEvents^, UInt32)
Visual Studio 2015
Establishes client notification of hierarchy clipboard helper events without the hierarchy implementing IConnectionPointContainer.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int AdviseClipboardHelperEvents( IVsUIHierWinClipboardHelperEvents^ pSink, [OutAttribute] unsigned int% pdwCookie )
Parameters
- pSink
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsUIHierWinClipboardHelperEvents^
[in] IVsUIHierWinClipboardHelperEvents interface on the object requesting notification of hierarchy events.
- pdwCookie
-
Type:
System::UInt32
[out] Unique identifier for the referenced event sink. This value is required to unadvise the event sink using UnadviseClipboardHelperEvents.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsUIHierWinClipboardHelper::AdviseClipboardHelperEvents(
[in] IVsUIHierWinClipboardHelperEvents *pSink,
[out] VSCOOKIE *pdwCookie
);
Use this method to set up notification of hierarchy events related to the clipboard by sinking the hierarchy window to the hierarchy events.
Show: