Share via


CBasePin::GetMediaTypeVersion (Compact 2013)

3/26/2014

Retrieves the current type version, which is used by enumerators.

Syntax

virtual LONG GetMediaTypeVersion( );

Parameters

None.

Return Value

Returns the value of m_TypeVersion by default.

To return new media types, override this member function.

Remarks

This is a virtual member function that returns the current media type version.

The base class initializes the media type enumerators to 1. A derived class can change the list of available media types. Each time it does, it should increment the version in the overriding member function.

The media type enumerators call this member function when they are called to determine if they are out of date.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBasePin Class