This method is specific to version 2.1, or higher, of the OS/2 operating system.
This instance method is used to ejection media from drives that support software eject of removable media.
#define INCL_WINWORKPLACE #include <os2.h> WPDisk *somSelf; /* Pointer to the object on which the method is being invoked. */ ULONG rc; /* Return code from DosDevIOCtl category 8 Function 40. */ rc = _wpEjectDisk(somSelf);