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

RawDisk.OpenPhysicalMemoryForReading method


Pascal    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   



Opens raw access to physical memory of computer


    class function OpenPhysicalMemoryForReading( LicenseKey : WideString) : THandle;

[C++ (DLL/Lib)]
    static HANDLE OpenPhysicalMemoryForReading( unsigned short* LicenseKey);

[C++ (VCL)]
    static THandle __fastcall OpenPhysicalMemoryForReading( WideString LicenseKey);

[C++ (.NET)]
    static IntPtr OpenPhysicalMemoryForReading( String^ LicenseKey);

    static IntPtr OpenPhysicalMemoryForReading( string LicenseKey)

    Shared Function OpenPhysicalMemoryForReading( ByVal LicenseKey As String) As IntPtr


  • LicenseKey - The license key. RawDisk doesn't work without the license key (either production or evaluation). You can request the evaluation license key via request form.

Return values

The handle of the device.


Use this method to open access to physical memory of computer. Use the obtained handle in calls to ReadFile() and SetFilePointer() functions of Windows API.

Once you finished using the direct access to memory, call CloseHandle() Windows API function to release the resources.

If the method fails for whatever reason, an exception with Windows-defined error code is thrown.

Back to top