-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDevice.h
More file actions
110 lines (91 loc) · 1.92 KB
/
Copy pathDevice.h
File metadata and controls
110 lines (91 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#ifndef __SENDCOMMAND_H__
#define __SENDCOMMAND_H__
#define OS_UNKNOWN -1
#define OS_WIN95 0
#define OS_WIN98 1
#define OS_WINNT35 2
#define OS_WINNT4 3
#define OS_WIN2K 4
struct Inquiry
{
unsigned char devType;
char interfx[1];
char reserved1[6];
char Vendor[49];
};
class Device
{
public:
static DWORD makeDeviceList(void);
Device *next;
Device *prev;
// V prvem koraku
char letter[1];
BYTE HaId;
BYTE Target;
BYTE Lun;
char name[50];
char interfacex[1];
DWORD type;
char vendor_name[25];
char firmware_version[5];
char extra_info[29];
// V zanki Toshiba
bool if_toshiba; // For Toshiba drives
char fw_code[25]; // For Toshiba drives
char tosh_model[35]; // For Toshiba drives
// V zanki capability MODE SENSE 10/GET CONFIGURATION
bool cdRRead;
bool cdRWRead;
bool cdMethod2Read;
bool dvdRomRead;
bool dvdRRead;
bool dvdRWRead;
bool dvdRamRead;
bool dvdPRRead;
bool dvdPRWRead;
bool cdRWrite;
bool cdRWWrite;
bool testWrite;
bool dvdRWrite;
bool dvdRWWrite;
bool dvdRamWrite;
bool dvdPRWrite;
bool dvdPRWWrite;
bool audioplay;
bool composite;
bool digport1;
bool digport2;
bool mode1form;
bool mode2form;
bool multisession;
bool buffunder;
bool ISRC;
bool UPC;
bool barcode;
bool mtrainier;
char mechanism[50];
int read_s;
int write_s;
bool isdvdDrive;
bool iscdDrive;
bool iscdRRead;
bool iscdRWrite;
int buffersize;
int levels;
char serial[12];
bool drive_status;
char region_status[30];
int user;
int manufactor;
char current_region[10];
DWORD SendCommand(BYTE *CDBByte, BYTE CDBLen, BYTE SRB_Flags,
BYTE *BufPointer, DWORD BufLen) const;
DWORD Device::SendSPTICommand(BYTE *CDBByte, BYTE CDBLen, DWORD dwFlags, DWORD InOut,
BYTE *BufPointer, DWORD BufLen) const;
};
extern Device *devices;
extern int deviceCount;
//extern char LogFileDir[255];
extern HANDLE event;
#endif // __SENDCOMMAND_H__