IFunctionDiscoveryServiceProvider::Initialize method (functiondiscoveryprovider.h)
[Function Discovery is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Initializes an object that provides a specific interface that has been bound to the resource represented by the function instance.
HRESULT Initialize( [in] IFunctionInstance *pIFunctionInstance, [in] REFIID riid, [out] void **ppv );
A pointer to an IFunctionInstance interface that represents the underlying resource.
A reference to the identifier of the interface to be used to communicate with the object.
The interface pointer requested in riid. Upon successful return, *ppv contains the requested interface pointer. Upon failure, *ppv contains NULL.
Possible return values include, but are not limited to, the following.
||The method completed successfully.|
||One of the parameters contains an invalid argument.|
Any error code indicates failure. The provider should return an appropriate error code if it is unable to create the desired object.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|