Author: fireball
Date: Mon Mar 31 13:22:46 2008
New Revision: 32798
URL:
http://svn.reactos.org/svn/reactos?rev=32798&view=rev
Log:
- Fix PARTITION_STYLE enum to include PARTITION_STYLE_RAW.
- Add a few storage-related IOCTLs and GUIDs definitions.
Modified:
trunk/reactos/include/ddk/ntdddisk.h
trunk/reactos/include/ddk/ntddstor.h
trunk/reactos/include/ddk/winddk.h
Modified: trunk/reactos/include/ddk/ntdddisk.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/ntdddisk.h?rev…
==============================================================================
--- trunk/reactos/include/ddk/ntdddisk.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/ntdddisk.h [iso-8859-1] Mon Mar 31 13:22:46 2008
@@ -173,6 +173,8 @@
#define SMART_SEND_DRIVE_COMMAND \
CTL_CODE(IOCTL_DISK_BASE, 0x0021, METHOD_BUFFERED, FILE_READ_ACCESS |
FILE_WRITE_ACCESS)
+#define IOCTL_DISK_UPDATE_PROPERTIES \
+ CTL_CODE(IOCTL_DISK_BASE, 0x50, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define PARTITION_ENTRY_UNUSED 0x00
#define PARTITION_FAT_12 0x01
Modified: trunk/reactos/include/ddk/ntddstor.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/ntddstor.h?rev…
==============================================================================
--- trunk/reactos/include/ddk/ntddstor.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/ntddstor.h [iso-8859-1] Mon Mar 31 13:22:46 2008
@@ -84,6 +84,12 @@
#define IOCTL_STORAGE_RESERVE \
CTL_CODE(IOCTL_STORAGE_BASE, 0x0204, METHOD_BUFFERED, FILE_READ_ACCESS)
+#define IOCTL_STORAGE_GET_HOTPLUG_INFO \
+ CTL_CODE(IOCTL_STORAGE_BASE, 0x0305, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
+#define IOCTL_STORAGE_SET_HOTPLUG_INFO \
+ CTL_CODE(IOCTL_STORAGE_BASE, 0x0306, METHOD_BUFFERED, FILE_READ_ACCESS |
FILE_WRITE_ACCESS)
+
#define IOCTL_STORAGE_RESET_BUS \
CTL_CODE(IOCTL_STORAGE_BASE, 0x0400, METHOD_BUFFERED, FILE_READ_ACCESS |
FILE_WRITE_ACCESS)
@@ -121,6 +127,21 @@
DEFINE_GUID(GUID_DEVINTERFACE_STORAGEPORT,
0x2accfe60L, 0xc130, 0x11d2, 0xb0, 0x82, 0x00, 0xa0, 0xc9, 0x1e, 0xfb, 0x8b);
+DEFINE_GUID(GUID_DEVINTERFACE_HIDDEN_VOLUME,
+ 0x7f108a28L, 0x9833, 0x4b3b, 0xb7, 0x80, 0x2c, 0x6b, 0x5f, 0xa5, 0xc0, 0x62);
+
+/* Aliases for storage guids */
+#define DiskClassGuid GUID_DEVINTERFACE_DISK
+#define CdRomClassGuid GUID_DEVINTERFACE_CDROM
+#define PartitionClassGuid GUID_DEVINTERFACE_PARTITION
+#define TapeClassGuid GUID_DEVINTERFACE_TAPE
+#define WriteOnceDiskClassGuid GUID_DEVINTERFACE_WRITEONCEDISK
+#define VolumeClassGuid GUID_DEVINTERFACE_VOLUME
+#define MediumChangerClassGuid GUID_DEVINTERFACE_MEDIUMCHANGER
+#define FloppyClassGuid GUID_DEVINTERFACE_FLOPPY
+#define CdChangerClassGuid GUID_DEVINTERFACE_CDCHANGER
+#define StoragePortClassGuid GUID_DEVINTERFACE_STORAGEPORT
+#define HiddenVolumeClassGuid GUID_DEVINTERFACE_HIDDEN_VOLUME
typedef enum _STORAGE_MEDIA_TYPE {
DDS_4mm = 0x20,
Modified: trunk/reactos/include/ddk/winddk.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/winddk.h?rev=3…
==============================================================================
--- trunk/reactos/include/ddk/winddk.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/winddk.h [iso-8859-1] Mon Mar 31 13:22:46 2008
@@ -5262,7 +5262,8 @@
*/
typedef enum _PARTITION_STYLE {
PARTITION_STYLE_MBR,
- PARTITION_STYLE_GPT
+ PARTITION_STYLE_GPT,
+ PARTITION_STYLE_RAW
} PARTITION_STYLE;
typedef struct _CREATE_DISK_MBR {