Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This structure contains information about the disk device.
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; you must use a value of 512. - 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 are synchronous and do not involve memory manager calls, loader operations, or thread switches.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Diskio.h.
See Also
Block Drivers | IOCTL_DISK_FORMAT_MEDIA
Send Feedback on this topic to the authors