Starting the Burn Process

[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.]

Before burning can begin, you must assign a playlist to be burned. Use IWMPCdromBurn::put_burnPlaylist to specify a playlist for burning.

HRESULT CMainDlg::PutPlaylist (void)
{
    // Specify the burn playlist.   
    HRESULT hr = m_spCdromBurn->put_burnPlaylist(m_spPlaylist);

    // Update the status information.
    if (SUCCEEDED(hr))
    {
        hr = m_spCdromBurn->refreshStatus();
    }

    return hr;
}

For information about using playlists, see IWMPPlaylist.

To start the burning operation, call IWMPCdromBurn::startBurn.

// Start burning.
hr = m_spCdromBurn->startBurn();

You can stop the burning operation by calling IWMPCdromBurn::stopBurn.

// Stop burning.
hr = m_spCdromBurn->stopBurn();

Burning a CD

Retrieving the CD Burning Interface

Erasing a Rewritable CD

Retrieving the Drive and Disc Status

Retrieving the Burn Status