Re: writing to sector 0 floppy

Tech-Archive recommends: Fix windows errors by optimizing your registry



should have given more information ... in my code i am trying to use SetFilePointer to an offset from beginning of file to "protect" the BPB but SFP really does not work as easily as it should and keep getting invalid parameter.

paul

"Paul Russell" <msftone@xxxxxxxxxxx> wrote in message news:%23Qf%23aJeTIHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
Are there any good rules to writing a bootsector to a floppy ?

I am basically formatting the floppy before hand and then using a craplet I wrote to flash down a working FAT based boot image (e..g bsect.img from the CE PB tools). Yes i am aware i can use CESYS but I am choosing not to at this time and need to understand how writing should be done.

After creating a file handle to \\\\.\\a: is there another call i should do to set absolute location to sector 0?

.