AVIStreamWriteData

The AVIStreamWriteData function writes optional header information to the stream.

STDAPI AVIStreamWriteData(
  PAVISTREAM pavi,  
  DWORD ckid,       
  LPVOID lpData,    
  LONG cbData       
);

Parameters

pavi

Handle to an open stream.

ckid

Four-character code identifying the data.

lpData

Pointer to a buffer containing the data to write.

cbData

Number of bytes of data to write into the stream.

Return Values

Returns zero if successful or an error otherwise. The return value AVIERR_READONLY indicates the file was opened without write access.

Remarks

Use the AVIStreamWrite function to write the multimedia content of the stream. Use AVIFileWriteData to write data that applies to an entire file.

The argument pavi is a pointer to an IAVIStream interface.

Requirements

**  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.

See Also

AVIFile Functions and Macros, AVIFile Functions, AVIStreamWrite, AVIFileWriteData