IAVIFile::ReadData

The ReadData method reads file headers. Called when an application uses the AVIFileReadData function.

HRESULT ReadData (
  PAVISTREAM ps,    
  DWORD fcc,        
  LPVOID lpBuffer,  
  LONG *lpcbBuffer  
);
 

Parameters

ps
Address of the interface to a file.
fcc
Four-character code of the header to read.
lpBuffer
Address of the buffer for the data.
lpcbBuffer
Size, in bytes, of the buffer specified by lpBuffer. When this method returns control to the application, the contents of this parameter specifies the amount of data read.

Return Values

Returns the HRESULT defined by OLE.

Remarks

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

HRESULT ReadData(DWORD fcc, LPVOID lp, LONG *lpcb); 
 

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, AVIFileReadData