The MCIWNDM_EJECT message sends a command to an MCI device to eject its media. You can send this message explicitly or by using the MCIWndEject macro.
MCIWNDM_EJECT
wParam = 0;
lParam = 0;
Returns zero if successful or an error otherwise.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
MCIWnd Window Class Overview, MCIWnd Messages, MCIWndEject