Use the DVD Burner to burn ISO files and DVD images

The DVD burner functionality makes it possible to burn ISO and DVD images or regular data folders on recordable and writable media.

To begin burning, follow the steps:

  1. Create an instance of the LTDVDBurner object.

    C API
    ILTDVDBurner * pBurner;   
    CoCreateInstance   
     (CLSID_LTDVDBurner, NULL, LSCTX_INPROC_SERVER, IID_ILTDVDBurner, (void**) & pBurner);  
    C++
    ILTDVDBurner * pBurner;    
    CoCreateInstance   
     (CLSID_LTDVDBurner, NULL, LSCTX_INPROC_SERVER, IID_ILTDVDBurner, (void**) & pBurner); 

  2. The burner object can burn an ISO/DVD image or regular data folder (for example, a DVD at C:\DVDImage or an ISO file at "C:\ISOFile\Image.iso").

  3. To burn a DVD image, use an empty writable or rewritable DVD. To burn ISO files, use either an empty writable or rewritable CD or DVD.

  4. Eject the drive tray and insert the empty disc:

    C API
    ILTDVDBurner_EjectDisc (pBurner); 
    C++
    pBurner->EjectDisc (); 

  5. Load the tray:

    C API
    ILTDVDBurner_LoadDisc (pBurner); 
    C++
    pBurner->LoadDisc (); 

  6. Associate the DVD image path, ISO file or regular data folder to the burner object:

    C API
    //For the DVD image   
    ILTDVDBurner_put_InputPath (pBurner ,L" C:\\DVDImage");    
    //For the ISO file   
    ILTDVDBurner_put_InputPath (pBurner ,L"C:\\ISOFile\\Image.iso"); 
    C++
    //For the DVD Image   
    pBurner->put_InputPath (L" C:\\DVDImage");    
    //For the ISO file   
    pBurner->put_InputPath (L"C:\\ISOFile\\Image.iso"); 

  7. Set the Volume name for the disc:

    C API
    ILTDVDBurner_put_VolumeName (pBurner,L"DRIVE-1"); 
    C++
    pBurner->put_VolumeName (L"DRIVE-1"); 

  8. Retrieve the available speeds for the drive and the empty target disk:

    C API
    Long lCount = 0 ; 
    BSTR bstr = NULL; 
    ILTDVDBurner_RefreshSpeedList (pBurner); 
    // Get the number of available speeds 
    ILTDVDBurner_get_SpeedCount (pBurner, & lCount); 
    // For each index value, retrieve the name of the speed 
    // Use this feature to display the names of the available speeds. 
    For(long i = 0; i < lCount ; i++) 
    { 
       ILTDVDBurner_GetSpeedName (pBurner, i, &bstr); 
       // Do something with the name. 
       // Free the name after you finish using it 
       SysFreeString(bstr); 
    } 
    C++
    Long lCount = 0 ; 
    BSTR bstr = NULL; 
    pBurner ->RefreshSpeedList (); 
    // Get the number of available speeds 
    pBurner ->get_SpeedCount (& lCount); 
    // For each index value, retrieve the name of the speed 
    // Use this feature to display the names of the available speeds. 
    For(long i = 0 ; i <lCount ; i++) 
    { 
       pBurner ->GetSpeedName (i, &bstr); 
       // Do something with the name 
       // Free the name after you finish using it 
       SysFreeString(bstr); 
    } 

  9. Select the burning speed:

    C API
    //Select the speed that you want   
    ILTDVDBurner_put_CurrentSpeed (pBurner, lCount - 1); 
    C++
    //Select the speed that you want   
    pBurner ->put_CurrentSpeed (lCount - 1); 

  10. Erase the disc if it is required and if the disc is an erasable type:

    C API
    VARIANT_BOOL erasable;    
    ILTDVDBurner_get_Erasable (pBurner, &erasable);    
    If (erasable == VARIANT_TRUE)    
       ILTDVDBurner_Erase (pBurner); 
    C++
    VARIANT_BOOL erasable;    
    pBurner ->get_Erasable ( &erasable);    
    If (erasable == VARIANT_TRUE)    
       pBurner ->Erase (); 

  11. Test the burning process, if it is required. Testing the burning process is a simulation of the burning process but without a real burning of the disc. It is much safer when you use a high speed with certain types of discs:

    C API
    VARIANT_BOOL testwriteable;    
    ILTDVDBurner_get_TestWriteable (pBurner, & testwriteable);    
    If (testwriteable== VARIANT_TRUE)    
       ILTDVDBurner_TestWrite (pBurner); 
    C++
    VARIANT_BOOL testwriteable;    
    pBurner ->get_TestWriteable ( & testwriteable);    
    If (testwriteable== VARIANT_TRUE)    
       pBurner ->TestWrite (); 

  12. Now, start burning:

    C API
    ILTDVDBurner_Write (pBurner); 
    C++
    pBurner ->Write (); 

Help Version 22.0.2023.1.26
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.