This documentation is archived and is not being maintained.

IVsUIHierWinClipboardHelper.AdviseClipboardHelperEvents Method

Establishes client notification of hierarchy clipboard helper events without the hierarchy implementing IConnectionPointContainer.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in

int AdviseClipboardHelperEvents (
	[InAttribute] IVsUIHierWinClipboardHelperEvents pSink,
	out uint pdwCookie
int AdviseClipboardHelperEvents (
	/** @attribute InAttribute() */ IVsUIHierWinClipboardHelperEvents pSink, 
	/** @attribute OutAttribute() */ /** @ref */ UInt32 pdwCookie
JScript does not support passing value-type arguments by reference.



[in] IVsUIHierWinClipboardHelperEvents interface on the object requesting notification of hierarchy events.


[out] Unique identifier for the referenced event sink. This value is required to unadvise the event sink using UnadviseClipboardHelperEvents.

Return Value

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

COM Signature

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.