193{
197
198
200 {
202 return 1;
203 }
204
205
207 {
211
212
215 {
217 return 1;
218 }
219
220
222 if (!Res)
223 {
226 return 1;
227 }
228
229
231
232
233 if (Drives.
Count == 0)
234 {
236 }
237 else
238 {
239
242 {
244 {
246 }
247 }
248
249 if (All)
250 {
252
254 {
257
258
260
261
264 {
265
267
268 if (Res)
269 {
271
272
273 if (
Image.Length != 0)
274 {
278 }
279 else
280 {
282 Path.MaximumLength =
sizeof(
L"no image");
283 Path.Buffer =
L"no image";
284 }
285
286
288 }
289
290
292 }
293
294
296 }
297 }
298 else
299 {
300
303 {
305 }
307 }
308 }
309 }
311 {
313
314
317 {
319 return 1;
320 }
321
322
324 if (!Res)
325 {
328 return 1;
329 }
330
331
333
335 }
337 {
346
347
349 {
351 return 1;
352 }
353
354
356 {
358 return 1;
359 }
360
361
364 {
366 return 1;
367 }
368
369
372 {
374 return 1;
375 }
376
377
379 {
382 return 1;
383 }
384
385
388 MountParams.
Flags = 0;
389
390
393 {
394
396 {
398 }
399
401 {
403 }
404
406 {
408 }
409 }
410
411
413
414
417 {
420 return 1;
421 }
422
423
425
426
428 if (!Res)
429 {
432 return 1;
433 }
434
435
437
439
440
441 if (bPersist)
442 {
443
444 _stprintf(szBuffer,
_T(
"SYSTEM\\CurrentControlSet\\Services\\Vcdrom\\Parameters\\Device%c"),
Letter);
446 {
447
451
452
454 szBuffer[1] =
_T(
':');
455 szBuffer[2] = 0;
457
459 }
460 else
461 {
463 }
464 }
465 }
467 {
469
470
472 {
474 return 1;
475 }
476
477
479 {
481 return 1;
482 }
483
484
487 {
488 return 1;
489 }
490
491
494 {
496 return 1;
497 }
498
499
501 if (!Res)
502 {
505 return 1;
506 }
507
508
510
512 }
514 {
516
517
519 {
521 return 1;
522 }
523
524
526 {
528 return 1;
529 }
530
531
534 {
535 return 1;
536 }
537
538
541 {
543 return 1;
544 }
545
546
548 if (!Res)
549 {
552 return 1;
553 }
554
555
557
559 }
561 {
563
564
566 {
568 return 1;
569 }
570
571
573 {
575 return 1;
576 }
577
578
581 {
582 return 1;
583 }
584
585
588 {
590 return 1;
591 }
592
593
595 if (!Res)
596 {
599 return 1;
600 }
601
602
604
606 }
607 else
608 {
610 }
611
612 return 0;
613}
PRTL_UNICODE_STRING_BUFFER Path
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
#define RegCloseKey(hKey)
BOOL WINAPI DeviceIoControl(IN HANDLE hDevice, IN DWORD dwIoControlCode, IN LPVOID lpInBuffer OPTIONAL, IN DWORD nInBufferSize OPTIONAL, OUT LPVOID lpOutBuffer OPTIONAL, IN DWORD nOutBufferSize OPTIONAL, OUT LPDWORD lpBytesReturned OPTIONAL, IN LPOVERLAPPED lpOverlapped OPTIONAL)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
#define INVALID_HANDLE_VALUE
#define FILE_ATTRIBUTE_NORMAL
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 GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
NTSYSAPI BOOLEAN NTAPI RtlDosPathNameToNtPathName_U(_In_opt_z_ PCWSTR DosPathName, _Out_ PUNICODE_STRING NtPathName, _Out_opt_ PCWSTR *NtFileNamePart, _Out_opt_ PRTL_RELATIVE_NAME_U DirectoryInfo)
#define KEY_CREATE_SUB_KEY
#define REG_OPTION_NON_VOLATILE
#define IOCTL_STORAGE_LOAD_MEDIA
#define IOCTL_CDROM_EJECT_MEDIA
BOOLEAN IsLetterOwned(WCHAR Letter)
HANDLE OpenLetter(WCHAR Letter)
#define IOCTL_VCDROM_DELETE_DRIVE
#define MOUNT_FLAG_SUPP_UDF
#define IOCTL_VCDROM_GET_IMAGE_PATH
#define MOUNT_FLAG_SUPP_JOLIET
#define IOCTL_VCDROM_MOUNT_IMAGE
#define IOCTL_VCDROM_CREATE_DRIVE
#define IOCTL_VCDROM_ENUMERATE_DRIVES
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PLONGLONG _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesRead
DWORD WINAPI GetLastError(void)
#define HKEY_LOCAL_MACHINE