KsGetMediaTypeCount function (ksproxy.h)
The KsGetMediaTypeCount function returns the number of available media types on a pin factory identifier.
Syntax
KSDDKAPI HRESULT KsGetMediaTypeCount(
[in] HANDLE FilterHandle,
[in] ULONG PinFactoryId,
[out] ULONG *MediaTypeCount
);
Parameters
[in] FilterHandle
Handle to the filter that contains the pin factory to query.
[in] PinFactoryId
Identifier of the pin factory against which the number of media types is being returned.
[out] MediaTypeCount
Pointer to a variable to receive the number of media types.
Return value
Returns NOERROR if successful; otherwise, returns an error code.
Remarks
The number of available media types that KsGetMediaTypeCount returns is equal to the number of available data ranges.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | ksproxy.h (include Ksproxy.h) |
Library | Ksproxy.lib |