|
#define | __GNU_EXTENSION |
|
#define | DD_DISK_DEVICE_NAME "\\Device\\UNKNOWN" |
|
#define | DD_DISK_DEVICE_NAME_U L"\\Device\\UNKNOWN" |
|
#define | IOCTL_DISK_BASE FILE_DEVICE_DISK |
|
#define | IOCTL_DISK_ARE_VOLUMES_READY CTL_CODE(IOCTL_DISK_BASE, 0x0087, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_CHECK_VERIFY CTL_CODE(IOCTL_DISK_BASE, 0x0200, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_CONTROLLER_NUMBER CTL_CODE(IOCTL_DISK_BASE, 0x0011, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_CREATE_DISK CTL_CODE(IOCTL_DISK_BASE, 0x0016, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_DELETE_DRIVE_LAYOUT CTL_CODE(IOCTL_DISK_BASE, 0x0040, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_FIND_NEW_DEVICES CTL_CODE(IOCTL_DISK_BASE, 0x0206, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_FORMAT_DRIVE CTL_CODE(IOCTL_DISK_BASE, 0x00f3, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_FORMAT_TRACKS CTL_CODE(IOCTL_DISK_BASE, 0x0006, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_FORMAT_TRACKS_EX CTL_CODE(IOCTL_DISK_BASE, 0x000b, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_GET_CACHE_INFORMATION CTL_CODE(IOCTL_DISK_BASE, 0x0035, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_GET_CACHE_SETTING CTL_CODE(IOCTL_DISK_BASE, 0x0038, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_GET_CLUSTER_INFO CTL_CODE(IOCTL_DISK_BASE, 0x0085, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_GET_DISK_ATTRIBUTES CTL_CODE(IOCTL_DISK_BASE, 0x003c, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_GET_DRIVE_GEOMETRY CTL_CODE(IOCTL_DISK_BASE, 0x0000, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_GET_DRIVE_GEOMETRY_EX CTL_CODE(IOCTL_DISK_BASE, 0x0028, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_GET_DRIVE_LAYOUT CTL_CODE(IOCTL_DISK_BASE, 0x0003, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_GET_DRIVE_LAYOUT_EX CTL_CODE(IOCTL_DISK_BASE, 0x0014, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_GET_MEDIA_TYPES CTL_CODE(IOCTL_DISK_BASE, 0x0300, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_GET_LENGTH_INFO CTL_CODE(IOCTL_DISK_BASE, 0x0017, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_GET_PARTITION_ATTRIBUTES CTL_CODE(IOCTL_DISK_BASE, 0x003a, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_GET_PARTITION_INFO CTL_CODE(IOCTL_DISK_BASE, 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_GET_PARTITION_INFO_EX CTL_CODE(IOCTL_DISK_BASE, 0x0012, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_GET_PERFORMANCE_INFO CTL_CODE(IOCTL_DISK_BASE, 0x0089, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_GET_SAN_SETTINGS CTL_CODE(IOCTL_DISK_BASE, 0x0080, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_GET_SNAPSHOT_INFO CTL_CODE(IOCTL_DISK_BASE, 0x0082, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_GROW_PARTITION CTL_CODE(IOCTL_DISK_BASE, 0x0034, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_HISTOGRAM_STRUCTURE CTL_CODE(IOCTL_DISK_BASE, 0x000c, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_HISTOGRAM_DATA CTL_CODE(IOCTL_DISK_BASE, 0x000d, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_HISTOGRAM_RESET CTL_CODE(IOCTL_DISK_BASE, 0x000e, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_INTERNAL_CLEAR_VERIFY CTL_CODE(IOCTL_DISK_BASE, 0x0101, METHOD_NEITHER, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_INTERNAL_SET_VERIFY CTL_CODE(IOCTL_DISK_BASE, 0x0100, METHOD_NEITHER, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_INTERNAL_SET_NOTIFY CTL_CODE(IOCTL_DISK_BASE, 0x0102, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_IS_CLUSTERED CTL_CODE(IOCTL_DISK_BASE, 0x003e, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_IS_WRITABLE CTL_CODE(IOCTL_DISK_BASE, 0x0009, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_LOGGING CTL_CODE(IOCTL_DISK_BASE, 0x000a, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_PERFORMANCE CTL_CODE(IOCTL_DISK_BASE, 0x0008, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_PERFORMANCE_OFF CTL_CODE(IOCTL_DISK_BASE, 0x0018, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_REASSIGN_BLOCKS CTL_CODE(IOCTL_DISK_BASE, 0x0007, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_REQUEST_DATA CTL_CODE(IOCTL_DISK_BASE, 0x0010, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_REQUEST_STRUCTURE CTL_CODE(IOCTL_DISK_BASE, 0x000f, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_RESET_SNAPSHOT_INFO CTL_CODE(IOCTL_DISK_BASE, 0x0084, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_MEDIA_REMOVAL CTL_CODE(IOCTL_DISK_BASE, 0x0201, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_EJECT_MEDIA CTL_CODE(IOCTL_DISK_BASE, 0x0202, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_LOAD_MEDIA CTL_CODE(IOCTL_DISK_BASE, 0x0203, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_REASSIGN_BLOCKS_EX CTL_CODE(IOCTL_DISK_BASE, 0x0029, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_RESERVE CTL_CODE(IOCTL_DISK_BASE, 0x0204, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_RELEASE CTL_CODE(IOCTL_DISK_BASE, 0x0205, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_FIND_NEW_DEVICES CTL_CODE(IOCTL_DISK_BASE, 0x0206, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_SENSE_DEVICE CTL_CODE(IOCTL_DISK_BASE, 0x00f8, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_SET_CACHE_INFORMATION CTL_CODE(IOCTL_DISK_BASE, 0x0036, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_SET_CACHE_SETTING CTL_CODE(IOCTL_DISK_BASE, 0x0039, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_SET_CLUSTER_INFO CTL_CODE(IOCTL_DISK_BASE, 0x0086, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_SET_DISK_ATTRIBUTES CTL_CODE(IOCTL_DISK_BASE, 0x003d, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_SET_DRIVE_LAYOUT CTL_CODE(IOCTL_DISK_BASE, 0x0004, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_SET_DRIVE_LAYOUT_EX CTL_CODE(IOCTL_DISK_BASE, 0x0015, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_SET_PARTITION_ATTRIBUTES CTL_CODE(IOCTL_DISK_BASE, 0x003b, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_SET_PARTITION_INFO CTL_CODE(IOCTL_DISK_BASE, 0x0002, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_SET_PARTITION_INFO_EX CTL_CODE(IOCTL_DISK_BASE, 0x0013, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_SET_SAN_SETTINGS CTL_CODE(IOCTL_DISK_BASE, 0x0081, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_SET_SNAPSHOT_INFO CTL_CODE(IOCTL_DISK_BASE, 0x0083, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | OBSOLETE_DISK_GET_WRITE_CACHE_STATE CTL_CODE(IOCTL_DISK_BASE, 0x0037, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | IOCTL_DISK_UPDATE_DRIVE_SIZE CTL_CODE(IOCTL_DISK_BASE, 0x0032, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_UPDATE_PROPERTIES CTL_CODE(IOCTL_DISK_BASE, 0x0050, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_VERIFY CTL_CODE(IOCTL_DISK_BASE, 0x0005, METHOD_BUFFERED, FILE_ANY_ACCESS) |
|
#define | IOCTL_DISK_VOLUMES_ARE_READY CTL_CODE(IOCTL_DISK_BASE, 0x0088, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_COPY_DATA CTL_CODE(IOCTL_DISK_BASE, 0x0019, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | IOCTL_DISK_SIMBAD CTL_CODE(IOCTL_DISK_BASE, 0x0400, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | SMART_GET_VERSION CTL_CODE(IOCTL_DISK_BASE, 0x0020, METHOD_BUFFERED, FILE_READ_ACCESS) |
|
#define | SMART_RCV_DRIVE_DATA CTL_CODE(IOCTL_DISK_BASE, 0x0022, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | SMART_SEND_DRIVE_COMMAND CTL_CODE(IOCTL_DISK_BASE, 0x0021, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) |
|
#define | PARTITION_ENTRY_UNUSED 0x00 |
|
#define | PARTITION_FAT_12 0x01 |
|
#define | PARTITION_XENIX_1 0x02 |
|
#define | PARTITION_XENIX_2 0x03 |
|
#define | PARTITION_FAT_16 0x04 |
|
#define | PARTITION_EXTENDED 0x05 |
|
#define | PARTITION_HUGE 0x06 |
|
#define | PARTITION_IFS 0x07 |
|
#define | PARTITION_OS2BOOTMGR 0x0A |
|
#define | PARTITION_FAT32 0x0B |
|
#define | PARTITION_FAT32_XINT13 0x0C |
|
#define | PARTITION_XINT13 0x0E |
|
#define | PARTITION_XINT13_EXTENDED 0x0F |
|
#define | PARTITION_MSFT_RECOVERY 0x27 |
|
#define | PARTITION_MAIN_OS 0x28 |
|
#define | PARTIITON_OS_DATA 0x29 |
|
#define | PARTITION_PRE_INSTALLED 0x2a |
|
#define | PARTITION_BSP 0x2b |
|
#define | PARTITION_DPP 0x2c |
|
#define | PARTITION_WINDOWS_SYSTEM 0x2d |
|
#define | PARTITION_PREP 0x41 |
|
#define | PARTITION_LDM 0x42 |
|
#define | PARTITION_DM 0x54 |
|
#define | PARTITION_EZDRIVE 0x55 |
|
#define | PARTITION_UNIX 0x63 |
|
#define | PARTITION_SPACES_DATA 0xD7 |
|
#define | PARTITION_SPACES 0xE7 |
|
#define | PARTITION_GPT 0xEE |
|
#define | PARTITION_SYSTEM 0xEF |
|
#define | VALID_NTFT 0xC0 |
|
#define | PARTITION_NTFT 0x80 |
|
#define | IsFTPartition(PartitionType) |
|
#define | IsContainerPartition(PartitionType) |
|
#define | IsRecognizedPartition(PartitionType) |
|
#define | WMI_DISK_GEOMETRY_GUID {0x25007f51, 0x57c2, 0x11d1, {0xa5, 0x28, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0x10}} |
|
#define | CAP_ATA_ID_CMD 1 |
|
#define | CAP_ATAPI_ID_CMD 2 |
|
#define | CAP_SMART_CMD 4 |
|
#define | ATAPI_ID_CMD 0xA1 |
|
#define | ID_CMD 0xEC |
|
#define | SMART_CMD 0xB0 |
|
#define | SMART_CYL_LOW 0x4F |
|
#define | SMART_CYL_HI 0xC2 |
|
#define | SMART_NO_ERROR 0 |
|
#define | SMART_IDE_ERROR 1 |
|
#define | SMART_INVALID_FLAG 2 |
|
#define | SMART_INVALID_COMMAND 3 |
|
#define | SMART_INVALID_BUFFER 4 |
|
#define | SMART_INVALID_DRIVE 5 |
|
#define | SMART_INVALID_IOCTL 6 |
|
#define | SMART_ERROR_NO_MEM 7 |
|
#define | SMART_INVALID_REGISTER 8 |
|
#define | SMART_NOT_SUPPORTED 9 |
|
#define | SMART_NO_IDE_DEVICE 10 |
|
#define | SMART_OFFLINE_ROUTINE_OFFLINE 0 |
|
#define | SMART_SHORT_SELFTEST_OFFLINE 1 |
|
#define | SMART_EXTENDED_SELFTEST_OFFLINE 2 |
|
#define | SMART_ABORT_OFFLINE_SELFTEST 127 |
|
#define | SMART_SHORT_SELFTEST_CAPTIVE 129 |
|
#define | SMART_EXTENDED_SELFTEST_CAPTIVE 130 |
|
#define | READ_ATTRIBUTE_BUFFER_SIZE 512 |
|
#define | IDENTIFY_BUFFER_SIZE 512 |
|
#define | READ_THRESHOLD_BUFFER_SIZE 512 |
|
#define | SMART_LOG_SECTOR_SIZE 512 |
|
#define | READ_ATTRIBUTES 0xD0 |
|
#define | READ_THRESHOLDS 0xD1 |
|
#define | ENABLE_DISABLE_AUTOSAVE 0xD2 |
|
#define | SAVE_ATTRIBUTE_VALUES 0xD3 |
|
#define | EXECUTE_OFFLINE_DIAGS 0xD4 |
|
#define | SMART_READ_LOG 0xD5 |
|
#define | SMART_WRITE_LOG 0xd6 |
|
#define | ENABLE_SMART 0xD8 |
|
#define | DISABLE_SMART 0xD9 |
|
#define | RETURN_SMART_STATUS 0xDA |
|
#define | ENABLE_DISABLE_AUTO_OFFLINE 0xDB |
|
#define | DISK_ATTRIBUTE_OFFLINE 0x0000000000000001 |
|
#define | DISK_ATTRIBUTE_READ_ONLY 0x0000000000000002 |
|
#define | DISK_ATTRIBUTE_HIDDEN 0x0000000000000004 |
|
#define | DISK_ATTRIBUTE_MAINTENANCE 0x0000000000000008 |
|
#define | DISK_ATTRIBUTE_SPACES_BYPASS 0x0000000000000010 |
|
#define | DISK_CLUSTER_FLAG_ENABLED 0x0000000000000001 |
|
#define | DISK_CLUSTER_FLAG_CSV 0x0000000000000002 |
|
#define | DISK_CLUSTER_FLAG_IN_MAINTENANCE 0x0000000000000004 |
|
#define | DISK_CLUSTER_FLAG_PNP_ARRIVAL_COMPLETE 0x0000000000000008 |
|