CBasePin::ConnectionMediaType (Windows CE 5.0)

Send Feedback

This member function returns information about the negotiated media type for the pin connection.

HRESULT ConnectionMediaType(AM_MEDIA_TYPE* pmt);


  • pmt
    Pointer to an AM_MEDIA_TYPE structure.

    If the pin is not connected, this structure is initialized to zero; otherwise, the media type is returned in this parameter.

Return Values

Returns an HRESULT value.


This member function implements the IPin::ConnectionMediaType method.

It returns a copy of the AM_MEDIA_TYPE structure that was negotiated for the pin connection when the pin was connected.

This method fails if the pin is unconnected.

The task allocator allocates the media type's format block. Use the task allocator to free the format block, for example by calling the Win32 CoTaskMemFree function.


DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.