Index   Commented   Search   About

AVIFileGetStream

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

);

Parameters

pfile

Handle of an open AVI file.

ppavi

Address of 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:

streamtypeAUDIO
Indicates an audio stream.
streamtypeMIDI
Indicates a MIDI stream.
streamtypeTEXT
Indicates a text stream.
streamtypeVIDEO
Indicates a video stream.

lParam

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

Return Values

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

AVIERR_NODATA
The file does not contain a stream corresponding to the values of fccType and lParam.
AVIERR_MEMORY
Not enough memory.

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun