[vbox-dev] Live CD/DVD Setting

Emad Steitieh emadns at yahoo.com
Tue Oct 4 20:52:35 GMT 2011


Thank you for your email. How can I make the DVD Device a Live CD/DVD like in VBox GUI?
 
Regards,
emadns


________________________________
From: Huihong Luo <huisinro at yahoo.com>
To: "vbox-dev at virtualbox.org" <vbox-dev at virtualbox.org>; Emad Steitieh <emadns at yahoo.com>
Sent: Tuesday, October 4, 2011 7:37 PM
Subject: Re: [vbox-dev] Live CD/DVD Setting
 
/* 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 <emadns at yahoo.com> wrote:


>From: Emad Steitieh <emadns at yahoo.com>
>Subject: [vbox-dev] Live CD/DVD Setting
>To: "vbox-dev at virtualbox.org" <vbox-dev at virtualbox.org>
>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 listvbox-dev at virtualbox.orghttps://www.virtualbox.org/mailman/listinfo/vbox-dev 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20111004/68db2740/attachment.html>


More information about the vbox-dev mailing list