Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AVIFileGetStream function

The AVIFileGetStream function returns the address of a stream interface that is associated with a specified AVI file.

Syntax


STDAPI AVIFileGetStream(
   PAVIFILE    pfile,
   PAVISTREAM  *ppavi,
   DWORD       fccType,
   LONG        lParam
);

Parameters

pfile

Handle to an open AVI file.

ppavi

Pointer to the new stream interface.

fccType

Four-character code indicating the type of stream to open. Zero indicates any stream can be opened. The following definitions apply to the data commonly found in AVI streams.

Value Description
streamtypeAUDIOIndicates an audio stream.
streamtypeMIDIIndicates a MIDI stream.
streamtypeTEXTIndicates a text stream.
streamtypeVIDEOIndicates a video stream.

 

lParam

Count of the stream type. Identifies which occurrence of the specified stream type to access.

Return value

Returns zero if successful or an error otherwise. Possible error values include the following.

Return codeDescription
AVIERR_NODATA

The file does not contain a stream corresponding to the values of fccType and lParam.

AVIERR_MEMORY

Not enough memory.

 

Remarks

The argument pfile is a pointer to an IAVIFile interface. The argument ppavi is a pointer to an IAVIStream interface.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Vfw.h

Library

Vfw32.lib

DLL

Avifil32.dll

See also

AVIFile Functions and Macros
AVIFile Functions

 

 

Show: