The AVIFileCreateStream function creates a new stream in an existing file and creates an interface to the new stream.
STDAPI AVIFileCreateStream( PAVIFILE pfile, PAVISTREAM * ppavi, AVISTREAMINFO * psi );
Handle to an open AVI file.
Pointer to the new stream interface.
Pointer to a structure containing information about the new stream, including the stream type and its sample rate.
Returns zero if successful or an error otherwise. Unless the file has been opened with write permission, this function returns AVIERR_READONLY.
This function starts a reference count for the new stream.
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Vfw.h.
Library: Use Vfw32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000/XP.