IVsShell.AdviseShellPropertyChanges(IVsShellPropertyEvents, UInt32) Method

Definition

Enables clients to receive notifications of property changes to the environment.

C++/WinRT
int AdviseShellPropertyChanges(Microsoft::VisualStudio::Shell::Interop::IVsShellPropertyEvents const & pSink, [Runtime::InteropServices::Out] unsigned int & pdwCookie);

Parameters

pSink
IVsShellPropertyEvents

[in] Pointer to the IVsShellPropertyEvents interface.

pdwCookie
UInt32

[out] Pointer to an abstract handle to the client that will be notified of changes to environment properties

Returns

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

Remarks

COM Signature

From vsshell.idl:

cpp#
HRESULT IVsShell::AdviseShellPropertyChanges(  
   [in] IVsShellPropertyEvents *pSink,  
   [out] VSCOOKIE *pdwCookie  
);  

This same pdwCookie is passed into the call to UnadviseShellPropertyChanges.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022