Go to the source code of this file.
◆ FmtAcquireDriveW
◆ PADD_DEVICE
◆ CheckCDType()
Return CD-RW device type.
Definition at line 13 of file format_common.cpp.
17{
27
29
30
33
34
36
37 if (hDevice == ((
HANDLE)-1)) {
40 } else {
41
42
46
47 if (RC == 1) {
48
52 if (RC != 1) {
53 strcpy(VendorId,
"Unknown Vendor");
54 } else {
64 }
65 }
66
67
71 if(RC != 1) {
74 }
75
76
78 DvdRW || DvdpRW || DvdRAM) {
79
83 }
84
85
86
87
88 if (DvdRW) {
91 }
92 if (DvdpRW) {
95 }
96
97
98
99
103 }
107 }
111 }
112 }
113 else {
116 }
117 } else {
118 strcpy(VendorId,
"Unknown Vendor");
119 }
121 }
122
124}
ACPI_SIZE strlen(const char *String)
#define DevCap_write_cd_rw
#define DevCap_write_dvd_ram
#define PFNUM_DVDRW_RESTRICTED_OVERWRITE
#define DevCap_write_cd_r
#define DevCap_write_dvd_r
#define CDRW_FEATURE_CHANGER
#define CDRW_FEATURE_GET_CFG
struct _GET_DEVICE_INFO_USER_OUT * PGET_DEVICE_INFO_USER_OUT
#define IOCTL_CDRW_GET_SIGNATURE
#define IOCTL_CDRW_GET_DEVICE_INFO
#define IOCTL_CDRW_GET_CAPABILITIES
static const WCHAR szDeviceName[]
NTSTATUS NTAPI UDFPhSendIOCTL(IN ULONG IoControlCode, IN PDEVICE_OBJECT DeviceObject, IN PVOID InputBuffer, IN ULONG InputBufferLength, OUT PVOID OutputBuffer, IN ULONG OutputBufferLength, IN BOOLEAN OverrideVerify, OUT PIO_STATUS_BLOCK Iosb OPTIONAL)
#define sprintf(buf, format,...)
HANDLE OpenOurVolume(PCHAR szDeviceName)
Referenced by InitDeviceList().
◆ FmtAcquireDrive()
Definition at line 223 of file format_common.cpp.
227{
229
233 }
234 return evt;
235}
#define INVALID_HANDLE_VALUE
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
◆ FmtIsDriveAcquired()
◆ FmtReleaseDrive()
◆ InitDeviceList()
Intialize asbtract device list via calls to CallBack function.
- Parameters
-
hDlg | Not used. |
hwndControl | Passed to the CallBack function. See PADD_DEVICE. |
CallBack | Callback function. Called on each CD device in system. |
Definition at line 132 of file format_common.cpp.
137{
139 char VendorId[25];
140 char seps[] = ",";
143 bool add_drive = false;
144
146
147
150
154 if (*(
token-1) ==
',') {
156 } else {
158 }
159 }
160 }
161
164 add_drive = false;
166
167
168
169
170
172
174 add_drive = true;
175 break;
176 }
177 if (add_drive) {
178
179
184
186 if (drive_type !=
OTHER) {
188 } else {
190 }
191
192 }
193
195 }
196}
int strcmp(const char *String1, const char *String2)
char * strtok(char *String, const char *Delimiters)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat token
_CRTIMP char *__cdecl strupr(_Inout_z_ char *_Str)
TCHAR * MediaTypeStrings[]
enum _JS_DEVICE_TYPE JS_DEVICE_TYPE
CD/DVD-RW device types.
#define GetLogicalDriveStrings
◆ bChanger
◆ szDisc