IKsPropertySet::Set method (ksproxy.h)

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

Syntax

HRESULT Set(
  [in] REFGUID PropSet,
  [in] ULONG   Id,
  [in] LPVOID  InstanceData,
  [in] ULONG   InstanceLength,
  [in] LPVOID  PropertyData,
  [in] ULONG   DataLength
);

Parameters

[in] PropSet

GUID that identifies the property set.

[in] Id

Identifier of the property within the property set.

[in] InstanceData

Pointer to instance data for the property.

[in] InstanceLength

Size, in bytes, of the buffer at InstanceData.

[in] PropertyData

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

[in] DataLength

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. 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 ksproxy.h (include Ksproxy.h, Dsound.h)

See also

IKsPropertySet::Get