DumpDVD/DumpDVD/Scsi/IoCtl.hpp

25 lines
470 B
C++
Raw Normal View History

2023-03-14 13:36:58 +00:00
#ifndef _LI_CDROM_H
#define _LI_CDROM_H 1
#include <iostream>
#include <vector>
#include <string>
#include <dvdcss.h>
namespace Li::Scsi {
2023-03-15 06:59:59 +00:00
class IoCtl {
2023-03-14 13:36:58 +00:00
private:
dvdcss_t dvdCssHandle;
int osFileHandle;
public:
2023-03-15 06:59:59 +00:00
IoCtl(std::string drive);
~IoCtl();
2023-03-14 13:36:58 +00:00
2023-03-15 06:59:59 +00:00
dvdcss_t GetDvdCssHandle();
uint64_t GetTotalSectors();
bool SetDriveSpeed(int readSpeed, int writeSpeed);
2023-03-14 13:36:58 +00:00
bool AllowReadingPastDisc();
2023-03-15 06:59:59 +00:00
std::vector<uint32_t>* GetSupportedReadSpeeds();
2023-03-14 13:36:58 +00:00
};
}
#endif