// ksproxy.h
KSDDKAPI HRESULT KsGetMediaTypeCount(
[in] HANDLE FilterHandle,
[in] ULONG PinFactoryId,
[out] ULONG *MediaTypeCount
);
View the official Windows Driver Kit DDI referenceNo description available.
The KsGetMediaTypeCount function returns the number of available media types on a pin factory identifier.
FilterHandle [in]Handle to the filter that contains the pin factory to query.
PinFactoryId [in]Identifier of the pin factory against which the number of media types is being returned.
MediaTypeCount [out]Pointer to a variable to receive the number of media types.
Returns NOERROR if successful; otherwise, returns an error code.
The number of available media types that KsGetMediaTypeCount returns is equal to the number of available data ranges.