The AVIStreamOpenFromFile function opens a single stream from a file.
STDAPI AVIStreamOpenFromFile(
PAVISTREAM * ppavi,
LPCTSTR szFile,
DWORD fccType,
LONG lParam,
UINT mode,
CLSID * pclsidHandler
);
Value | Description | |
---|---|---|
streamtypeAUDIO | Indicates an audio stream. | |
streamtypeMIDI | Indicates a MIDI stream. | |
streamtypeTEXT | Indicates a text stream. | |
streamtypeVIDEO | Indicates a video stream. |
Returns zero if successful or an error otherwise.
This function calls the AVIFileOpen, AVIFileGetStream, and AVIFileRelease functions.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
Import Library: Use vfw32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
AVIFile Functions and Macros Overview, AVIFile Functions, OpenFile, AVIFileOpen, AVIFileGetStream, AVIFileRelease