Inject into HDD Image with MBR

Forum for questions regarding programming using WinImage SDK

Moderators: gvollant, jaclaz, BestiaPL

Inject into HDD Image with MBR

Postby cdcmicro » Mon Mar 08, 2010 8:17 pm

Hello,

I'm using the WinImage SDK with WinBatch. It generally seems to work OK.

In the current project, the ultimate goal is to have a HDD image I can use as the boot image for a bootable CD-ROM. I can make it work manually using the WinImage GUI, and now I need to make it work for an automated process.

I have two FAT HDD images (12MB), both created from the same physical HDD using WinImage. The HDD is bootable, and FreeDOS is installed. The first, "plain" image is just that. The second, "mbr" image was created using WinImage's "Export to an image with a MBR".

I can use the SDK functions to successfully open (OpenFatLargeFile()) and inject files into the "plain" image.

But I think I need some help with the "mbr" image. The OpenFatLargeFile() function never seems to succeed with this image. I think it's expecting some non-zero values for dwPosInFile and dwPosInFileHigh, but I don't know what they should be, or how to know what they should be.

Any help is much appreciated.

-Clark
cdcmicro
 
Posts: 2
Joined: Mon Mar 08, 2010 7:57 pm

Re: Inject into HDD Image with MBR

Postby cdcmicro » Mon Mar 22, 2010 9:44 pm

Perhaps I should just ask this way...

Is it possible to open an image with MBR using OpenFatLargeFile()?

If yes, how?

I want to inject files.

Thanks!

-Clark
cdcmicro
 
Posts: 2
Joined: Mon Mar 08, 2010 7:57 pm


Return to WinImage SDK

Who is online

Users browsing this forum: No registered users and 1 guest

cron