Advise Method of the IFunctionInstanceCollectionQuery2 Interface
Adds a notification to the query. If such a function was previously registered through IFunctionDiscovery::CreateInstanceCollectionQuery, then it will be replaced by the one passed in through the pIFunctionDiscoveryNotification parameter of this method.
Syntax
HRESULT Advise(
[in] IFunctionDiscoveryNotification* pIFunctionDiscoveryNotification
);
Parameters
- pIFunctionDiscoveryNotification
A pointer to the IFunctionDiscoveryNotification interface implemented by the calling application. It enables the Function Discovery change notification routines.
Return Value
Possible return values include, but are not limited to, the following.
Return code | Description |
---|---|
S_OK |
The notification interface is enregistered. |
E_INVALID_ARG |
The pIFunctionDiscoveryNotification parameter is not valid. |
Requirements
Client | Requires Windows Vista. |
Server | Requires Windows Server 2008. |
Header | Declared in FunctionDisicoverApi.h. |
IDL | Declared in FunctionDiscoveryApi.idl. |
See Also
IFunctionInstanceCollectionQuery2
Send comments about this topic to Microsoft
Build date: 3/18/2008