ULIOT (located in \TOOLKIT\SAMPLES\MM\ULTIMOIO) provides a detailed example of what you need to consider when writing I/O procedures for software motion video file formats. This sample program includes CODEC support and illustrates how to integrate common and file-format-specific code to support multiple I/O procedures.