diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-03-24 14:52:08 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-03-24 14:52:08 +0000 |
commit | 3ff1a063a14023fd7cdc20c616c901a8c72bae89 (patch) | |
tree | 42b36673d92bf9f9e4dc699549fb29ca550d729e /winsup/cygwin/ntdll.h | |
parent | f12c262a43627cad865664b80102a686c44aae15 (diff) | |
download | cygnal-3ff1a063a14023fd7cdc20c616c901a8c72bae89.tar.gz cygnal-3ff1a063a14023fd7cdc20c616c901a8c72bae89.tar.bz2 cygnal-3ff1a063a14023fd7cdc20c616c901a8c72bae89.zip |
* fhandler_floppy.cc: Include ntdef.h and ntdll.h.
(fhandler_dev_floppy::get_drive_info): Rearrange so that now
NtQueryVolumeInformationFile is called on drives which don't support
IOCTL_DISK_GET_DRIVE_GEOMETRY.
* ntdll.h (struct _FILE_FS_SIZE_INFORMATION): Add.
(enum _FSINFOCLASS): Add missing values.
Diffstat (limited to 'winsup/cygwin/ntdll.h')
-rw-r--r-- | winsup/cygwin/ntdll.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/winsup/cygwin/ntdll.h b/winsup/cygwin/ntdll.h index 3f5035c17..6cdc2ce32 100644 --- a/winsup/cygwin/ntdll.h +++ b/winsup/cygwin/ntdll.h @@ -536,9 +536,25 @@ typedef struct _FILE_FS_VOLUME_INFORMATION WCHAR VolumeLabel[1]; } FILE_FS_VOLUME_INFORMATION, *PFILE_FS_VOLUME_INFORMATION; -typedef enum _FSINFOCLASS -{ - FileFsVolumeInformation = 1 +typedef struct _FILE_FS_SIZE_INFORMATION +{ + LARGE_INTEGER TotalAllocationUnits; + LARGE_INTEGER AvailableAllocationUnits; + ULONG SectorsPerAllocationUnit; + ULONG BytesPerSector; +} FILE_FS_SIZE_INFORMATION, *PFILE_FS_SIZE_INFORMATION; + +typedef enum _FSINFOCLASS { + FileFsVolumeInformation = 1, + FileFsLabelInformation, + FileFsSizeInformation, + FileFsDeviceInformation, + FileFsAttributeInformation, + FileFsControlInformation, + FileFsFullSizeInformation, + FileFsObjectIdInformation, + FileFsDriverPathInformation, + FileFsMaximumInformation } FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS; typedef enum _OBJECT_INFORMATION_CLASS |