Hi,
i have written a boot loader and a seperate installer to write it to the first sector of the hard disk. this is dos based and works fine when run in native dos. however, seeing as times have changed and windows xp is the latest and greatest (allegedly) i have decided it's time to re-write the installer for windows. all i need to do is write my 512 byte binary bootloader file directly to the first sector of the disk. simple
the problem is, windows xp doesn't like direct writes to the disk. does anyone know how to get around this? according to the microsoft site direct writes are allowed (as long as you are a system admin), you simply create a handle using createfile () and then read/write with readfile () and writefile () but i have had no success just yet. i take it this is a security problem as the same code works fine on floppy disks.
if i could find a decent windows reference, i'm sure i could figure it out in a few minutes, but microsoft seem to like hiding information which tells you how their software works.
any help is appreciated
thanks
Dan
i have written a boot loader and a seperate installer to write it to the first sector of the hard disk. this is dos based and works fine when run in native dos. however, seeing as times have changed and windows xp is the latest and greatest (allegedly) i have decided it's time to re-write the installer for windows. all i need to do is write my 512 byte binary bootloader file directly to the first sector of the disk. simple
the problem is, windows xp doesn't like direct writes to the disk. does anyone know how to get around this? according to the microsoft site direct writes are allowed (as long as you are a system admin), you simply create a handle using createfile () and then read/write with readfile () and writefile () but i have had no success just yet. i take it this is a security problem as the same code works fine on floppy disks.
if i could find a decent windows reference, i'm sure i could figure it out in a few minutes, but microsoft seem to like hiding information which tells you how their software works.
any help is appreciated
thanks
Dan