IKsPropertySet::Set

 
Microsoft DirectShow 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

[in, size_is(cbInstanceData)] Pointer to a buffer that contains instance data for the property.

cbInstanceData

[in] Size of the pInstanceData buffer, in bytes.

pPropData

[in, size_is(cbPropData)]  Pointer to a buffer that contains the value of the property.

cbPropData

[in]  Sise of the pPropData buffer, in bytes.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code 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.

Requirements

Header: Include Ks.h, Ksproxy.h. You must include Ks.h before Ksproxy.h.

Library: Use Strmiids.lib.

See Also