AVIStreamReadFormat

The AVIStreamReadFormat function reads the stream format data.

STDAPI AVIStreamReadFormat(
  PAVISTREAM pavi,  
  LONG lPos,        
  LPVOID lpFormat,  
  LONG * lpcbFormat 
);
 

Parameters

pavi
Handle of an open stream.
lPos
Position in the stream used to obtain the format data.
lpFormat
Address of a buffer to contain the format data.
lpcbFormat
Address of a location indicating the size of the memory block referenced by lpFormat. On return, the value is changed to indicate the amount of data read. If lpFormat is NULL, this parameter can be used to obtain the amount of memory needed to return the format.

Return Values

Returns zero if successful or an error otherwise.

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

AVIFile Functions and Macros Overview, AVIFile Functions