IPersistSerializedPropStorage::SetPropertyStorage method (propsys.h)
Initializes the property store instance from the specified serialized property storage data.
Syntax
HRESULT SetPropertyStorage(
[in] PCUSERIALIZEDPROPSTORAGE psps,
[in] DWORD cb
);
Parameters
[in] psps
Type: PCUSERIALIZEDPROPSTORAGE
A pointer to the serialized property store data that will be used to initialize the property store.
[in] cb
Type: DWORD
The count of bytes contained in the serialized property storage data pointed to by psps.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The SERIALIZEDPROPSTORAGE type is defined in Propsys.h as an incomplete type. It should be treated as an array of BYTE values; the format of the data returned is not specified. The data stored as a SERIALIZEDPROPSTORAGE structure must have been obtained through a call to IPersistSerializedPropStorage::GetPropertyStorage, either directly or through persisted data that was generated by a call to that method.
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 |