Share via


DISK_INFO (Compact 2013)

3/26/2014

This structure contains information about the disk device.

Syntax

typedef struct _DISK_INFO {
  DWORD di_total_sectors;
  DWORD di_bytes_per_sect;
  DWORD di_cylinders;
  DWORD di_heads;
  DWORD di_sectors;
  DWORD di_flags;
} DISK_INFO, *PDISK_INFO;

Members

  • di_total_sectors
    Total number of blocks on the device.
  • di_bytes_per_sect
    The size of a block in bytes.
  • di_cylinders
    If the device supports cylinder/head/sector (CHS) addressing, the driver may report the number of cylinders; however, the FAT file system does not depend on this information.
  • di_heads
    If the device supports CHS addressing, the driver may report the number of heads per cylinder; however, the FAT file system does not depend on this information.
  • di_sectors
    If the device supports CHS addressing, the driver may report the number of sectors per track; however, the FAT file system does not depend on this information.
  • di_flags
    The following table shows the available flags; you can use any combination of these optional flags.

    Flag

    Description

    DISK_INFO_FLAG_MBR

    The device has or needs an MBR.

    DISK_INFO_FLAG_CHS_UNCERTAIN

    The device does not support CHS addressing; values for di_cylinders, di_heads, and di_sectors may be simulations, estimations, or not provided.

    DISK_INFO_FLAG_UNFORMATTED

    The device requires a low-level format with the IOCTL_DISK_FORMAT_MEDIA. The FAT file system currently ignores this flag.

    DISK_INFO_FLAG_PAGEABLE

    The device supports demand paging. Read and write requests do not involve memory manager calls or loader operations.

Requirements

Header

diskio.h

See Also

Reference

Block Driver Structures
IOCTL_DISK_FORMAT_MEDIA