2.2.2.1 NtmsEjectOperation Enumeration

The NtmsEjectOperation enumeration defines the types of actions to perform in an eject operation.

 enum NtmsEjectOperation
 {
   NTMS_EJECT_START = 0,
   NTMS_EJECT_STOP = 1,
   NTMS_EJECT_QUEUE = 2,
   NTMS_EJECT_FORCE = 3,
   NTMS_EJECT_IMMEDIATE = 4,
   NTMS_EJECT_ASK_USER = 5
 };

NTMS_EJECT_START:  Start an eject operation on a port. The specified medium MUST be ejected unless the action times out or NTMS_EJECT_STOP is issued. The time-out value is specified in the library object, and MUST be applied to all ejects in the library.

NTMS_EJECT_STOP:  Terminate the ejection process.

NTMS_EJECT_QUEUE:  Queue the specified media for ejection, for multislot NTMS_IEPORT objects.

NTMS_EJECT_FORCE:  Start an eject operation on a port, even if the media is in use.

NTMS_EJECT_IMMEDIATE:  Start an eject operation on a port, and block it until it completes.

NTMS_EJECT_ASK_USER:  Confirm the ejection operation with a user interface message if the medium is in use.