Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, Reading and mounting ISO image programatically at International Chat: Software related forum; 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.


Reply
 
Thread Tools
Old 05-09-2006   #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.
Silvershark is offline   Reply With Quote
Old 07-09-2007   #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.
tkunert is offline   Reply With Quote
Old 02-10-2007   #3 (permalink)
New on Forum
 
Join Date: Oct 2007
Location: Seoul in Korea
Posts: 3
Re: Reading and mounting ISO image programatically

Hi tkunert.
You can read the iso image from media with NeroImportDataTrack function.
And you can get root's NERO_ISO_ITEM pointer.
Good luck.bye
neohop is offline   Reply With Quote
Old 02-10-2007   #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.
tkunert is offline   Reply With Quote
Old 05-11-2007   #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);
}
rboubaker is offline   Reply With Quote
Old 25-11-2007   #6 (permalink)
New on Forum
 
Join Date: Nov 2007
Posts: 1
Re: Reading and mounting ISO image programatically

What about just reading the contents of an iso and either extracting them or having the ability to show them inside Explorer? Can someone supply a sample in C# by any chance?
swelborn is offline   Reply With Quote
Old 30-11-2007   #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:
NeroCreateBlockAccessFromImage(const char *szFilename,
ImageAccessMode eAccessMode);
With this function you obtain an INeroFileSystemBlockAccess Interface whith which you can read on the image. Just have a look at the NeroAPI dokumentation in the NeroSDK. In Chapter 12.2 the File System Block Access Interface is explained in detail.


Have fun :-)
ericgee is offline   Reply With Quote
 
Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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


All times are GMT +2. The time now is 19:44.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0