#ifndef ReiserDiskAccess_H

#define ReiserDiskAccess_H                         


#include "PartitionInterface.h"


class ReiserDiskAccess
    {
    public:
        ReiserDiskAccess(DWORD disk, LONGLONG startingOffset, LONGLONG length);
        virtual ~ReiserDiskAccess();
        BOOL Open(int index);
		void Close();
        BOOL GetDriveGeometry( DISK_GEOMETRY* lpDG );
        BOOL GetDriveLayout( LPBYTE lpbMemory, DWORD dwSize );
        BOOL ReadAbsolute( LPBYTE lpbMemory, DWORD dwSize, INT64 OffsetInBytes );

        // autodetect code:
        static bool IsReiserFS(DWORD disk, LONGLONG startingOffset, LONGLONG length);

    	PartitionInterface m_PI;
    };

#endif // ReiserDiskAccess_H





syntax highlighted by Code2HTML, v. 0.9.1