Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
BIOSPARAMETERBLOCK (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSDEVIOCTL
typedef struct _BIOSPARAMETERBLOCK { /* bspblk */
USHORT usBytesPerSector;
BYTE bSectorsPerCluster;
USHORT usReservedSectors;
BYTE cFATs;
USHORT cRootEntries;
USHORT cSectors;
BYTE bMedia;
USHORT usSectorsPerFAT;
USHORT usSectorsPerTrack;
USHORT cHeads;
ULONG cHiddenSectors;
ULONG cLargeSectors;
BYTE abReserved[6];
USHORT cCylinders;
BYTE bDeviceType;
USHORT fsDeviceAttr;
} BIOSPARAMETERBLOCK;
The BIOSPARAMETERBLOCK structure contains BIOS parameter blocks.
Field Description
────────────────────────────────────────────────────────────────────────────
usBytesPerSector Specifies the bytes per sector.
bSectorsPerCluster Specifies the sectors per cluster.
usReservedSectors Specifies the reserved sectors.
cFATs Specifies the number of file-allocation tables.
cRootEntries Specifies the maximum number of entries in the root
directory.
cSectors Specifies the number of sectors.
bMedia Specifies the media descriptor.
usSectorsPerFAT Specifies the number of sectors per file-allocation
table.
usSectorsPerTrack Specifies the number of sectors per track.
cHeads Specifies the number of heads.
cHiddenSectors Specifies the number of hidden sectors.
cLargeSectors Specifies the number of large sectors.
abReserved[6] Specifies six reserved bytes. These must be zero.
cCylinders Specifies the number of cylinders defined for the
device.
bDeviceType Specifies the type of device. It can be one of the
following values:
Value Meaning
────────────────────────────────────────────────────────
DEVTYPE_48TPI 48 tracks-per-inch, low-density
floppy-disk drive
DEVTYPE_96TPI 96 tracks-per-inch, high-density
floppy-disk drive
DEVTYPE_35 3.5-inch (720K) floppy-disk drive
DEVTYPE_8SD 8-inch, single-density floppy-disk
drive
DEVTYPE_8DD 8-inch, double-density floppy-disk
drive
DEVTYPE_FIXED Fixed disk
DEVTYPE_TAPE Tape drive
DEVTYPE_UNKNOWN Other (unknown type of device)
fsDeviceAttr Specifies information about the drive. If this value is
0x0001, the media are not removable. If it is 0x0002,
the media can detect changes. This field can be one or
both of these values.
See Also
DSK_GETDEVICEPARAMS, DSK_SETDEVICEPARAMS
♦