RawDisk

Direct access to disks and protected files from user-mode applications in Windows

Installation and usage

User mode API is available for use with various development tools and platforms:

  • .NET assemblies

    .NET assemblies are available as a managed interface to the driver. The assemblies are shipped for 32-bit and 64-bit versions of Windows.
    Each assembly includes one file, RawDisk3Net.dll. It is located in the platform-specific subfolder of "<RawDisk>\dotNET" folder. RawDisk3Net.dll requires MSVC Runtime DLLs. Please refer to Deployment instructions for details on installing those Runtime DLLs on your system for development and on target systems during deployment.

    RawDisk class can't be installed to Toolbox as it doesn't contain any instance methods. All of it's methods are class methods.

    To use RawDisk in your project, you need to include RawDisk assembly to the list of project references. Then, in source file, add the following line:

    • C#:
      using RawDisk;
    • VB.NET:
      imports RawDisk;
    • C++:
      #using <RawDisk3.dll>

  • Windows VCL units

    To use RawDisk in your VCL applications, just reference RawDisk.dcu unit in your code.
    To avoid problems with compilation of projects, which use RawDisk, you need to setup paths as described. By default the paths are set during installation. However if the settings were changed or installation didn't work as expected, you can use the below procedure to setup paths.

    • Delphi:
      Before using RawDisk in your projects, you need to tune-up global paths in Delphi IDE. Paths are set in Main menu->Tools->Environment options. Environment Options dialog appears. Find Library or Directories tab in the page control and you will find directories configuration page.
      • Set the "output directory", "unit output directory" and "BPL output directory" (if present) settings for the package to the folder, where the compiled packages will be stored after compilation.
      • add the name of the folder with RawDisk.dcu (<RawDisk>\VCL\Units\DelphiX) to the "source path" setting.

      To use RawDisk in your projects, you need to add "RawDisk" to Uses clause of one or more of your units. Then you can create RawDisk objects and use them. You don't need to ship any external DLLs with your compiled project.

    • C++Builder:
      Before using RawDisk in your projects, you need to tune-up global paths in your development tool. Paths are set in Main menu->Tools->Environment options. Environment Options dialog appears. Find Library or Directories tab in the page control and you will find directories configuration page.
      • Set the "output directory", "unit output directory" and "BPL output directory" (if present) settings for the package to the folder, where the compiled packages will be stored after compilation.
      • add the name of the folder with RawDisk.obj and RawDisk.dcu (<RawDisk>\VCL\Units\BuilderX) to the "include path" and "library path" settings.

      To use RawDisk in your projects, you need to include "RawDisk.h" (header file) to one or more of your files. Also, you need to add RawDisk.lib to the list of used libraries. You don't need to ship any external DLLs with your compiled project.

  • Windows Lib package

    Use library files located in <RawDisk>\CPP\VSxxxx folder where xxxx is the version number of Visual Studio. Registered version comes with source code of user-mode APIs for C++, so you can rebuild it with compiler and options that you need for your project.

Back to top