FAT32 File System Functions

The FAT32 file system supports the following new Int 21h functions and updated IOCTL functions.

New Int 21h Functions

Several new interrupt 21h functions were implemented to support FAT32 media. These additions are effective for Windows 95 OEM Service Release 2 and later.

The new Interrupt 21h Function 730X functions can be called using the DeviceIoControl function. DeviceIoControl has been updated to support VWIN32_DIOC_DOS_DRIVEINFO, a new control code for Interrupt 21h Function 730X functions.

For more information, see Using VWIN32 to Carry Out MS-DOS Functions.

The following new interrupt 21h functions have been implemented:

Int21h Function 7302h Get_ExtDPB (FAT32)
Int21h Function 7303h Get_ExtFreeSpace (FAT32)
Int21h Function 7304h Set_DPBForFormat (FAT32)
SetDPB_SetAllocInfo (FAT32)
SetDPB_SetDPBFrmBPB (FAT32)
SetDPB_ForceMediaChng (FAT32)
SetDPB_GetSetActFATandMirr (FAT32)
SetDPB_GetSetRootDirClus (FAT32)
Int21h Function 7305h Ext_ABSDiskReadWrite (FAT32)

Updated IOCTL Functions

All IOCTL functions have been modified to accept a new device category value (CH = 48h) for FAT32 drives. These changes are effective for Windows 95 OEM Service Release 2 and later.

Most of the 08h and 48h forms of each function accept identical parameters. In some cases, the two forms of the call (48h and 08h) are interchangeable. However, this is not always true. As a result, applications that call the 48h form of the function must be prepared to fall back on the 08h form, in case of failure. Please refer to each specific function for information regarding these values.

Set Device Parameters Int 21h Function 440Dh Minor Code 40h (FAT32)
Write Track on Logical Drive Int 21h Function 440Dh Minor Code 41h (FAT32)
Format Track on Logical Drive Int 21h Function 440Dh Minor Code 42h (FAT32)
Set Media ID Int 21h Function 440Dh Minor Code 46h (FAT32)
Set Access Flag Int 21h Function 440Dh Minor Code 47h (FAT32)
Lock/Unlock Removable Media Int 21h Function 440Dh Minor Code 48h (FAT32)
Eject Removable Media Int 21h Function 440Dh Minor Code 49h (FAT32)
Lock Logical Volume Int 21h Function 440Dh Minor Code 4Ah (FAT32)
Lock Physical Volume Int 21h Function 440Dh Minor Code 4Bh (FAT32)
Get Device Parameters Int 21h Function 440Dh Minor Code 60h (FAT32)
Read Track on Logical Drive Int 21h Function 440Dh Minor Code 61h (FAT32)
Verify Track on Logical Drive Int 21h Function 440Dh Minor Code 62h (FAT32)
Get Media ID Int 21h Function 440Dh Minor Code 66h (FAT32)
Get Access Flag Int 21h Function 440Dh Minor Code 67h (FAT32)
Sense Media Type Int 21h Function 440Dh Minor Code 68h (FAT32)
Unlock Logical Volume Int 21h Function 440Dh Minor Code 6Ah (FAT32)
Unlock Physical Volume Int 21h Function 440Dh Minor Code 6Bh (FAT32)
Get Lock Flag State Int 21h Function 440Dh Minor Code 6Ch (FAT32)
Enumerate Open Files Int 21h Function 440Dh Minor Code 6Dh (FAT32)
Find Swap File Int 21h Function 440Dh Minor Code 6Eh (FAT32)
Get Drive Map Info Int 21h Function 440Dh Minor Code 6Fh (FAT32)
Get Lock Level Int 21h Function 440Dh Minor Code 70h (FAT32)
Get First Cluster Int 21h Function 440Dh Minor Code 71h (FAT32)