ActlEjectMedia

The ActlEjectMedia structure is used in the AdvControl function to eject the medium from a removable drive (CD-ROM/USB/SUBST).
struct ActlEjectMedia {
  DWORD Letter;
  DWORD Flags;
};

Elements

Letter
Drive letter of the removable drive.
Flags
Combination of the following flags (FAREJECTMEDIAFLAGS enum):
FlagDescription
EJECT_NO_MESSAGE suppress error message display
EJECT_LOAD_MEDIA attempt to "load/close" device (works only in Windows NT/2000/XP/2003/Vista/2008 and only for CD-ROM drives)
See also:
Structures | TActlEjectMedia