This documentation is archived and is not being maintained.

IVsCfgProvider2.AdviseCfgProviderEvents Method

Registers the caller for configuration event notification.

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

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



[in] Pointer to the IVsCfgProviderEvents interface to be called to provide notification of configuration events.


[out] Pointer to a token representing the completed registration.

Return Value

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

COM Signature

From vsshell.idl:

HRESULT IVsCfgProvider2::AdviseCfgProviderEvents(
   [in] IVsCfgProviderEvents *pCPE,
   [out] VSCOOKIE *pdwCookie

AdviseCfgProviderEvents is called by the environment. The environment implements the five methods of IVsCfgProviderEvents — one for each type of configuration event. For example, when a platform name is added, the project responsible for the change calls OnPlatformNameAdded.