Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
Retrieving the Drive and Disc Status
Before starting a CD burning operation, you must ensure that the selected CD-ROM drive supports the operation you want to perform. For instance, you must check that a CD is capable of being erased before calling IWMPCdromBurn::erase. The following code shows an example of using IWMPCdromBurn::isAvailable to determine whether an operation is supported:
VARIANT_BOOL vbResult;
// Check whether this drive can burn CDs.
CComBSTR bstrItem;
HRESULT hr = bstrItem.Append("Burn");
if (SUCCEEDED(hr))
{
hr = m_spCdromBurn->isAvailable(bstrItem, &vbResult);
}
if (SUCCEEDED(hr))
{
if (VARIANT_TRUE == vbResult)
{
// The current drive can burn CDs.
}
}
See Also
- Burning a CD
- Retrieving the CD Burning Interface
- Starting the Burn Process
- Erasing a Rewritable CD
- Retrieving the Burn Status
| Previous | Next |