Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Feb : Raw sector access under Vista

www.cryer.info
Managed Newsgroup Archive

Raw sector access under Vista

Subject:Raw sector access under Vista
Posted by:"Kent Briggs" (kbriggs@spamcop.net)
Date:Fri, 23 Feb 2007 13:14:39

Vista has broken an app of mine that does raw sector read/writes. The
reading part still works when the app is elevated to admin mode but
writing does not. I use this method for disk access:

fh:=fileopen('\.\C:\',fmOpenReadWrite or fmShareDenyNone);

fileseek() and filewrite() are used normally with all offsets and byte
counts set to multiples of the disk's sector size.

What options do I have to get direct sector writes working under Vista?

--
Kent Briggs, kbriggs@spamcop.net
Briggs Softworks, http://www.briggsoft.com

Replies:

www.cryer.info
Managed Newsgroup Archive