BB FlashBack SDK: FBVDisk

Open

Description

Opens a virtual disk, from the physical file specified.

Syntax

[C#/C++]
public void Open (String sFileName, long lFlags, long* lResult);

[VB.NET]
Public Sub Open (ByVal sFileName As String, ByVal lFlags As Long, ByRef lResult As Long)

Parameters

sFileName : the name of the physical 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 any combination of:

VDISK_FLAGS_READONLY (1)

Opened readonly.

If this and the readwrite flags are specified, the disk is opened readonly.

VDISK_FLAGS_READWRITE (2)

Opened for reading and writing

VDISK_FLAGS_UNDO
(4)

This flag enables the facility for rolling back changes made to the disk and files by using the FBVDisk::Rollback and FBVDisk::Commit methods.

lResult : on return from function call, this is set according to success. 0 = successful, any other value = not successful.

 

Remarks

The file should not be open in an FBEditor object when attempting to open it via the FBVDisk class.