IProviderProperties::SetValue 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.]
Sets the value of the specified property key.
Syntax
HRESULT SetValue(
[in] IFunctionInstance *pIFunctionInstance,
[in] INT_PTR iProviderInstanceContext,
[in] REFPROPERTYKEY Key,
[in] const PROPVARIANT *ppropVar
);
Parameters
[in] pIFunctionInstance
An IFunctionInstance interface.
[in] iProviderInstanceContext
The context associated with the specific function instance.
[in] Key
The property key for the property to be set.
[in] ppropVar
The property data. To remove the property from the store, specify a PROPVARIANT with the type VT_EMPTY.
Return value
Possible return values include, but are not limited to, the following.
Return code | Description |
---|---|
|
The method completed successfully. |
|
The pIFunctionInstance, pvProviderInstanceContext, or ppropVar parameter is NULL. |
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 |