/* Attach live or empty CD/DVD ROM Device */
CVirtualBox vbox = vboxGlobal().virtualBox();
QVector <CMedium> dvds = vbox.GetHost().GetDVDDrives(); 
QString dvdId("");
if (dvds.count() > 0)
{
dvdId = dvds[0].GetId();
vmedium = vboxGlobal().findMedium(dvdId);
medium = vmedium.medium();
m.AttachDevice (ctrDvdName, 1, 0, KDeviceType_DVD, medium);
}
else
{ 
m.AttachDevice (ctrDvdName, 1, 0, KDeviceType_DVD, CMedium());
}

--- On Tue, 10/4/11, Emad Steitieh <[email protected]> wrote:


From: Emad Steitieh <[email protected]>
Subject: [vbox-dev] Live CD/DVD Setting
To: "[email protected]" <[email protected]>
Date: Tuesday, October 4, 2011, 3:10 AM




Hello Experts,
 
I tried to find the API that makes a DVD live but could not. If you add a DVD 
drive to a machine you have the option to set it to be Live CD/DVD. How can I 
do that using the MSCOM? Thank you
 
Regards,
emadns
 
-----Inline Attachment Follows-----


_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev
_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to