Discuss this help topic in CBFS Forum

CallbackFileSystem.StorageCharacteristics property

Filter:

Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

CallbackFileSystem     See also    

Overview

Specifies the characteristics of the storage being mounted.

Declaration

[Pascal]
    property StorageCharacteristics : TCbFsStorageCharacteristics;
    TCbFsStorageCharacteristic = (
      scFloppyDiskette,
      scReadOnlyDevice,
      Reserved,
      scWriteOnceMedia,
      scRemovableMedia,
      Reserved1,
      Reserved2,
      Reserved3,
      Reserved4,
      Reserved5,
      Reserved6,
      Reserved7,
      Reserved8,
      Reserved9,
      scShowInEjectionTray,
      scAllowEjection
    );
    TCbFsStorageCharacteristics = set of TCbFsStorageCharacteristic;

[C++ (Lib)]
    CbFsStorageCharacteristics GetStorageCharacteristics();
    void SetStorageCharacteristics(CbFsStorageCharacteristics Value);

[C++ (VCL)]
    TCbFsStorageCharacteristics StorageCharacteristics;

[C++ (.NET)]
    CbFsStorageCharacteristics StorageCharacteristics;
    typedef long CbFsStorageCharacteristics;

[C#]
    CbFsStorageCharacteristics StorageCharacteristics;
    typedef int CbFsStorageCharacteristics;

[VB.NET]
    Public Property StorageCharacteristics As CbFsStorageCharacteristics
    Type CbFsStorageCharacteristics As Integer

[Java]
    int getStorageCharacteristics();
    void setStorageCharacteristics(int value);

Values of CbFsStorageCharacteristics

[Pascal] [C++ (VCL)] [C++ (Lib)] [C++ (.NET)] [C#] [VB.NET] [Java] Meaning
scFloppyDiskette CBFS_FLOPPY_DISKETTE = 1 The mounted media is a floppy disk.
scReadOnlyDevice CBFS_READ_ONLY_DEVICE = 2 The mounted media is read-only.
scWriteOnceMedia CBFS_WRITE_ONCE_MEDIA = 8 The mounted media can be written to only once.
scRemovableMedia CBFS_REMOVABLE_MEDIA = 16 The mounted media can be removed by the user at any time.
scAutoCreateDriveLetter CBFS_AUTO_CREATE_DRIVE_LETTER = 0x00002000 If set then the system automatically creates a drive letter for the storage. When this flag is used, you need to set volume GUID as well.
scShowInEjectionTray CBFS_SHOW_IN_EJECTION_TRAY = 0x00004000 The media can be ejected by the user by using Disconnect Device icon in system notification area (tray) of Explorer. Works only for PnP storages.
scAllowEjection CBFS_ALLOW_EJECTION = 0x00008000 If the flag is set, ejection commands are handled and the storage is destroyed. Works only for PnP storages.

Description

StorageCharacteristics lets you specify the characteristics of the storage being mounted. Operating system uses various flags to optimize it's work with the storage.

For plug-n-play storages (StorageType is set to stDiskPnP) only scReadOnlyDevice and scRemovableMedia flags are supported.

In .NET and C++ API the property is a combination of zero or more flags joined together using bitwise OR operation.

Default value is "scRemovable" (i.e. by default removable storage is created).

See also

StorageType    

Discuss this help topic in CBFS Forum