Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IAVIFile::Open method

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

Syntax


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

Parameters

pf

Pointer to a buffer that receives a pointer to the interface to a file.

szFile

Pointer to a null-terminated string that contains the filename.

mode

Flags for the open operation.

Return value

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


Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Vfw.h

Library

Vfw32.lib

See also

Custom File and Stream Handlers
Custom File and Stream Handler Interfaces

 

 

Community Additions

Show:
© 2015 Microsoft