IKsPropertySet::Set method (dsound.h)

The Set method sets a property identified by a property-set GUID and a property identifier.

Syntax

HRESULT Set(
  [in] REFGUID rguidPropSet,
  [in] ULONG   ulId,
  [in] LPVOID  pInstanceData,
  [in] ULONG   ulInstanceLength,
  [in] LPVOID  pPropertyData,
  [in] ULONG   ulDataLength
);

Parameters

[in] rguidPropSet

GUID that identifies the property set.

[in] ulId

Identifier of the property within the property set.

[in] pInstanceData

Pointer to instance data for the property.

[in] ulInstanceLength

Size, in bytes, of the buffer at InstanceData.

[in] pPropertyData

Pointer to a buffer that contains the value of the property to set.

[in] ulDataLength

Size, in bytes, of the buffer at PropertyData.

Return value

Returns NOERROR if successful; otherwise, returns an error code.

Remarks

Warning

Header files ksproxy.h and dsound.h define similar but incompatible versions of the IKsPropertySet interface. Applications that require the KS proxy module should use the version defined in ksproxy.h. The DirectSound version of IKsPropertySet is described in the DirectSound reference pages in the Microsoft Windows SDK documentation. If an application must include both ksproxy.h and dsound.h, whichever header file the compiler scans first is the one whose definition of IKsPropertySet is used by the compiler.

Requirements

Requirement Value
Target Platform Desktop
Header dsound.h (include Ksproxy.h, Ksproxy.h, Dsound.h, Ksproxy.h, Ksproxy.h, Dsound.h)

See also

IKsPropertySet::Get