IAVIStream::ReadData method (vfw.h)

The ReadData method reads data headers of a stream. Called when an application uses the AVIStreamReadData function.

Syntax

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

Parameters

fcc

Four-character code of the stream header to read.

lp

Pointer to the buffer to contain the header data.

lpcb

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

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header vfw.h
Library Vfw32.lib

See also

Custom File and Stream Handler Interfaces

Custom File and Stream Handlers