IMFReadWriteClassFactory interface (mfreadwrite.h)

Creates an instance of either the sink writer or the source reader.

Inheritance

The IMFReadWriteClassFactory interface inherits from the IUnknown interface. IMFReadWriteClassFactory also has these types of members:

Methods

The IMFReadWriteClassFactory interface has these methods.

 
IMFReadWriteClassFactory::CreateInstanceFromObject

Creates an instance of the sink writer or source reader, given an IUnknown pointer.
IMFReadWriteClassFactory::CreateInstanceFromURL

Creates an instance of the sink writer or source reader, given a URL.

Remarks

To get a pointer to this interface, call the CoCreateInstance function. The CLSID is CLSID_MFReadWriteClassFactory. Call the MFStartup function before using the interface.

As an alternative to using this interface, you can call any of the following functions:

Internally, these functions use the IMFReadWriteClassFactory interface.

This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header mfreadwrite.h

See also

IMFSinkWriter

IMFSourceReader

Media Foundation Interfaces