Platform SDK: Hardware |
The PREVENT_MEDIA_REMOVAL structure provides removable media locking data.
typedef struct _PREVENT_MEDIA_REMOVAL{ BOOLEAN PreventMediaRemoval; } PREVENT_MEDIA_REMOVAL;
The DeviceIoControl function uses a PREVENT_MEDIA_REMOVAL structure as input to an IOCTL_DISK_MEDIA_REMOVAL control code.
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Unsupported.
Header: Declared in Winioctl.h.
Device Input and Output Overview, Device Input and Output Structures, DeviceIoControl, IOCTL_DISK_MEDIA_REMOVAL