# 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):

Flag | Description
--- | ---
EJECT_NO_MESSAGE | suppress error message display
EJECT_LOAD_MEDIA | attempt to "load/close" device (works only for CD-ROM drives, doesn't work under Windows 95/98/Me)

See also:
Structures | TActlEjectMedia