|
StarBurn OCX
|
[ object, uuid("CCF0B62C-61B6-4833-A574-9035345BAFF6"), dual, helpstring("IDiscInfo Interface"), pointer_default(unique) ]
__interface IDiscInfo : public IDispatch;This class allows user to get information about the disc
try
{
stbStatus.Text="Getting disc info";
DiscInfo= Device.GetDiscInfo();
}
catch
{
stbStatus.Text += " - Failed!";
// Show error message
MessageBox.Show("Exception = "+Device.ErrorMessage);
stbStatus.Text = "Ready!";
return;
}
string Message;
if (DiscInfo.IsBlank)
Message="Disc is blankn";
else
Message="Disc is not blankn";
if (DiscInfo.IsErasable)
Message+="Disc is erasablen";
else
Message+="Disc is not erasablen";
Message +="Free LBs = " +DiscInfo.FreeLBs;
Message +="nNext Writable Address = " +DiscInfo.NextWritableAddress;
Message +="nTrackNumber = " +DiscInfo.TrackNumber;
Message +="nLast Session Status = " +DiscInfo.LastSessionStatus;
Message +="nDisc Status = " +DiscInfo.DiscStatus;
stbStatus.Text = "Ready!";
MessageBox.Show(Message);
stbStatus.Text = "Ready!";DiscInfo.h
|
Copyright 2004-2006 by RocketDivision.com
|
|
What do you think about this topic? Send feedback!
|