IKsPropertySet::QuerySupported method

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The QuerySupported method determines whether an object supports a specified property set.

Syntax

HRESULT QuerySupported(
  [in]  REFGUID guidPropSet,
  [in]  DWORD   dwPropID,
  [out] DWORD   *pTypeSupport
);

Parameters

guidPropSet [in]

Property set GUID.

dwPropID [in]

Identifier of the property within the property set.

pTypeSupport [out]

Pointer to a value in which to store flags indicating the support provided by the driver. Supported flags include the following.

Value Description
KSPROPERTY_SUPPORT_GET You can retrieve the property by calling the IKsPropertySet::Get method.
KSPROPERTY_SUPPORT_SET You can change the property by calling IKsPropertySet::Set.

 

Return value

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK
The specified property set and property ID combination is supported.
E_NOTIMPL
Property set is not supported.
E_PROP_ID_UNSUPPORTED
Property ID is not supported for the specified property set.
E_PROP_SET_UNSUPPORTED
Property set is not supported.

 

Remarks

Note

Another interface by this name exists in the dsound.h header file. The two interfaces are not compatible. The IKsControl interface, documented in the DirectShow DDK, is now the recommended interface for passing property sets between WDM drivers and user mode components.

 

You must include Ks.h before Ksproxy.h.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Ks.h;
Ksproxy.h
Library
Strmiids.lib

See also

Error and Success Codes

IKsPropertySet Interface

Property Sets