AVIStreamReadFormat  SGUX6E 

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.