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

Pointer to the interface to a file.

ppstream

Pointer to a buffer that receives a pointer to the interface to the new stream.

psi

Pointer to 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); 
 

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Vfw.h.
**  Library:** Use Vfw32.lib.

See Also

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