Freigeben über


IVsShell.AdviseBroadcastMessages Method

Enables clients to receive messages that are typically broadcast only to the main application window.

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

Syntax

'Declaration
Function AdviseBroadcastMessages ( _
    pSink As IVsBroadcastMessageEvents, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
'Usage
Dim instance As IVsShell
Dim pSink As IVsBroadcastMessageEvents
Dim pdwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.AdviseBroadcastMessages(pSink, _
    pdwCookie)
int AdviseBroadcastMessages(
    IVsBroadcastMessageEvents pSink,
    out uint pdwCookie
)
int AdviseBroadcastMessages(
    [InAttribute] IVsBroadcastMessageEvents^ pSink, 
    [OutAttribute] unsigned int% pdwCookie
)
function AdviseBroadcastMessages(
    pSink : IVsBroadcastMessageEvents, 
    pdwCookie : uint
) : int

Parameters

  • pdwCookie
    Type: System.UInt32%

    [out] Pointer to an abstract handle required to unadvise the client of broadcast messages in the environment.

Return Value

Type: System.Int32

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsShell::AdviseBroadcastMessages(
   [in] IVsBroadcastMessageEvents *pSink,
   [out] VSCOOKIE *pdwCookie
);

This method allows clients to receive specific messages typically broadcast only to the main environment window. These messages include system messages, such as color palette and font changes.

Permissions

See Also

Reference

IVsShell Interface

IVsShell Members

Microsoft.VisualStudio.Shell.Interop Namespace