AVIMakeFileFromStreams

The AVIMakeFileFromStreams function constructs an AVIFile interface pointer from separate streams.

STDAPI AVIMakeFileFromStreams(
  PAVIFILE * ppfile,       
  int nStreams,            
  PAVISTREAM * papStreams  
);
 

Parameters

ppfile
Address to contain the new file interface pointer.
nStreams
Count of the number of streams in the array of stream interface pointers referenced by papStreams.
papStreams
Address of an array of stream interface pointers.

Return Values

Returns zero if successful or an error otherwise.

Remarks

Use the AVIFileRelease function to close the file.

Other functions can use the AVIFile interface created by this function to copy and edit the streams associated with the interface. For example, you can retrieve a specific stream by using AVIFileGetStream with the file interface pointer.

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, AVIFileRelease, AVIFileGetStream