From 681e60c31c1a3135ba8924095d45dbbf22a52784 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Mon, 7 Feb 2005 20:40:32 +0000 Subject: [PATCH] 2005-02-07 Danny Smith * include/winioctl.h (IOCTL_VOLUME_BASE, IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS, IOCTL_VOLUME_IS_CLUSTERED): Copy defines from include/ddk/ntdddvol.h. Bug reported to Debian by Anand Kumria --- winsup/w32api/ChangeLog | 7 +++++++ winsup/w32api/include/winioctl.h | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 7427c3282..c48297285 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,10 @@ +2005-02-07 Danny Smith + + * include/winioctl.h (IOCTL_VOLUME_BASE, + IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS, IOCTL_VOLUME_IS_CLUSTERED): + Copy defines from include/ddk/ntdddvol.h. + Bug reported to Debian by Anand Kumria + 2005-01-27 Oliver Stoeneberg * include/winbase.h (PWIN32_FIND_DATA): Add typedef. diff --git a/winsup/w32api/include/winioctl.h b/winsup/w32api/include/winioctl.h index 2457d603c..87f121fe5 100644 --- a/winsup/w32api/include/winioctl.h +++ b/winsup/w32api/include/winioctl.h @@ -72,6 +72,14 @@ extern "C" { #define IOCTL_DISK_GET_MEDIA_TYPES CTL_CODE(IOCTL_DISK_BASE,0x300,METHOD_BUFFERED,FILE_ANY_ACCESS) #define IOCTL_DISK_UPDATE_DRIVE_SIZE CTL_CODE(IOCTL_DISK_BASE, 0x0032, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) #define IOCTL_SERIAL_LSRMST_INSERT CTL_CODE(FILE_DEVICE_SERIAL_PORT,31,METHOD_BUFFERED,FILE_ANY_ACCESS) + +/* Also in ddk/ntddvol.h */ +#define IOCTL_VOLUME_BASE ((ULONG) 'V') +#define IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS \ + CTL_CODE(IOCTL_VOLUME_BASE, 0, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define IOCTL_VOLUME_IS_CLUSTERED \ + CTL_CODE(IOCTL_VOLUME_BASE, 12, METHOD_BUFFERED, FILE_ANY_ACCESS) + #define FSCTL_LOCK_VOLUME CTL_CODE(FILE_DEVICE_FILE_SYSTEM,6,METHOD_BUFFERED,FILE_ANY_ACCESS) #define FSCTL_UNLOCK_VOLUME CTL_CODE(FILE_DEVICE_FILE_SYSTEM,7,METHOD_BUFFERED,FILE_ANY_ACCESS) #define FSCTL_DISMOUNT_VOLUME CTL_CODE(FILE_DEVICE_FILE_SYSTEM,8,METHOD_BUFFERED,FILE_ANY_ACCESS) -- 2.43.5