Bewerken

Delen via


IKsDataTypeHandler::KsSetMediaType method (ksproxy.h)

The KsSetMediaType method sets the media type for a data type handler.

Syntax

HRESULT KsSetMediaType(
  [in] const AM_MEDIA_TYPE *AmMediaType
);

Parameters

[in] AmMediaType

Defines the AM_MEDIA_TYPE parameter AmMediaType.

Return value

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

Remarks

Clients can call KsSetMediaType of a single data type handler to initialize this data type handler to a particular media type from a group of many disparate media types.

Requirements

Requirement Value
Target Platform Desktop
Header ksproxy.h (include Ksproxy.h)

See also

IKsDataTypeHandler