IAVIFile::Open

The Open method initializes a file handler. Called when an application uses the AVIFileOpen function.

HRESULT Open(
  PAVISTREAM pf,  
  LPCSTR szFile,  
  UINT mode       
);
 

Parameters

pf
Address to contain a pointer to the interface to a file.
szFile
Address of a null-terminated string that contains the filename.
mode
Flags for the open operation.

Return Values

Returns the HRESULT defined by OLE.

Remarks

This method is always the first method called, regardless of whether your application is reading or writing a file.

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

HRESULT Open(LPCSTR szFile, UINT mode); 
 

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, AVIFileOpen