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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for