IAVIFile::WriteData

The WriteData method writes file headers. Called when an application uses the AVIFileWriteData function.

HRESULT AVIBallWriteData(
  PAVISTREAM ps,    
  DWORD fcc,        
  LPVOID lpBuffer,  
  LONG cbBuffer     
);
 

Parameters

ps
Address of the interface to a file.
fcc
Four-character code of the header to write.
lpBuffer
Address of the buffer for the data.
cbBuffer
Size, in bytes, of the buffer specified by lpBuffer.

Return Values

Returns the HRESULT defined by OLE.

Remarks

For handlers written in C++, WriteData has the following syntax:

HRESULT WriteData(DWORD fcc, LPVOID lpBuffer, LONG cbBuffer); 
 

QuickInfo

  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.

See Also

Custom File and Stream Handlers Overview, Custom File and Stream Handler Interfaces, AVIFileWriteData