SetDPB_ForceMediaChng (FAT32)

[Windows 95 only.]

Forces a media change.

This sub-function is called when the SetDPB_Function field of the SDPDFormatStruc (FAT32) structure is set to 2.

Return Values

Sets a flag which causes the next MS-DOS access to the drive to call the BUILD_DPD routine in the drive's device driver.

Remarks

This is similar to the SetDPB_SetDPBFrmBPB (FAT32) call, except that the BPB is obtained from the device driver instead of a passed-in parameter.

The function does not take effect on this call. Rather, it takes effect upon the next access to the drive. Therefore, it is recommended to immediately follow this with some other Int 21h call to the drive (for example Int 21h Function 7303h Get_ExtFreeSpace (FAT32)).

As a side effect of this call, the next access to the drive also causes dpb_next_free (or extdpb_next_free) to be reset to 2, and the dpb_free_cnt to be reset to 0xFFFFFFFF.

The assembler calling sequence for all Int 21h 7304h sub-functions is almost identical. See the main listing for a sample. (Int 21h Function 7304h Set_DPBForFormat (FAT32))