fgi_avihead() (Fastgraph/Image)

Win32 DirectX Fastgraph/Light


int fgi_avihead (char *filename, void *header, int handle);

Function fgi_avihead (ByVal filename As String, header() As Any, handle As Long) As Long

function fgi_avihead (filename : string; var header; handle : integer) : integer;


The fgi_avihead() function reads the header of an AVI file stored in an FGI library.


filename is the name of the AVI file. It may only include a file name and extension (such as CLOCK.AVI) and must be terminated by a null character (that is, a zero byte).

header is the name of the buffer to receive the AVI file header. Its size must be at least 56 bytes.

handle is the file handle for the FGI library containing filename.

Return value

0 = Success

-1 = Error reading the FGI library

-2 = The requested file is not in the FGI library

-3 = The requested file is not an AVI file



See also

fgi_avipal(), fg_aviplay(), fg_avisize(), fg_showavi()

Fastgraph Home Page


copyright 2001 Ted Gruber Software, Inc.