Compartilhar via


Erasing a Rewritable CD

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IWMPCdromBurn interface provides a method for erasing CD-RW discs. Before erasing a CD, you must first ensure that the operation is supported. For more information, see Retrieving the Drive and Disc Status.

To begin erasing the contents of a rewritable CD, call IWMPCdromBurn::erase.


    HRESULT hr = m_spCdromBurn->erase();
    

Burning a CD

Retrieving the CD Burning Interface

Starting the Burn Process

Retrieving the Drive and Disc Status

Retrieving the Burn Status