Frank Hsu
s...@seed.net.tw
--
Tim Robinson (MVP, Windows SDK)
http://mobius.sourceforge.net/
"Frank Hsu" <s...@seed.net.tw> wrote in message
news:c0srdf$ce$1...@news.seed.net.tw...
Frank
"Tim Robinson" <tim.at.gaat.f...@invalid.com> 撰寫於郵件新聞
:c0tpgn$1c5lft$1...@ID-103400.news.uni-berlin.de...
It is possible to open the hard disk as if it were a file. That is, you can
read from and write to raw sectors using ReadFile and WriteFile. Instead of
specifying a file name in CreateFile, pass "\\\\.\\PHYSICALDRIVE0" (for the
first physical hard disk) or "\\\\.\\C:" (for the partition known as 'drive
C').
See the MSDN page on CreateFile for more info. You do not need to send ATA
command to read and write sectors, nor should you.
--
Tim Robinson (MVP, Windows SDK)
http://mobius.sourceforge.net/
"Frank Hsu" <s...@seed.net.tw> wrote in message
news:c0uh0s$gd5$1...@news.seed.net.tw...
"Tim Robinson" <tim.at.gaat.f...@invalid.com> 撰寫於郵件新聞
:c10ocf$1c572m$1...@ID-103400.news.uni-berlin.de...