IAVIFile::CreateStream

The CreateStream method creates a stream for writing. Called when an application uses the AVIFileCreateStream function.

HRESULT CreateStream(
  PAVIFILE pf,           
  PAVISTREAM *ppstream,  
  AVISTREAMINFO *psi     
);
 

Parameters

pf
Address of the interface to a file.
ppStream
Address to contain a pointer to the interface to the new stream.
psi
Address of an AVISTREAMINFO structure defining the stream to create.

Return Values

Returns HRESULT defined by OLE.

Remarks

For handlers written in C++, CreateStream has the following syntax:

HRESULT CreateStream(PAVISTREAM *ppStream, 
    AVISTREAMINFO *psi); 
 

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

Custom File and Stream Handlers Overview, Custom File and Stream Handler Interfaces, AVIFileCreateStream, AVISTREAMINFO