This topic has not yet been rated - Rate this topic

IAVIFile::WriteData method

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

Syntax


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

Parameters

ps

Pointer to the interface to a file.

fcc

Four-character code of the header to write.

lpBuffer

Pointer to the buffer for the data.

cbBuffer

Size, in bytes, of the buffer specified by lpBuffer.

Return value

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Vfw.h

Library

Vfw32.lib

See also

Custom File and Stream Handlers
Custom File and Stream Handler Interfaces

 

 

Build date: 10/27/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.