Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IAVIFile::ReadData method

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

Syntax


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

Parameters

ps

Pointer to the interface to a file.

fcc

Four-character code of the header to read.

lpBuffer

Pointer to 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 value

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


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

 

 

Show: