Microsoft DirectX 8.1 (C++) |
The Set method sets a property identified by a property set GUID and a property ID.
Syntax
HRESULT Set(
REFGUID guidPropSet,
DWORD dwPropID,
LPVOID pInstanceData,
DWORD cbInstanceData,
LPVOID pPropData,
DWORD cbPropData
);
Parameters
guidPropSet
[in] Property set GUID.
dwPropID
[in] Identifier of the property within the property set.
pInstanceData
[out, size_is(cbInstanceData)] Pointer to instance data for the property.
cbInstanceData
[in] Number of bytes in the buffer to which pInstanceData points.
pPropData
[out, size_is(cbPropData)] Pointer to the retrieved buffer, which contains the value of the property.
cbPropData
[in] Number of bytes in the buffer to which pPropData points.
Return Value
Returns an HRESULT value. Possible values include the following.
Value | Description |
S_OK | Success. |
E_PROP_SET_UNSUPPORTED | The property set is not supported. |
E_PROP_ID_UNSUPPORTED | The property ID is not supported for the specified property set. |
See Also