IPropertyStoreCache::SetValueAndState method
Sets value and state data for a property key.
Syntax
HRESULT SetValueAndState( [in] REFPROPERTYKEY key, [in] const PROPVARIANT *ppropvar, [in] PSC_STATE pstate );
Parameters
- key [in]
-
Type: REFPROPERTYKEY
A reference to a PROPERTYKEY structure identifying the property.
- ppropvar [in]
-
Type: const PROPVARIANT*
A pointer to a PROPVARIANT structure containing the property data.
- pstate [in]
-
Type: PSC_STATE
A value from the PSC_STATE enumeration declaring the state of the property.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
Show: