IAVIStream::WriteData

The WriteData method writes headers for a stream. Called when an application uses the AVIStreamWriteData function.

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

Parameters

ps

Pointer to the interface to a stream.

fcc

Four-character code of the stream header to write.

lpBuffer

Pointer to the buffer that contains the header data to write.

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); 
 

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

Custom File and Stream Handlers, Custom File and Stream Handler Interfaces, AVIStreamWriteData