PREVENT_MEDIA_REMOVAL structure (winioctl.h)
Provides removable media locking data. It is used by the IOCTL_STORAGE_MEDIA_REMOVAL control code.
Syntax
typedef struct _PREVENT_MEDIA_REMOVAL {
BOOLEAN PreventMediaRemoval;
} PREVENT_MEDIA_REMOVAL, *PPREVENT_MEDIA_REMOVAL;
Members
PreventMediaRemoval
If this member is TRUE, the media is to be locked. Otherwise, it is not.
Requirements
| Minimum supported client | Windows XP |
| Minimum supported server | Windows Server 2003 |
| Header | winioctl.h (include Windows.h) |