## Physical Device Driver Reference

[prev][next][parent][TOC]

### 1h - Remarks

On entry, the request packet will have the media descriptor field set for the drive identified in the request packet header. The physical device driver must perform the following actions for the MEDIA CHECK request:

Set the status WORD in the request packet header
Set the return code:
-1 = Media has been changed
0 = Unsure if media has been changed
1 = Media unchanged

Note:

To determine whether a single-sided or a double-sided 8-inch diskette (FEH ) is in use, attempt to read the second side. If an error occurs, assume the diskette is single-sided.
Application programmers are encouraged to use the generic IOCtl, DSK_ GETDEVICEPARAMS and reference the BIOS Parameter Block (BPB) to determine the type of media.