Platform SDK: Win32 API |
Forces a media change.
This sub-function is called when the SetDPB_Function member of the SDPDFormatStruc structure is set to 2.
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.
This is similar to the SetDPB_SetDPBFrmBPB 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).
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)