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.
Sets value and state data for a property key.
Syntax
HRESULT SetValueAndState(
[in] REFPROPERTYKEY key,
[in] const PROPVARIANT *ppropvar,
[in] PSC_STATE state
);
Parameters
[in] key
Type: REFPROPERTYKEY
A reference to a PROPERTYKEY structure identifying the property.
[in] ppropvar
Type: const PROPVARIANT*
A pointer to a PROPVARIANT structure containing the property data.
[in] state
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | propsys.h |