The AVIStreamWriteData function writes optional header information to the stream.
STDAPI AVIStreamWriteData(
PAVISTREAM pavi,
DWORD ckid,
LPVOID lpData,
LONG cbData
);
Returns zero if successful or an error otherwise. The return value AVIERR_READONLY indicates the file was opened without write access.
Use the AVIStreamWrite function to write the multimedia content of the stream. Use AVIFileWriteData to write data that applies to an entire file.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
Import Library: Use vfw32.lib.
AVIFile Functions and Macros Overview, AVIFile Functions, AVIStreamWrite, AVIFileWriteData