IMediaTypeInfo Interface

The filter graph manager exposes the IMediaTypeInfo interface to allow access by Automation client applications such as Microsoft® Visual Basic® to the media type information associated with pins on filters.

This interface is implemented by the filter graph manager for use by Automation client applications, such as Visual Basic.

Automation-compatible applications retrieve an object supporting this interface by calling the IPinInfo::get_ConnectionMediaType method. This interface then presents the major and minor media types as properties on an IMediaTypeInfo object.

Methods in Vtable Order

IUnknown methodsDescription
QueryInterface Retrieves pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.
IDispatch methodsDescription
GetTypeInfoCount Determines whether there is type information available for this dispinterface.
GetTypeInfo Retrieves the type information for this dispinterface if GetTypeInfoCount returned successfully.
GetIDsOfNames Converts text names of properties and methods (including arguments) to their corresponding DISPIDs.
Invoke Calls a method or accesses a property in this dispinterface if given a DISPID and any other necessary parameters.
IMediaTypeInfo methodsDescription
get_Type Retrieves the GUID as a string.
get_Subtype Retrieves the subtype GUID as a string.

IMediaTypeInfo::get_Subtype

IMediaTypeInfo Interface

Retrieves the subtype GUID as a string.

Syntax

HRESULT get_Subtype(
    BSTR *strType
);

Parameters

strType
[out, retval] Pointer to a string containing the subtype GUID.

Return Value

Returns an HRESULT value.

IMediaTypeInfo::get_Type

IMediaTypeInfo Interface

Retrieves the major type GUID as a string.

Syntax

HRESULT get_Type(
    BSTR *strType
);

Parameters

strType
[out, retval] Pointer to a string containing the major type GUID.

Return Value

Returns an HRESULT value.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.