|Microsoft DirectX 9.0|
The KsProperty method retrieves or sets the value of a property. For an overview, see Property Sets for DirectMusic Ports.
HRESULT KsProperty( PKSPROPERTY pProperty, ULONG ulPropertyLength, LPVOID pvPropertyData, ULONG ulDataLength, PULONG pulBytesReturned );
Address of a KSPROPERTY structure that gives the property set, item, and operation to perform. If this property contains instance data, that data should reside in memory immediately following the structure.
Length of the memory pointed to by pProperty, including any instance data.
For a set operation, the address of a memory buffer containing data that represents the new value of the property. For a get operation, the address of a memory buffer big enough to hold the value of the property. For a basic support query, the address of a buffer at least a DWORD in size.
Length of the buffer pointed to by pvPropertyData.
On a KSPROPERTY_TYPE_GET or KSPROPERTY_TYPE_BASICSUPPORT call, address of a variable that receives the number of bytes returned in pvPropertyData by the port.
If the method succeeds, it returns S_OK.
If it fails, the method can return one of the error values shown in the following table.
Header: Declared in dmksctrl.h.