The AVIStreamWrite function writes data to a stream.
STDAPI AVIStreamWrite( PAVISTREAM pavi, LONG lStart, LONG lSamples, LPVOID lpBuffer, LONG cbBuffer, DWORD dwFlags, LONG * plSampWritten, LONG * plBytesWritten );
Handle to an open stream.
First sample to write.
Number of samples to write.
Pointer to a buffer containing the data to write.
Size of the buffer referenced by lpBuffer.
Flag associated with this data. The following flag is defined:
Indicates this data does not rely on preceding data in the file.
Pointer to a buffer that receives the number of samples written. This can be set to NULL.
Pointer to a buffer that receives the number of bytes written. This can be set to NULL.
Returns zero if successful or an error otherwise.
The default AVI file handler supports writing only at the end of a stream. The "WAVE" file handler supports writing anywhere.
This function overwrites existing data, rather than inserting new data.
The argument pavi is a pointer to an IAVIStream interface.
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.