📄 vcdrom.h
字号:
/*
This is a virtual disk driver for Windows NT/2000/XP that uses one or more
files to emulate physical disks.
Copyright (C) 1999, 2000, 2001, 2002 Bo Brant閚.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
//
//2008.01.01
//Microsoft Virtual CD-ROM driver, hacked by DongLinWang.
//
#ifndef _FILE_DISK_
#define _FILE_DISK_
#ifndef __T
#ifdef _NTDDK_
#define __T(x) L ## x
#else
#define __T(x) x
#endif
#endif
#ifndef _T
#define _T(x) __T(x)
#endif
#define DEVICE_BASE_NAME _T("\\VirtualCdRom")
#define DEVICE_DIR_NAME _T("\\Device") DEVICE_BASE_NAME
#ifdef POOL_TAGGING
#ifdef ExAllocatePool
#undef ExAllocatePool
#endif
#define ExAllocatePool(a,b) ExAllocatePoolWithTag(a,b,' dCV')
#endif
#define SECTOR_SIZE 512
#define TOC_DATA_TRACK 0x04
#define MAX_NAME_LENGTH 0x32
#pragma pack(push,1)
//sizeof=0x30
typedef struct _DEVICE_EXTENSION {
PDEVICE_OBJECT PhysicalDeviceObject;
PFILE_OBJECT FileObject;
LARGE_INTEGER EndOfFile;
ULONG Used;
UNICODE_STRING SymbolicLinkName;
UNICODE_STRING FileName;
ULONG Flags;
ULONG BytesPerSector;
ULONG ShiftBits;
} DEVICE_EXTENSION, *PDEVICE_EXTENSION;
#pragma pack(pop)
#pragma pack(push,1)
//sizeof=0x202=514
typedef struct _VCDROM_OPEN_FILE {
WCHAR outputName[255];
USHORT NameLength;
USHORT Opened;
} VCDROM_OPEN_FILE, *PVCDROM_OPEN_FILE;
#pragma pack(pop)
#pragma pack(push,1)
//sizeof=0x36=54
typedef struct _VCDROM_OPEN_DRIVE {
USHORT Index;
WCHAR DriveBuffer[26];
} VCDROM_OPEN_DRIVE, *PVCDROM_OPEN_DRIVE;
#pragma pack(pop)
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -