The QuerySupport method ascertains whether a property in a property set is supported on the port or device.
HRESULT QuerySupport( REFGUID rguidPropSet, ULONG ulId, PULONG pulTypeSupport );
Value | Description |
KSPROPERTY_SUPPORT_GET | The property item may be retrieved. |
KSPROPERTY_SUPPORT_SET | The property item may be set. |
Return values are determined by the designer of the property set.
If the method succeeds, the return value may be S_OK. (See Remarks.)
If it fails, the method may return one of the following error values:
Return code |
E_NOTIMPL (See Remarks.) |
E_POINTER |
Whether it is valid to support some properties within the set but not others depends on the definition of the property set. Consult the hardware manufacturer's specification for the property set of interest.
Some implementations may return S_OK when the property is not supported, and others may return E_NOTIMPL. To be sure that a property is supported, check both the return value of the method and the value returned in pulTypeSupport. If S_OK is returned but pulTypeSupport does not contain a valid flag, the property is not supported.
Header: Declared in Dsound.h.
Import Library: Use Dsound3d.dll.