Démarrage du processus de Burn
Avant de commencer, vous devez affecter une playlist à brûler. Utilisez IWMPCdromBurn::p ut_burnPlaylist pour spécifier une playlist à brûler.
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;
}
Pour plus d’informations sur l’utilisation de playlists, consultez IWMPPlaylist.
Pour démarrer l’opération de combustion, appelez IWMPCdromBurn::startBurn.
// Start burning.
hr = m_spCdromBurn->startBurn();
Vous pouvez arrêter l’opération de combustion en appelant IWMPCdromBurn::stopBurn.
// Stop burning.
hr = m_spCdromBurn->stopBurn();
Rubriques connexes