mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-31 11:30:56 +08:00
2002-06-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/winbase.h (WINBASEAPI): Don't define if prior definition. * include/winioctl.h (PARTITION_FAT32, PARTITION_FAT32_XINT13, PARTITION_XINT13, PARTITION_XINT13_EXTENDED, PARTITION_LDM, PARTITION_UNIX): Add defines. (PDRIVE_LAYOUT_INFORMATION): Add typedef. (IsRecognizedPartition): Also check for PARTITION_FAT32, PARTITION_FAT32_XINT13 and PARTITION_XINT13. (IsContainerPartition): Add macro.
This commit is contained in:
parent
fc067ba5b8
commit
8e8a913ff1
@ -1,3 +1,16 @@
|
|||||||
|
2002-06-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
|
||||||
|
|
||||||
|
* include/winbase.h (WINBASEAPI): Don't define if prior
|
||||||
|
definition.
|
||||||
|
|
||||||
|
* include/winioctl.h (PARTITION_FAT32, PARTITION_FAT32_XINT13,
|
||||||
|
PARTITION_XINT13, PARTITION_XINT13_EXTENDED, PARTITION_LDM,
|
||||||
|
PARTITION_UNIX): Add defines.
|
||||||
|
(PDRIVE_LAYOUT_INFORMATION): Add typedef.
|
||||||
|
(IsRecognizedPartition): Also check for PARTITION_FAT32,
|
||||||
|
PARTITION_FAT32_XINT13 and PARTITION_XINT13.
|
||||||
|
(IsContainerPartition): Add macro.
|
||||||
|
|
||||||
2002-06-25 Ken Fitlike <kenfitlike@hotmail.com>
|
2002-06-25 Ken Fitlike <kenfitlike@hotmail.com>
|
||||||
|
|
||||||
* include/commctrl.h: (CBEIF_*): Add defines.
|
* include/commctrl.h: (CBEIF_*): Add defines.
|
||||||
|
@ -4,7 +4,9 @@
|
|||||||
#pragma GCC system_header
|
#pragma GCC system_header
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef WINBASEAPI
|
||||||
#define WINBASEAPI DECLSPEC_IMPORT
|
#define WINBASEAPI DECLSPEC_IMPORT
|
||||||
|
#endif
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -134,7 +134,12 @@ extern "C" {
|
|||||||
#define PARTITION_EXTENDED 5
|
#define PARTITION_EXTENDED 5
|
||||||
#define PARTITION_HUGE 6
|
#define PARTITION_HUGE 6
|
||||||
#define PARTITION_IFS 7
|
#define PARTITION_IFS 7
|
||||||
|
#define PARTITION_FAT32 0x0B
|
||||||
|
#define PARTITION_FAT32_XINT13 0x0C
|
||||||
|
#define PARTITION_XINT13 0x0E
|
||||||
|
#define PARTITION_XINT13_EXTENDED 0x0F
|
||||||
#define PARTITION_PREP 0x41
|
#define PARTITION_PREP 0x41
|
||||||
|
#define PARTITION_LDM 0x42
|
||||||
#define PARTITION_UNIX 0x63
|
#define PARTITION_UNIX 0x63
|
||||||
#define PARTITION_NTFT 128
|
#define PARTITION_NTFT 128
|
||||||
#define VALID_NTFT 0xC0
|
#define VALID_NTFT 0xC0
|
||||||
@ -261,7 +266,7 @@ typedef struct _DRIVE_LAYOUT_INFORMATION {
|
|||||||
DWORD PartitionCount;
|
DWORD PartitionCount;
|
||||||
DWORD Signature;
|
DWORD Signature;
|
||||||
PARTITION_INFORMATION PartitionEntry[1];
|
PARTITION_INFORMATION PartitionEntry[1];
|
||||||
} DRIVE_LAYOUT_INFORMATION;
|
} DRIVE_LAYOUT_INFORMATION, *PDRIVE_LAYOUT_INFORMATION;
|
||||||
typedef struct _PERF_BIN {
|
typedef struct _PERF_BIN {
|
||||||
DWORD NumberOfBins;
|
DWORD NumberOfBins;
|
||||||
DWORD TypeOfBin;
|
DWORD TypeOfBin;
|
||||||
@ -282,14 +287,26 @@ typedef struct _VERIFY_INFORMATION {
|
|||||||
LARGE_INTEGER StartingOffset;
|
LARGE_INTEGER StartingOffset;
|
||||||
DWORD Length;
|
DWORD Length;
|
||||||
} VERIFY_INFORMATION,*PVERIFY_INFORMATION;
|
} VERIFY_INFORMATION,*PVERIFY_INFORMATION;
|
||||||
#define IsRecognizedPartition(t) (((t&PARTITION_NTFT)&&((t&~0xC0)==PARTITION_FAT_12))||\
|
#define IsRecognizedPartition(t)\
|
||||||
((t&PARTITION_NTFT)&&((t&~0xC0)==PARTITION_FAT_16))||\
|
(((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT_12))||\
|
||||||
((t&PARTITION_NTFT)&&((t&~0xC0)==PARTITION_IFS))||\
|
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT_16))||\
|
||||||
((t&PARTITION_NTFT)&&((t&~0xC0)==PARTITION_HUGE))||\
|
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_IFS))||\
|
||||||
|
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_HUGE))||\
|
||||||
|
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT32))||\
|
||||||
|
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT32_XINT13))||\
|
||||||
|
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_XINT13))||\
|
||||||
((t&~PARTITION_NTFT)==PARTITION_FAT_12)||\
|
((t&~PARTITION_NTFT)==PARTITION_FAT_12)||\
|
||||||
((t&~PARTITION_NTFT)==PARTITION_FAT_16)||\
|
((t&~PARTITION_NTFT)==PARTITION_FAT_16)||\
|
||||||
((t&~PARTITION_NTFT)==PARTITION_IFS)||\
|
((t&~PARTITION_NTFT)==PARTITION_IFS)||\
|
||||||
((t&~PARTITION_NTFT)==PARTITION_HUGE))
|
((t&~PARTITION_NTFT)==PARTITION_HUGE)||\
|
||||||
|
((t&~PARTITION_NTFT)==PARTITION_FAT32)||\
|
||||||
|
((t&~PARTITION_NTFT)==PARTITION_FAT32_XINT13)||\
|
||||||
|
((t&~PARTITION_NTFT)==PARTITION_XINT13))
|
||||||
|
#define IsContainerPartition(t)\
|
||||||
|
(((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_EXTENDED))||\
|
||||||
|
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_XINT13_EXTENDED))||\
|
||||||
|
((t&~PARTITION_NTFT)==PARTITION_EXTENDED)||\
|
||||||
|
((t&~PARTITION_NTFT)==PARTITION_XINT13_EXTENDED))
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user