AVIStreamWriteData function (vfw.h)

The AVIStreamWriteData function writes optional header information to the stream.

Syntax

HRESULT AVIStreamWriteData(
  PAVISTREAM pavi,
  DWORD      fcc,
  LPVOID     lp,
  LONG       cb
);

Parameters

pavi

Handle to an open stream.

fcc

Four-character code identifying the data.

lp

Pointer to a buffer containing the data to write.

cb

Number of bytes of data to write into the stream.

Return value

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

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header vfw.h
Library Vfw32.lib
DLL Avifil32.dll

See also

AVIFile Functions

AVIFile Functions and Macros