Platform SDK: Win32 API

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:

Int 21h Function 7302h Get_ExtDPB
Int 21h Function 7303h Get_ExtFreeSpace
Int 21h Function 7304h Set_DPBForFormat
SetDPB_SetAllocInfo
SetDPB_SetDPBFrmBPB
SetDPB_ForceMediaChng
SetDPB_GetSetActFATandMirr
SetDPB_GetSetRootDirClus
Int 21h Function 7305h Ext_ABSDiskReadWrite

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.

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