The AVIFileGetStream function returns the address of a stream interface that is associated with a specified AVI file.
STDAPI AVIFileGetStream(
PAVIFILE pfile,
PAVISTREAM * ppavi,
DWORD fccType,
LONG lParam
);
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. Possible error values include the following:
Value | Description |
---|---|
AVIERR_NODATA | The file does not contain a stream corresponding to the values of fccType and lParam. |
AVIERR_MEMORY | Not enough memory. |
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.
AVIFile Functions and Macros Overview, AVIFile Functions