Index   Commented   Search   About

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

See Also

AVIFileOpen

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun