Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[Function Discovery is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Creates a function instance collection.
Syntax
HRESULT CreateFunctionInstanceCollection(
[out] IFunctionInstanceCollection **ppIFunctionInstanceCollection
);
Parameters
[out] ppIFunctionInstanceCollection
A pointer to an IFunctionInstanceCollection interface pointer.
Return value
This method can return one of these values.
Possible return values include, but are not limited to, the following.
| Return code | Description |
|---|---|
|
The method completed successfully. |
|
The value of ppIFunctionInstanceCollection is invalid. |
|
The method is unable to allocate the memory required to perform this operation. |
Remarks
Providers that return results synchronously through the ppIFunctionInstanceCollection parameter of the IFunctionDiscoveryProvider::Query method can use this to create a collection to return the results with.
Client programmers can create and use the Function Discovery instance collection object, as it can also be created using CoCreateInstance.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| Target Platform | Windows |
| Header | functiondiscoveryprovider.h |