ReactOS  0.4.12-dev-919-gfc3b8d5
ntdddisk.h File Reference
#include "ntddstor.h"
#include <pshpack1.h>
#include <poppack.h>
Include dependency graph for ntdddisk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _DISK_CONTROLLER_NUMBER
 
struct  _DISK_INT13_INFO
 
struct  _DISK_EX_INT13_INFO
 
struct  _DISK_DETECTION_INFO
 
struct  _DISK_GEOMETRY
 
struct  _DISK_GEOMETRY_EX
 
struct  _PARTITION_INFORMATION
 
struct  _PARTITION_INFORMATION_GPT
 
struct  _DISK_PARTITION_INFO
 
struct  _DISK_PERFORMANCE
 
struct  _PARTITION_INFORMATION_MBR
 
struct  _PARTITION_INFORMATION_EX
 
struct  _DRIVE_LAYOUT_INFORMATION
 
struct  _DRIVE_LAYOUT_INFORMATION_MBR
 
struct  _DRIVE_LAYOUT_INFORMATION_GPT
 
struct  _DRIVE_LAYOUT_INFORMATION_EX
 
struct  _FORMAT_EX_PARAMETERS
 
struct  _FORMAT_PARAMETERS
 
struct  _GET_LENGTH_INFORMATION
 
struct  _REASSIGN_BLOCKS
 
struct  _SET_PARTITION_INFORMATION
 
struct  _SET_PARTITION_INFORMATION_EX
 
struct  _VERIFY_INFORMATION
 
struct  _GETVERSIONINPARAMS
 
struct  _IDEREGS
 
struct  _SENDCMDINPARAMS
 
struct  _DRIVERSTATUS
 
struct  _SENDCMDOUTPARAMS
 
struct  _MAPPED_ADDRESS
 

Macros

#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_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_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_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_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_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_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_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_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_SET_CACHE_INFORMATION   CTL_CODE(IOCTL_DISK_BASE, 0x0036, 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_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_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_UPDATE_DRIVE_SIZE   CTL_CODE(IOCTL_DISK_BASE, 0x0032, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
 
#define IOCTL_DISK_VERIFY   CTL_CODE(IOCTL_DISK_BASE, 0x0005, METHOD_BUFFERED, FILE_ANY_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_PREP   0x41
 
#define PARTITION_LDM   0x42
 
#define PARTITION_UNIX   0x63
 
#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 DiskGeometryGetPartition(Geometry)   ((PDISK_PARTITION_INFO)((Geometry) + 1))
 
#define DiskGeometryGetDetect(Geometry)
 
#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
 

Typedefs

typedef USHORT BAD_TRACK_NUMBER
 
typedef USHORTPBAD_TRACK_NUMBER
 
typedef enum _MEDIA_TYPE MEDIA_TYPE
 
typedef enum _MEDIA_TYPEPMEDIA_TYPE
 
typedef enum _DETECTION_TYPE DETECTION_TYPE
 
typedef struct _DISK_CONTROLLER_NUMBER DISK_CONTROLLER_NUMBER
 
typedef struct _DISK_CONTROLLER_NUMBERPDISK_CONTROLLER_NUMBER
 
typedef struct _DISK_INT13_INFO DISK_INT13_INFO
 
typedef struct _DISK_INT13_INFOPDISK_INT13_INFO
 
typedef struct _DISK_EX_INT13_INFO DISK_EX_INT13_INFO
 
typedef struct _DISK_EX_INT13_INFOPDISK_EX_INT13_INFO
 
typedef struct _DISK_DETECTION_INFO DISK_DETECTION_INFO
 
typedef struct _DISK_DETECTION_INFOPDISK_DETECTION_INFO
 
typedef struct _DISK_GEOMETRY DISK_GEOMETRY
 
typedef struct _DISK_GEOMETRYPDISK_GEOMETRY
 
typedef struct _DISK_GEOMETRY_EX DISK_GEOMETRY_EX
 
typedef struct _DISK_GEOMETRY_EXPDISK_GEOMETRY_EX
 
typedef struct _PARTITION_INFORMATION PARTITION_INFORMATION
 
typedef struct _PARTITION_INFORMATIONPPARTITION_INFORMATION
 
typedef struct _PARTITION_INFORMATION_GPT PARTITION_INFORMATION_GPT
 
typedef struct _PARTITION_INFORMATION_GPTPPARTITION_INFORMATION_GPT
 
typedef enum _PARTITION_STYLE PARTITION_STYLE
 
typedef struct _DISK_PARTITION_INFO DISK_PARTITION_INFO
 
typedef struct _DISK_PARTITION_INFOPDISK_PARTITION_INFO
 
typedef struct _DISK_PERFORMANCE DISK_PERFORMANCE
 
typedef struct _DISK_PERFORMANCEPDISK_PERFORMANCE
 
typedef struct _PARTITION_INFORMATION_MBR PARTITION_INFORMATION_MBR
 
typedef struct _PARTITION_INFORMATION_MBRPPARTITION_INFORMATION_MBR
 
typedef struct _PARTITION_INFORMATION_EX PARTITION_INFORMATION_EX
 
typedef struct _PARTITION_INFORMATION_EXPPARTITION_INFORMATION_EX
 
typedef struct _DRIVE_LAYOUT_INFORMATION DRIVE_LAYOUT_INFORMATION
 
typedef struct _DRIVE_LAYOUT_INFORMATIONPDRIVE_LAYOUT_INFORMATION
 
typedef struct _DRIVE_LAYOUT_INFORMATION_MBR DRIVE_LAYOUT_INFORMATION_MBR
 
typedef struct _DRIVE_LAYOUT_INFORMATION_MBRPDRIVE_LAYOUT_INFORMATION_MBR
 
typedef struct _DRIVE_LAYOUT_INFORMATION_GPT DRIVE_LAYOUT_INFORMATION_GPT
 
typedef struct _DRIVE_LAYOUT_INFORMATION_GPTPDRIVE_LAYOUT_INFORMATION_GPT
 
typedef struct _DRIVE_LAYOUT_INFORMATION_EX DRIVE_LAYOUT_INFORMATION_EX
 
typedef struct _DRIVE_LAYOUT_INFORMATION_EXPDRIVE_LAYOUT_INFORMATION_EX
 
typedef struct _FORMAT_EX_PARAMETERS FORMAT_EX_PARAMETERS
 
typedef struct _FORMAT_EX_PARAMETERSPFORMAT_EX_PARAMETERS
 
typedef struct _FORMAT_PARAMETERS FORMAT_PARAMETERS
 
typedef struct _FORMAT_PARAMETERSPFORMAT_PARAMETERS
 
typedef struct _GET_LENGTH_INFORMATION GET_LENGTH_INFORMATION
 
typedef struct _GET_LENGTH_INFORMATIONPGET_LENGTH_INFORMATION
 
typedef struct _REASSIGN_BLOCKS REASSIGN_BLOCKS
 
typedef struct _REASSIGN_BLOCKSPREASSIGN_BLOCKS
 
typedef struct _SET_PARTITION_INFORMATION SET_PARTITION_INFORMATION
 
typedef struct _SET_PARTITION_INFORMATIONPSET_PARTITION_INFORMATION
 
typedef SET_PARTITION_INFORMATION SET_PARTITION_INFORMATION_MBR
 
typedef PARTITION_INFORMATION_GPT SET_PARTITION_INFORMATION_GPT
 
typedef struct _SET_PARTITION_INFORMATION_EX SET_PARTITION_INFORMATION_EX
 
typedef struct _SET_PARTITION_INFORMATION_EXPSET_PARTITION_INFORMATION_EX
 
typedef struct _VERIFY_INFORMATION VERIFY_INFORMATION
 
typedef struct _VERIFY_INFORMATIONPVERIFY_INFORMATION
 
typedef struct _GETVERSIONINPARAMS GETVERSIONINPARAMS
 
typedef struct _GETVERSIONINPARAMSPGETVERSIONINPARAMS
 
typedef struct _GETVERSIONINPARAMSLPGETVERSIONINPARAMS
 
typedef struct _IDEREGS IDEREGS
 
typedef struct _IDEREGSPIDEREGS
 
typedef struct _IDEREGSLPIDEREGS
 
typedef struct _SENDCMDINPARAMS SENDCMDINPARAMS
 
typedef struct _SENDCMDINPARAMSPSENDCMDINPARAMS
 
typedef struct _SENDCMDINPARAMSLPSENDCMDINPARAMS
 
typedef struct _DRIVERSTATUS DRIVERSTATUS
 
typedef struct _DRIVERSTATUSPDRIVERSTATUS
 
typedef struct _DRIVERSTATUSLPDRIVERSTATUS
 
typedef struct _SENDCMDOUTPARAMS SENDCMDOUTPARAMS
 
typedef struct _SENDCMDOUTPARAMSPSENDCMDOUTPARAMS
 
typedef struct _SENDCMDOUTPARAMSLPSENDCMDOUTPARAMS
 
typedef struct _MAPPED_ADDRESS MAPPED_ADDRESS
 
typedef struct _MAPPED_ADDRESSPMAPPED_ADDRESS
 

Enumerations

enum  _MEDIA_TYPE {
  Unknown, F5_1Pt2_512, F3_1Pt44_512, F3_2Pt88_512,
  F3_20Pt8_512, F3_720_512, F5_360_512, F5_320_512,
  F5_320_1024, F5_180_512, F5_160_512, RemovableMedia,
  FixedMedia, F3_120M_512, F3_640_512, F5_640_512,
  F5_720_512, F3_1Pt2_512, F3_1Pt23_1024, F5_1Pt23_1024,
  F3_128Mb_512, F3_230Mb_512, F8_256_128, F3_200Mb_512,
  F3_240M_512, F3_32M_512, Unknown, F5_1Pt2_512,
  F3_1Pt44_512, F3_2Pt88_512, F3_20Pt8_512, F3_720_512,
  F5_360_512, F5_320_512, F5_320_1024, F5_180_512,
  F5_160_512, RemovableMedia, FixedMedia, F3_120M_512,
  F3_640_512, F5_640_512, F5_720_512, F3_1Pt2_512,
  F3_1Pt23_1024, F5_1Pt23_1024, F3_128Mb_512, F3_230Mb_512,
  F8_256_128, F3_200Mb_512, F3_240M_512, F3_32M_512,
  Unknown, F5_1Pt2_512, F3_1Pt44_512, F3_2Pt88_512,
  F3_20Pt8_512, F3_720_512, F5_360_512, F5_320_512,
  F5_320_1024, F5_180_512, F5_160_512, RemovableMedia,
  FixedMedia, F3_120M_512, F3_640_512, F5_640_512,
  F5_720_512, F3_1Pt2_512, F3_1Pt23_1024, F5_1Pt23_1024,
  F3_128Mb_512, F3_230Mb_512, F8_256_128
}
 
enum  _DETECTION_TYPE {
  DetectNone, DetectInt13, DetectExInt13, DetectNone,
  DetectInt13, DetectExInt13
}
 
enum  _PARTITION_STYLE {
  PARTITION_STYLE_MBR, PARTITION_STYLE_GPT, PARTITION_STYLE_MBR, PARTITION_STYLE_GPT,
  PARTITION_STYLE_RAW, PARTITION_STYLE_MBR, PARTITION_STYLE_GPT, PARTITION_STYLE_RAW
}
 

Macro Definition Documentation

◆ __GNU_EXTENSION

#define __GNU_EXTENSION

Definition at line 31 of file ntdddisk.h.

◆ ATAPI_ID_CMD

#define ATAPI_ID_CMD   0xA1

Definition at line 555 of file ntdddisk.h.

◆ CAP_ATA_ID_CMD

#define CAP_ATA_ID_CMD   1

Definition at line 541 of file ntdddisk.h.

◆ CAP_ATAPI_ID_CMD

#define CAP_ATAPI_ID_CMD   2

Definition at line 542 of file ntdddisk.h.

◆ CAP_SMART_CMD

#define CAP_SMART_CMD   4

Definition at line 543 of file ntdddisk.h.

◆ DD_DISK_DEVICE_NAME

#define DD_DISK_DEVICE_NAME   "\\Device\\UNKNOWN"

Definition at line 41 of file ntdddisk.h.

◆ DD_DISK_DEVICE_NAME_U

#define DD_DISK_DEVICE_NAME_U   L"\\Device\\UNKNOWN"

Definition at line 42 of file ntdddisk.h.

◆ DISABLE_SMART

#define DISABLE_SMART   0xD9

Definition at line 632 of file ntdddisk.h.

◆ DiskGeometryGetDetect

#define DiskGeometryGetDetect (   Geometry)
Value:
DiskGeometryGetPartition(Geometry)->SizeOfPartitionInfo)))
#define DiskGeometryGetPartition(Geometry)
Definition: ntdddisk.h:385
struct _DISK_DETECTION_INFO * PDISK_DETECTION_INFO
BYTE * PBYTE
Definition: pedump.c:66

Definition at line 388 of file ntdddisk.h.

◆ DiskGeometryGetPartition

#define DiskGeometryGetPartition (   Geometry)    ((PDISK_PARTITION_INFO)((Geometry) + 1))

Definition at line 385 of file ntdddisk.h.

◆ ENABLE_DISABLE_AUTO_OFFLINE

#define ENABLE_DISABLE_AUTO_OFFLINE   0xDB

Definition at line 634 of file ntdddisk.h.

◆ ENABLE_DISABLE_AUTOSAVE

#define ENABLE_DISABLE_AUTOSAVE   0xD2

Definition at line 626 of file ntdddisk.h.

◆ ENABLE_SMART

#define ENABLE_SMART   0xD8

Definition at line 631 of file ntdddisk.h.

◆ EXECUTE_OFFLINE_DIAGS

#define EXECUTE_OFFLINE_DIAGS   0xD4

Definition at line 628 of file ntdddisk.h.

◆ ID_CMD

#define ID_CMD   0xEC

Definition at line 556 of file ntdddisk.h.

◆ IDENTIFY_BUFFER_SIZE

#define IDENTIFY_BUFFER_SIZE   512

Definition at line 612 of file ntdddisk.h.

◆ IOCTL_DISK_BASE

#define IOCTL_DISK_BASE   FILE_DEVICE_DISK

Definition at line 44 of file ntdddisk.h.

◆ IOCTL_DISK_CHECK_VERIFY

#define IOCTL_DISK_CHECK_VERIFY   CTL_CODE(IOCTL_DISK_BASE, 0x0200, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 46 of file ntdddisk.h.

◆ IOCTL_DISK_CONTROLLER_NUMBER

#define IOCTL_DISK_CONTROLLER_NUMBER   CTL_CODE(IOCTL_DISK_BASE, 0x0011, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 49 of file ntdddisk.h.

◆ IOCTL_DISK_COPY_DATA

#define IOCTL_DISK_COPY_DATA   CTL_CODE(IOCTL_DISK_BASE, 0x0019, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 188 of file ntdddisk.h.

◆ IOCTL_DISK_CREATE_DISK

#define IOCTL_DISK_CREATE_DISK   CTL_CODE(IOCTL_DISK_BASE, 0x0016, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 52 of file ntdddisk.h.

◆ IOCTL_DISK_DELETE_DRIVE_LAYOUT

#define IOCTL_DISK_DELETE_DRIVE_LAYOUT   CTL_CODE(IOCTL_DISK_BASE, 0x0040, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 55 of file ntdddisk.h.

◆ IOCTL_DISK_EJECT_MEDIA

#define IOCTL_DISK_EJECT_MEDIA   CTL_CODE(IOCTL_DISK_BASE, 0x0202, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 139 of file ntdddisk.h.

◆ IOCTL_DISK_FIND_NEW_DEVICES [1/2]

#define IOCTL_DISK_FIND_NEW_DEVICES   CTL_CODE(IOCTL_DISK_BASE, 0x0206, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 151 of file ntdddisk.h.

◆ IOCTL_DISK_FIND_NEW_DEVICES [2/2]

#define IOCTL_DISK_FIND_NEW_DEVICES   CTL_CODE(IOCTL_DISK_BASE, 0x0206, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 151 of file ntdddisk.h.

◆ IOCTL_DISK_FORMAT_TRACKS

#define IOCTL_DISK_FORMAT_TRACKS   CTL_CODE(IOCTL_DISK_BASE, 0x0006, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 61 of file ntdddisk.h.

◆ IOCTL_DISK_FORMAT_TRACKS_EX

#define IOCTL_DISK_FORMAT_TRACKS_EX   CTL_CODE(IOCTL_DISK_BASE, 0x000b, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 64 of file ntdddisk.h.

◆ IOCTL_DISK_GET_CACHE_INFORMATION

#define IOCTL_DISK_GET_CACHE_INFORMATION   CTL_CODE(IOCTL_DISK_BASE, 0x0035, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 67 of file ntdddisk.h.

◆ IOCTL_DISK_GET_DRIVE_GEOMETRY

#define IOCTL_DISK_GET_DRIVE_GEOMETRY   CTL_CODE(IOCTL_DISK_BASE, 0x0000, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 70 of file ntdddisk.h.

◆ IOCTL_DISK_GET_DRIVE_GEOMETRY_EX

#define IOCTL_DISK_GET_DRIVE_GEOMETRY_EX   CTL_CODE(IOCTL_DISK_BASE, 0x0028, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 73 of file ntdddisk.h.

◆ IOCTL_DISK_GET_DRIVE_LAYOUT

#define IOCTL_DISK_GET_DRIVE_LAYOUT   CTL_CODE(IOCTL_DISK_BASE, 0x0003, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 76 of file ntdddisk.h.

◆ IOCTL_DISK_GET_DRIVE_LAYOUT_EX

#define IOCTL_DISK_GET_DRIVE_LAYOUT_EX   CTL_CODE(IOCTL_DISK_BASE, 0x0014, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 79 of file ntdddisk.h.

◆ IOCTL_DISK_GET_LENGTH_INFO

#define IOCTL_DISK_GET_LENGTH_INFO   CTL_CODE(IOCTL_DISK_BASE, 0x0017, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 85 of file ntdddisk.h.

◆ IOCTL_DISK_GET_MEDIA_TYPES

#define IOCTL_DISK_GET_MEDIA_TYPES   CTL_CODE(IOCTL_DISK_BASE, 0x0300, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 82 of file ntdddisk.h.

◆ IOCTL_DISK_GET_PARTITION_INFO

#define IOCTL_DISK_GET_PARTITION_INFO   CTL_CODE(IOCTL_DISK_BASE, 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 88 of file ntdddisk.h.

◆ IOCTL_DISK_GET_PARTITION_INFO_EX

#define IOCTL_DISK_GET_PARTITION_INFO_EX   CTL_CODE(IOCTL_DISK_BASE, 0x0012, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 91 of file ntdddisk.h.

◆ IOCTL_DISK_GROW_PARTITION

#define IOCTL_DISK_GROW_PARTITION   CTL_CODE(IOCTL_DISK_BASE, 0x0034, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 94 of file ntdddisk.h.

◆ IOCTL_DISK_HISTOGRAM_DATA

#define IOCTL_DISK_HISTOGRAM_DATA   CTL_CODE(IOCTL_DISK_BASE, 0x000d, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 100 of file ntdddisk.h.

◆ IOCTL_DISK_HISTOGRAM_RESET

#define IOCTL_DISK_HISTOGRAM_RESET   CTL_CODE(IOCTL_DISK_BASE, 0x000e, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 103 of file ntdddisk.h.

◆ IOCTL_DISK_HISTOGRAM_STRUCTURE

#define IOCTL_DISK_HISTOGRAM_STRUCTURE   CTL_CODE(IOCTL_DISK_BASE, 0x000c, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 97 of file ntdddisk.h.

◆ IOCTL_DISK_INTERNAL_CLEAR_VERIFY

#define IOCTL_DISK_INTERNAL_CLEAR_VERIFY   CTL_CODE(IOCTL_DISK_BASE, 0x0101, METHOD_NEITHER, FILE_ANY_ACCESS)

Definition at line 106 of file ntdddisk.h.

◆ IOCTL_DISK_INTERNAL_SET_NOTIFY

#define IOCTL_DISK_INTERNAL_SET_NOTIFY   CTL_CODE(IOCTL_DISK_BASE, 0x0102, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 112 of file ntdddisk.h.

◆ IOCTL_DISK_INTERNAL_SET_VERIFY

#define IOCTL_DISK_INTERNAL_SET_VERIFY   CTL_CODE(IOCTL_DISK_BASE, 0x0100, METHOD_NEITHER, FILE_ANY_ACCESS)

Definition at line 109 of file ntdddisk.h.

◆ IOCTL_DISK_IS_WRITABLE

#define IOCTL_DISK_IS_WRITABLE   CTL_CODE(IOCTL_DISK_BASE, 0x0009, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 115 of file ntdddisk.h.

◆ IOCTL_DISK_LOAD_MEDIA

#define IOCTL_DISK_LOAD_MEDIA   CTL_CODE(IOCTL_DISK_BASE, 0x0203, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 142 of file ntdddisk.h.

◆ IOCTL_DISK_LOGGING

#define IOCTL_DISK_LOGGING   CTL_CODE(IOCTL_DISK_BASE, 0x000a, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 118 of file ntdddisk.h.

◆ IOCTL_DISK_MEDIA_REMOVAL

#define IOCTL_DISK_MEDIA_REMOVAL   CTL_CODE(IOCTL_DISK_BASE, 0x0201, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 136 of file ntdddisk.h.

◆ IOCTL_DISK_PERFORMANCE

#define IOCTL_DISK_PERFORMANCE   CTL_CODE(IOCTL_DISK_BASE, 0x0008, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 121 of file ntdddisk.h.

◆ IOCTL_DISK_PERFORMANCE_OFF

#define IOCTL_DISK_PERFORMANCE_OFF   CTL_CODE(IOCTL_DISK_BASE, 0x0018, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 124 of file ntdddisk.h.

◆ IOCTL_DISK_REASSIGN_BLOCKS

#define IOCTL_DISK_REASSIGN_BLOCKS   CTL_CODE(IOCTL_DISK_BASE, 0x0007, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 127 of file ntdddisk.h.

◆ IOCTL_DISK_RELEASE

#define IOCTL_DISK_RELEASE   CTL_CODE(IOCTL_DISK_BASE, 0x0205, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 148 of file ntdddisk.h.

◆ IOCTL_DISK_REQUEST_DATA

#define IOCTL_DISK_REQUEST_DATA   CTL_CODE(IOCTL_DISK_BASE, 0x0010, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 130 of file ntdddisk.h.

◆ IOCTL_DISK_REQUEST_STRUCTURE

#define IOCTL_DISK_REQUEST_STRUCTURE   CTL_CODE(IOCTL_DISK_BASE, 0x000f, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 133 of file ntdddisk.h.

◆ IOCTL_DISK_RESERVE

#define IOCTL_DISK_RESERVE   CTL_CODE(IOCTL_DISK_BASE, 0x0204, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 145 of file ntdddisk.h.

◆ IOCTL_DISK_SET_CACHE_INFORMATION

#define IOCTL_DISK_SET_CACHE_INFORMATION   CTL_CODE(IOCTL_DISK_BASE, 0x0036, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 154 of file ntdddisk.h.

◆ IOCTL_DISK_SET_DRIVE_LAYOUT

#define IOCTL_DISK_SET_DRIVE_LAYOUT   CTL_CODE(IOCTL_DISK_BASE, 0x0004, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 170 of file ntdddisk.h.

◆ IOCTL_DISK_SET_DRIVE_LAYOUT_EX

#define IOCTL_DISK_SET_DRIVE_LAYOUT_EX   CTL_CODE(IOCTL_DISK_BASE, 0x0015, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 173 of file ntdddisk.h.

◆ IOCTL_DISK_SET_PARTITION_INFO

#define IOCTL_DISK_SET_PARTITION_INFO   CTL_CODE(IOCTL_DISK_BASE, 0x0002, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 176 of file ntdddisk.h.

◆ IOCTL_DISK_SET_PARTITION_INFO_EX

#define IOCTL_DISK_SET_PARTITION_INFO_EX   CTL_CODE(IOCTL_DISK_BASE, 0x0013, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 179 of file ntdddisk.h.

◆ IOCTL_DISK_SIMBAD

#define IOCTL_DISK_SIMBAD   CTL_CODE(IOCTL_DISK_BASE, 0x0400, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 191 of file ntdddisk.h.

◆ IOCTL_DISK_UPDATE_DRIVE_SIZE

#define IOCTL_DISK_UPDATE_DRIVE_SIZE   CTL_CODE(IOCTL_DISK_BASE, 0x0032, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 182 of file ntdddisk.h.

◆ IOCTL_DISK_VERIFY

#define IOCTL_DISK_VERIFY   CTL_CODE(IOCTL_DISK_BASE, 0x0005, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 185 of file ntdddisk.h.

◆ IsContainerPartition

#define IsContainerPartition (   PartitionType)
Value:
#define PARTITION_XINT13_EXTENDED
Definition: ntdddisk.h:226
#define PARTITION_EXTENDED
Definition: ntdddisk.h:219
CHAR PartitionType
Definition: part_xbox.c:33

Definition at line 245 of file ntdddisk.h.

◆ IsFTPartition

#define IsFTPartition (   PartitionType)
Value:
IsRecognizedPartition(PartitionType))
#define PARTITION_NTFT
Definition: ntdddisk.h:231
CHAR PartitionType
Definition: part_xbox.c:33

Definition at line 241 of file ntdddisk.h.

◆ IsRecognizedPartition

#define IsRecognizedPartition (   PartitionType)
Value:
( \
(((PartitionType) & PARTITION_NTFT) && (((PartitionType) & ~0xC0) == PARTITION_HUGE)) || \
(((PartitionType) & PARTITION_NTFT) && (((PartitionType) & ~0xC0) == PARTITION_IFS)) || \
(((PartitionType) & PARTITION_NTFT) && (((PartitionType) & ~0xC0) == PARTITION_FAT32)) || \
#define PARTITION_FAT_12
Definition: ntdddisk.h:215
#define PARTITION_FAT_16
Definition: ntdddisk.h:218
#define PARTITION_IFS
Definition: ntdddisk.h:221
#define PARTITION_FAT32
Definition: ntdddisk.h:223
#define PARTITION_XINT13
Definition: ntdddisk.h:225
#define PARTITION_FAT32_XINT13
Definition: ntdddisk.h:224
#define PARTITION_NTFT
Definition: ntdddisk.h:231
CHAR PartitionType
Definition: part_xbox.c:33
#define PARTITION_HUGE
Definition: ntdddisk.h:220

Definition at line 271 of file ntdddisk.h.

◆ OBSOLETE_DISK_GET_WRITE_CACHE_STATE

#define OBSOLETE_DISK_GET_WRITE_CACHE_STATE   CTL_CODE(IOCTL_DISK_BASE, 0x0037, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 166 of file ntdddisk.h.

◆ PARTITION_ENTRY_UNUSED

#define PARTITION_ENTRY_UNUSED   0x00

Definition at line 214 of file ntdddisk.h.

◆ PARTITION_EXTENDED

#define PARTITION_EXTENDED   0x05

Definition at line 219 of file ntdddisk.h.

◆ PARTITION_FAT32

#define PARTITION_FAT32   0x0B

Definition at line 223 of file ntdddisk.h.

◆ PARTITION_FAT32_XINT13

#define PARTITION_FAT32_XINT13   0x0C

Definition at line 224 of file ntdddisk.h.

◆ PARTITION_FAT_12

#define PARTITION_FAT_12   0x01

Definition at line 215 of file ntdddisk.h.

◆ PARTITION_FAT_16

#define PARTITION_FAT_16   0x04

Definition at line 218 of file ntdddisk.h.

◆ PARTITION_HUGE

#define PARTITION_HUGE   0x06

Definition at line 220 of file ntdddisk.h.

◆ PARTITION_IFS

#define PARTITION_IFS   0x07

Definition at line 221 of file ntdddisk.h.

◆ PARTITION_LDM

#define PARTITION_LDM   0x42

Definition at line 228 of file ntdddisk.h.

◆ PARTITION_NTFT

#define PARTITION_NTFT   0x80

Definition at line 231 of file ntdddisk.h.

◆ PARTITION_OS2BOOTMGR

#define PARTITION_OS2BOOTMGR   0x0A

Definition at line 222 of file ntdddisk.h.

◆ PARTITION_PREP

#define PARTITION_PREP   0x41

Definition at line 227 of file ntdddisk.h.

◆ PARTITION_UNIX

#define PARTITION_UNIX   0x63

Definition at line 229 of file ntdddisk.h.

◆ PARTITION_XENIX_1

#define PARTITION_XENIX_1   0x02

Definition at line 216 of file ntdddisk.h.

◆ PARTITION_XENIX_2

#define PARTITION_XENIX_2   0x03

Definition at line 217 of file ntdddisk.h.

◆ PARTITION_XINT13

#define PARTITION_XINT13   0x0E

Definition at line 225 of file ntdddisk.h.

◆ PARTITION_XINT13_EXTENDED

#define PARTITION_XINT13_EXTENDED   0x0F

Definition at line 226 of file ntdddisk.h.

◆ READ_ATTRIBUTE_BUFFER_SIZE

#define READ_ATTRIBUTE_BUFFER_SIZE   512

Definition at line 611 of file ntdddisk.h.

◆ READ_ATTRIBUTES

#define READ_ATTRIBUTES   0xD0

Definition at line 624 of file ntdddisk.h.

◆ READ_THRESHOLD_BUFFER_SIZE

#define READ_THRESHOLD_BUFFER_SIZE   512

Definition at line 613 of file ntdddisk.h.

◆ READ_THRESHOLDS

#define READ_THRESHOLDS   0xD1

Definition at line 625 of file ntdddisk.h.

◆ RETURN_SMART_STATUS

#define RETURN_SMART_STATUS   0xDA

Definition at line 633 of file ntdddisk.h.

◆ SAVE_ATTRIBUTE_VALUES

#define SAVE_ATTRIBUTE_VALUES   0xD3

Definition at line 627 of file ntdddisk.h.

◆ SMART_ABORT_OFFLINE_SELFTEST

#define SMART_ABORT_OFFLINE_SELFTEST   127

Definition at line 600 of file ntdddisk.h.

◆ SMART_CMD

#define SMART_CMD   0xB0

Definition at line 557 of file ntdddisk.h.

◆ SMART_CYL_HI

#define SMART_CYL_HI   0xC2

Definition at line 560 of file ntdddisk.h.

◆ SMART_CYL_LOW

#define SMART_CYL_LOW   0x4F

Definition at line 559 of file ntdddisk.h.

◆ SMART_ERROR_NO_MEM

#define SMART_ERROR_NO_MEM   7

Definition at line 592 of file ntdddisk.h.

◆ SMART_EXTENDED_SELFTEST_CAPTIVE

#define SMART_EXTENDED_SELFTEST_CAPTIVE   130

Definition at line 602 of file ntdddisk.h.

◆ SMART_EXTENDED_SELFTEST_OFFLINE

#define SMART_EXTENDED_SELFTEST_OFFLINE   2

Definition at line 599 of file ntdddisk.h.

◆ SMART_GET_VERSION

#define SMART_GET_VERSION   CTL_CODE(IOCTL_DISK_BASE, 0x0020, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 194 of file ntdddisk.h.

◆ SMART_IDE_ERROR

#define SMART_IDE_ERROR   1

Definition at line 586 of file ntdddisk.h.

◆ SMART_INVALID_BUFFER

#define SMART_INVALID_BUFFER   4

Definition at line 589 of file ntdddisk.h.

◆ SMART_INVALID_COMMAND

#define SMART_INVALID_COMMAND   3

Definition at line 588 of file ntdddisk.h.

◆ SMART_INVALID_DRIVE

#define SMART_INVALID_DRIVE   5

Definition at line 590 of file ntdddisk.h.

◆ SMART_INVALID_FLAG

#define SMART_INVALID_FLAG   2

Definition at line 587 of file ntdddisk.h.

◆ SMART_INVALID_IOCTL

#define SMART_INVALID_IOCTL   6

Definition at line 591 of file ntdddisk.h.

◆ SMART_INVALID_REGISTER

#define SMART_INVALID_REGISTER   8

Definition at line 593 of file ntdddisk.h.

◆ SMART_LOG_SECTOR_SIZE

#define SMART_LOG_SECTOR_SIZE   512

Definition at line 614 of file ntdddisk.h.

◆ SMART_NO_ERROR

#define SMART_NO_ERROR   0

Definition at line 585 of file ntdddisk.h.

◆ SMART_NO_IDE_DEVICE

#define SMART_NO_IDE_DEVICE   10

Definition at line 595 of file ntdddisk.h.

◆ SMART_NOT_SUPPORTED

#define SMART_NOT_SUPPORTED   9

Definition at line 594 of file ntdddisk.h.

◆ SMART_OFFLINE_ROUTINE_OFFLINE

#define SMART_OFFLINE_ROUTINE_OFFLINE   0

Definition at line 597 of file ntdddisk.h.

◆ SMART_RCV_DRIVE_DATA

#define SMART_RCV_DRIVE_DATA   CTL_CODE(IOCTL_DISK_BASE, 0x0022, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 197 of file ntdddisk.h.

◆ SMART_READ_LOG

#define SMART_READ_LOG   0xD5

Definition at line 629 of file ntdddisk.h.

◆ SMART_SEND_DRIVE_COMMAND

#define SMART_SEND_DRIVE_COMMAND   CTL_CODE(IOCTL_DISK_BASE, 0x0021, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)

Definition at line 200 of file ntdddisk.h.

◆ SMART_SHORT_SELFTEST_CAPTIVE

#define SMART_SHORT_SELFTEST_CAPTIVE   129

Definition at line 601 of file ntdddisk.h.

◆ SMART_SHORT_SELFTEST_OFFLINE

#define SMART_SHORT_SELFTEST_OFFLINE   1

Definition at line 598 of file ntdddisk.h.

◆ SMART_WRITE_LOG

#define SMART_WRITE_LOG   0xd6

Definition at line 630 of file ntdddisk.h.

◆ VALID_NTFT

#define VALID_NTFT   0xC0

Definition at line 230 of file ntdddisk.h.

◆ WMI_DISK_GEOMETRY_GUID

#define WMI_DISK_GEOMETRY_GUID   {0x25007f51, 0x57c2, 0x11d1, {0xa5, 0x28, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0x10}}

Definition at line 295 of file ntdddisk.h.

Typedef Documentation

◆ BAD_TRACK_NUMBER

Definition at line 298 of file ntdddisk.h.

◆ DETECTION_TYPE

◆ DISK_CONTROLLER_NUMBER

◆ DISK_DETECTION_INFO

◆ DISK_EX_INT13_INFO

◆ DISK_GEOMETRY

◆ DISK_GEOMETRY_EX

◆ DISK_INT13_INFO

◆ DISK_PARTITION_INFO

◆ DISK_PERFORMANCE

◆ DRIVE_LAYOUT_INFORMATION

◆ DRIVE_LAYOUT_INFORMATION_EX

◆ DRIVE_LAYOUT_INFORMATION_GPT

◆ DRIVE_LAYOUT_INFORMATION_MBR

◆ DRIVERSTATUS

◆ FORMAT_EX_PARAMETERS

◆ FORMAT_PARAMETERS

◆ GET_LENGTH_INFORMATION

◆ GETVERSIONINPARAMS

◆ IDEREGS

◆ LPDRIVERSTATUS

◆ LPGETVERSIONINPARAMS

◆ LPIDEREGS

◆ LPSENDCMDINPARAMS

◆ LPSENDCMDOUTPARAMS

◆ MAPPED_ADDRESS

◆ MEDIA_TYPE

◆ PARTITION_INFORMATION

◆ PARTITION_INFORMATION_EX

◆ PARTITION_INFORMATION_GPT

◆ PARTITION_INFORMATION_MBR

◆ PARTITION_STYLE

◆ PBAD_TRACK_NUMBER

Definition at line 299 of file ntdddisk.h.

◆ PDISK_CONTROLLER_NUMBER

◆ PDISK_DETECTION_INFO

◆ PDISK_EX_INT13_INFO

◆ PDISK_GEOMETRY

◆ PDISK_GEOMETRY_EX

◆ PDISK_INT13_INFO

◆ PDISK_PARTITION_INFO

◆ PDISK_PERFORMANCE

◆ PDRIVE_LAYOUT_INFORMATION

◆ PDRIVE_LAYOUT_INFORMATION_EX

◆ PDRIVE_LAYOUT_INFORMATION_GPT

◆ PDRIVE_LAYOUT_INFORMATION_MBR

◆ PDRIVERSTATUS

◆ PFORMAT_EX_PARAMETERS

◆ PFORMAT_PARAMETERS

◆ PGET_LENGTH_INFORMATION

◆ PGETVERSIONINPARAMS

◆ PIDEREGS

◆ PMAPPED_ADDRESS

◆ PMEDIA_TYPE

◆ PPARTITION_INFORMATION

◆ PPARTITION_INFORMATION_EX

◆ PPARTITION_INFORMATION_GPT

◆ PPARTITION_INFORMATION_MBR

◆ PREASSIGN_BLOCKS

◆ PSENDCMDINPARAMS

◆ PSENDCMDOUTPARAMS

◆ PSET_PARTITION_INFORMATION

◆ PSET_PARTITION_INFORMATION_EX

◆ PVERIFY_INFORMATION

◆ REASSIGN_BLOCKS

◆ SENDCMDINPARAMS

◆ SENDCMDOUTPARAMS

◆ SET_PARTITION_INFORMATION

◆ SET_PARTITION_INFORMATION_EX

◆ SET_PARTITION_INFORMATION_GPT

◆ SET_PARTITION_INFORMATION_MBR

◆ VERIFY_INFORMATION

Enumeration Type Documentation

◆ _DETECTION_TYPE

Enumerator
DetectNone 
DetectInt13 
DetectExInt13 
DetectNone 
DetectInt13 
DetectExInt13 

Definition at line 330 of file ntdddisk.h.

330  {
331  DetectNone,
332  DetectInt13,
enum _DETECTION_TYPE DETECTION_TYPE

◆ _MEDIA_TYPE

Enumerator
Unknown 
F5_1Pt2_512 
F3_1Pt44_512 
F3_2Pt88_512 
F3_20Pt8_512 
F3_720_512 
F5_360_512 
F5_320_512 
F5_320_1024 
F5_180_512 
F5_160_512 
RemovableMedia 
FixedMedia 
F3_120M_512 
F3_640_512 
F5_640_512 
F5_720_512 
F3_1Pt2_512 
F3_1Pt23_1024 
F5_1Pt23_1024 
F3_128Mb_512 
F3_230Mb_512 
F8_256_128 
F3_200Mb_512 
F3_240M_512 
F3_32M_512 
Unknown 
F5_1Pt2_512 
F3_1Pt44_512 
F3_2Pt88_512 
F3_20Pt8_512 
F3_720_512 
F5_360_512 
F5_320_512 
F5_320_1024 
F5_180_512 
F5_160_512 
RemovableMedia 
FixedMedia 
F3_120M_512 
F3_640_512 
F5_640_512 
F5_720_512 
F3_1Pt2_512 
F3_1Pt23_1024 
F5_1Pt23_1024 
F3_128Mb_512 
F3_230Mb_512 
F8_256_128 
F3_200Mb_512 
F3_240M_512 
F3_32M_512 
Unknown 
F5_1Pt2_512 
F3_1Pt44_512 
F3_2Pt88_512 
F3_20Pt8_512 
F3_720_512 
F5_360_512 
F5_320_512 
F5_320_1024 
F5_180_512 
F5_160_512 
RemovableMedia 
FixedMedia 
F3_120M_512 
F3_640_512 
F5_640_512 
F5_720_512 
F3_1Pt2_512 
F3_1Pt23_1024 
F5_1Pt23_1024 
F3_128Mb_512 
F3_230Mb_512 
F8_256_128 

Definition at line 301 of file ntdddisk.h.

301  {
302  Unknown,
303  F5_1Pt2_512,
304  F3_1Pt44_512,
305  F3_2Pt88_512,
306  F3_20Pt8_512,
307  F3_720_512,
308  F5_360_512,
309  F5_320_512,
310  F5_320_1024,
311  F5_180_512,
312  F5_160_512,
314  FixedMedia,
315  F3_120M_512,
316  F3_640_512,
317  F5_640_512,
318  F5_720_512,
319  F3_1Pt2_512,
322  F3_128Mb_512,
323  F3_230Mb_512,
324  F8_256_128,
325  F3_200Mb_512,
326  F3_240M_512,
327  F3_32M_512
enum _MEDIA_TYPE MEDIA_TYPE
enum _MEDIA_TYPE * PMEDIA_TYPE

◆ _PARTITION_STYLE

Enumerator
PARTITION_STYLE_MBR 
PARTITION_STYLE_GPT 
PARTITION_STYLE_MBR 
PARTITION_STYLE_GPT 
PARTITION_STYLE_RAW 
PARTITION_STYLE_MBR 
PARTITION_STYLE_GPT 
PARTITION_STYLE_RAW 

Definition at line 410 of file ntdddisk.h.