IKsPropertySet::Set method

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

PropSet [in]

GUID that identifies the property set.

Id [in]

Identifier of the property within the property set.

InstanceData [in]

Pointer to instance data for the property.

InstanceLength [in]

Size, in bytes, of the buffer at InstanceData.

PropertyData [in]

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

DataLength [in]

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

Header

Ksproxy.h (include Ksproxy.h, Ksproxy.h, Dsound.h, Ksproxy.h, Ksproxy.h, or Dsound.h)

See also

IKsPropertySet::Get

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft