CBDirect Class

Properties   Methods   Events   Configuration Settings   Errors  

The CBDirect class provides applications with low-level, direct access to disks and memory in Windows.

Syntax

cbfsdirect.Cbdirect

Remarks

The CBDirect class is used to gain low-level, direct access to disks and memory in Windows. The class allows bypassing certain Windows access restrictions, even under limited user accounts.

Getting Started

All of the CBDirect class's methods are independent, and can be called immediately after creating an instance of the class.

Here's how to get up and running:

  1. If the system driver hasn't been installed yet, call the Install method to do so. This only needs to be done once.
    • In production, the system driver can be installed (or updated) ahead-of-time by the application's installation script using the Installer DLL. Please refer to the Driver Installation topic for more information.
  2. Call the class's methods as needed.
  3. To uninstall the system driver, call the Uninstall method. This should not be done as part of the driver upgrade process.
    • In production, the system driver can be uninstalled by the application's uninstallation script using the Installer DLL. Please refer to the Driver Installation topic for more information.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

TagStores application-defined data specific to this instance of the class.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

ConfigSets or retrieves a configuration setting.
CreateFileCreates or opens a file or directory by passing the request directly to the filesystem.
CreateFileAsStreamCreates or opens a file as a stream by passing the request directly to the filesystem.
DeleteFileDeletes a file by passing the request directly to the filesystem.
GetDriverStatusRetrieves the status of the class's system driver.
GetDriverVersionRetrieves the version of the class's system driver.
GetSectorCountReturns the number of sectors on the specified disk device.
GetSectorSizeReturns the sector size used by the specified disk device.
InitializeInitializes the class.
InstallInstalls (or upgrades) the class's system driver.
OpenMemoryProvides raw, read-only access to the system's physical memory.
OpenMemoryAsStreamProvides raw, read-only access to the system's physical memory as a stream.
OpenVolumeOpens a volume.
OpenVolumeAsStreamOpens a volume as a stream.
ReadSectorsReads data from sectors of a disk.
ShutdownSystemShuts down or reboots the operating system.
UninstallUninstalls the class's system driver.
WriteSectorsWrites data to sectors on a disk.

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

ErrorFires if an unhandled error occurs during an event.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

BuildInfoInformation about the product's build.
LicenseInfoInformation about the current license.

 
 
Copyright (c) 2021 Callback Technologies, Inc. - All rights reserved.
CBFS Direct 2020 Java Edition - Version 20.0 [Build 7836]