IKsDataTypeHandler::KsIsMediaTypeInRanges method (ksproxy.h)

The KsIsMediaTypeInRanges method validates that a media type is within the provided data ranges.

Syntax

HRESULT KsIsMediaTypeInRanges(
  [in] PVOID DataRanges
);

Parameters

[in] DataRanges

Pointer to a buffer that contains a KSMULTIPLE_ITEM structure, followed by a sequence of extensible KSDATARANGE structures, aligned on 64-bit boundaries. The KSMULTIPLE_ITEM structure is a header that describes the size of the buffer and the number of entries in the list that follows the header.

Return value

Returns NOERROR if successful; otherwise, returns an error code.

Remarks

A client first calls the IKsDataTypeHandler::KsSetMediaType method to assign a media type that the client references in subsequent operations on the data type handler. The client then calls KsIsMediaTypeInRanges to validate that the media type is within particular data ranges.

Requirements

Requirement Value
Target Platform Desktop
Header ksproxy.h

See also

IKsDataTypeHandler::KsSetMediaType

KSDATARANGE

KSMULTIPLE_ITEM