The IOCTL_DISK_EJECT_MEDIA operation has been superseded by the IOCTL_STORAGE_EJECT_MEDIA operation.
Device Input and Output Overview, Device Input and Output Operations