21#define IOCTL_CDROM_BASE FILE_DEVICE_CD_ROM
22#define IOCTL_CDROM_EJECT_MEDIA CTL_CODE(IOCTL_CDROM_BASE, 0x0202, METHOD_BUFFERED, FILE_READ_ACCESS)
42 _ftprintf(
stdout,
_T(
"\tMount the ISO image given in <path.iso> on the previously created virtual drive <drive letter>\n"));
52 _ftprintf(
stdout,
_T(
"\tRemount the ISO image that was previously mounted on the virtual drive <drive letter>\n"));
59 _ftprintf(
stdout,
_T(
"\tEjects the ISO image that is mounted on the virtual drive <drive letter>\n"));
66 _ftprintf(
stdout,
_T(
"\tRemoves the virtual drive <drive letter> making it no longer usable\n"));
187 return (
a >
b ?
b :
a);
233 if (Drives.
Count == 0)
273 if (
Image.Length != 0)
282 Path.MaximumLength =
sizeof(
L"no image");
283 Path.Buffer =
L"no image";
388 MountParams.
Flags = 0;
444 _stprintf(szBuffer,
_T(
"SYSTEM\\CurrentControlSet\\Services\\Vcdrom\\Parameters\\Device%c"),
Letter);
454 szBuffer[1] =
_T(
':');
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
GLuint GLuint GLsizei GLenum type
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
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
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
#define IOCTL_CDROM_EJECT_MEDIA
BOOLEAN IsLetterOwned(WCHAR Letter)
HANDLE OpenLetter(WCHAR Letter)
BOOLEAN StartDriver(VOID)
#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_ WDFDEVICE Device
_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
#define SC_MANAGER_CREATE_SERVICE