diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-02-13 15:40:15 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-02-13 22:14:40 +0100 |
commit | 1f87e6412766019d62fa45bfe8489604083a411e (patch) | |
tree | 61e73791c249968cb1cdfbf2690b47c3391fc9f3 /src/Common/Dlgcode.h | |
parent | d7d4c98775e34c7cb723ca813e8a76fe83610013 (diff) | |
download | VeraCrypt-1f87e6412766019d62fa45bfe8489604083a411e.tar.gz VeraCrypt-1f87e6412766019d62fa45bfe8489604083a411e.zip |
Windows: handle rare case where size of disk can't be retrieved using IOCTL_DISK_GET_PARTITION_INFO_EX. use IOCTL_DISK_GET_DRIVE_GEOMETRY in such case and add workaround to display correctly partitions in dialog even if disk size is not available.
Diffstat (limited to 'src/Common/Dlgcode.h')
-rw-r--r-- | src/Common/Dlgcode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Common/Dlgcode.h b/src/Common/Dlgcode.h index efaf935b..20199924 100644 --- a/src/Common/Dlgcode.h +++ b/src/Common/Dlgcode.h @@ -451,8 +451,9 @@ BOOL SelectMultipleFilesNext (wchar_t *lpszFileName, size_t cbFileName); void OpenOnlineHelp ();
BOOL GetPartitionInfo (const wchar_t *deviceName, PPARTITION_INFORMATION rpartInfo);
BOOL GetDeviceInfo (const wchar_t *deviceName, DISK_PARTITION_INFO_STRUCT *info);
BOOL GetDriveGeometry (const wchar_t *deviceName, PDISK_GEOMETRY diskGeometry);
+BOOL GetPhysicalDriveGeometry (int driveNumber, PDISK_GEOMETRY diskGeometry);
BOOL IsVolumeDeviceHosted (const wchar_t *lpszDiskFile);
int CompensateXDPI (int val);
int CompensateYDPI (int val);
int CompensateDPIFont (int val);
|