PREVENT_MEDIA_REMOVAL

The PREVENT_MEDIA_REMOVAL structure provides removable media locking data.

typedef struct _PREVENT_MEDIA_REMOVAL{ 
   BOOLEAN PreventMediaRemoval; 
} PREVENT_MEDIA_REMOVAL ; 
 

Members

PreventMediaRemoval
Specifies whether the media is to be locked (if TRUE) or not (if FALSE).

Remarks

The DeviceIoControl function uses a PREVENT_MEDIA_REMOVAL structure as input to an IOCTL_DISK_MEDIA_REMOVAL device input and output operation.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in winioctl.h.

See Also

Device Input and Output Overview, Device Input and Output Structures, DeviceIoControl, IOCTL_DISK_MEDIA_REMOVAL