The Open method initializes a file handler. Called when an application uses the AVIFileOpen function.
HRESULT Open(
PAVISTREAM pf,
LPCSTR szFile,
UINT mode
);
Returns the HRESULT defined by OLE.
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);
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.
Custom File and Stream Handlers Overview, Custom File and Stream Handler Interfaces, AVIFileOpen