3.2.4.4.3.9 IVolumeClient3::Eject (Opnum 11)

The Eject method ejects a specified removable disk or CD-ROM from the drive enclosure.

 HRESULT Eject(
   [in] LdmObjectId diskId,
   [in] hyper diskLastKnownState,
   [out] TASK_INFO* tinfo
 );

diskId: Specifies the OID of the media to eject.

diskLastKnownState: Disk's last known modification sequence number.

tinfo: Pointer to a TASK_INFO structure that the client can use to track the request's progress.

Return Values: The method MUST return 0 or a nonerror HRESULT on success, or an implementation-specific nonzero error code on failure (as specified in [MS-ERREF]; see also section 2.2.1 for HRESULT values predefined by the Disk Management Remote Protocol).

When the server receives an IVolumeClient3::Eject message, it MUST process that message, as specified in IVolumeClient::Eject (section 3.2.4.4.1.9).