Read Setor

  • Thread starter Thread starter Reddy
  • Start date Start date
R

Reddy

hi
every body
is there any way i can read sectors and write to sectors in WIN NT family.
Regards
vijay
 
thanx for help.
But what i mean was in my program i want to read sectors
i dont want use createfile or else. i want to read and write to raw
sectors
i,e readsector(secno,buffer)... some thing like this.
..plz let me know
 
Joep's solution stands. CreateFile allows you to open a handle to a disk and
you'll be able to read/write raw sectors. MSDN should have all the how-to
info, start with exploring CreateFile function.

Jacek
 
Reddy said:
thanx for help.
But what i mean was in my program i want to read sectors
i dont want use createfile or else. i want to read and write to raw
sectors
i,e readsector(secno,buffer)... some thing like this.
.plz let me know

I really wonder if you read the MSDN documentation and left as soon as you
saw CreateFile mentioned. CreateFile *CAN* be used to read a disks sectors,
you basically read a disk as if were a file. Like it or not, this *is* the
way this works in NT based OSs.

Joep
 
here the context is diffrrent
we trying to port a file system on to windows with as minimum code
chages as possible.thats why i want to know that
 
Back
Top