| |||||||
| Commercial message | |
| | |
|
![]() |
| | Thread Tools |
| | #1 (permalink) |
| New on Forum Join Date: Sep 2006
Posts: 1
| Reading and mounting ISO image programatically Hello I was wounding if the Nero SDK offers any support in reading (and mounting) ISO images? For example using the ImageDrive components. Any sample snippet our API link would be greatly appriciated. Thanks. |
| | |
| | #2 (permalink) |
| New on Forum Join Date: Sep 2007
Posts: 2
| Re: Reading and mounting ISO image programatically Hi, I'm also wondering how I could read iso images from disk and burn them directly to cd using nero api. Do you have any ideas how to achieve this? Is there a way to use the nero image drive? How could I specify the image filename by code? Thanks for reply. |
| | |
| | #4 (permalink) |
| New on Forum Join Date: Sep 2007
Posts: 2
| Re: Reading and mounting ISO image programatically Hi neohop, thanks for your reply. You're right in case that you are aiming to read and write an iso image from cd-rom. But what do you do if you have already the iso image on hard disk and you want to burn the image on a cd-recordable? In the meantime, I came across the following solution: - use NeroBurnImage function - use NERO_BURN_IMAGE_MEDIA as second argument - use NERO_WRITE_IMAGE structure for third argument pWriteCD (instead of NERO_WRITE_CD) That way, I could successfully burn iso image on to cd-r. neohop, sorry for the confusion. bye. |
| | |
| | #5 (permalink) |
| New on Forum Join Date: Oct 2007
Posts: 9
| Re: Reading and mounting ISO image programatically Try this function: // This function is responsible for burning an ISO image. CExitCode CBurnContext::WriteImage (const PARAMETERS & params) { // Make sure that an image file name has been provided by the user _ASSERTE (NULL != params.GetImageFileName()); NERO_WRITE_IMAGE writeCD; memset (&writeCD, 0, sizeof (writeCD)); // Fill in the image file name writeCD.nwiLongImageFileName = params.GetImageFileName(); // Set DVD as media type if the user requested so if (params.GetUseDVD()) { writeCD.nwiMediaType = MEDIA_DVD_ANY; } else { writeCD.nwiMediaType = (NERO_MEDIA_TYPE) params.GetMediaType (); } // Try to set layer break for this burning. if(((writeCD.nwiMediaType & MEDIA_DVD_P_R9) != 0) && (params.GetOptionLayerBreak() > 0)) { DWORD dwLBA = params.GetOptionLayerBreak(); NeroSetDeviceOption(m_NeroDeviceHandle, NERO_DEVICEOPTION_LAYERSWITCH, &dwLBA); } // Modify spare area settings on BD if(((writeCD.nwiMediaType & MEDIA_BD) != 0) && (params.GetSpareArea() != SAS_UNDEFINED)) { NERO_SPARE_AREA_SETTINGS nSA = params.GetSpareArea(); NeroSetDeviceOption(m_NeroDeviceHandle, NERO_DEVICEOPTION_SPARE_AREA, &nSA); } NEROAPI_BURN_ERROR err; CBurnContextProgress m_NeroProgress; // Burn the image err = NeroBurn (m_NeroDeviceHandle, NERO_BURN_IMAGE_MEDIA, &writeCD, GetBurnFlags (params), params.GetSpeedToNeroBurn (), m_NeroProgress); return TranslateNeroToExitCode (err); } |
| | |
| | #7 (permalink) | |
| New on Forum Join Date: Oct 2007 Location: Karlsruhe, Germany
Posts: 4
| Re: Reading and mounting ISO image programatically You can use the NeroAPI method: Quote:
Have fun :-) | |
| | |
| |
| |
![]() |
| If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Newbie here! Error with mounting an image~ | phoobia1 | Newbie Forum | 4 | 08-06-2007 08:58 |
| Mounting an image | RAMSGUY | Newbie Forum | 5 | 19-05-2006 05:25 |
| Problem making/mounting image | Carlsworth | Alcohol | 2 | 06-03-2006 02:28 |
| what is mounting an image with alcohol | pcgamer | Alcohol | 2 | 14-10-2003 02:33 |
| Mounting an image to a vurtial CD | gtghm | Newbie Forum | 2 | 09-12-2002 00:13 |