BB FlashBack SDK: FBVDisk

OpenFile

Description

Opens a virtual file.

Syntax

[C#/C++]
public FBVFile* OpenFile (String sFileName, long lFlags);

[VB.NET]
Public Function OpenFile (ByVal sFileName As String, ByVal lFlags As Long) As FBVFile

Parameters

sFileName : the name of the virtual file to open.

lFlags : specifies the type of access to the object and whether changes to it can be rolled back and committed via calls to Rollback and Commit. Its value can be either:

VDISK_FLAGS_READONLY (1)

Opened readonly.

(If this and the readwrite flags are specified, the file is opened readonly.)

VDISK_FLAGS_READWRITE (2)

Opened for reading and writing

 

 

Return Values

If the function succeeds it returns zero.

If the function fails it returns 1.

See also

The FBVFile Class