◄Up► ◄Next► ◄Previous► ──────────────────────────────────────────────────────────────────────────── #define INCL_DOSDEVIOCTL USHORT DosDevIOCtl(pfNonRemovable, pbCommand, 0x0020, 0x0008, hDevice) PBYTE pfNonRemovable; /* pointer to removable/nonremovable flag */ PBYTE pbCommand; /* pointer to variable with command */ HFILE hDevice; /* device handle */ The DSK_BLOCKREMOVABLE function indicates whether the block device is removable. Parameter Description ──────────────────────────────────────────────────────────────────────────── pfNonRemovable Points to the variable that receives the medium type. This variable is 0x0000 if the medium is removable or 0x0001 if it is nonremovable. pbCommand Points to the variable that contains a reserved value. This value must be zero. hDevice Identifies the disk-drive that receives the device-control function. The handle must have been created previously by using the DosOpen function. Return Value The return value is zero if the function is successful or an error value if an error occurs. See Also DosOpen ♦