Microsoft DirectX 9.0

IKsPropertySet::Set

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.

Remarks

Note   Another interface by this name exists in the dsound.h header file. The two interfaces are not compatible. The IKsControl interface, documented in the DirectShow DDK, is now the recommended interface for passing property sets between WDM drivers and user mode components.

See Also