IDiscRecorder::Eject method (imapi.h)

Unlocks and ejects the tray of the disc recorder, if possible.

Syntax

HRESULT Eject();

Return value

S_OK is returned on success, but other success codes may be returned as a result of implementation. The following error codes are commonly returned on operation failure, but do not represent the only possible error values:

Remarks

Not all recorders support calls to eject their media. However, this method attempts to eject media.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header imapi.h
Library Uuid.lib
DLL Actxprxy.dll

See also

IDiscRecorder