From: "Frank J. Lhota" <NOSPAM.lhota.adarose@verizon.net>
Subject: Re: Reading raw disks (Windows)
Date: Mon, 29 Apr 2002 15:12:34 GMT
Date: 2002-04-29T15:12:34+00:00 [thread overview]
Message-ID: <Cpdz8.16350$mF4.1705@nwrddc01.gnilink.net> (raw)
In-Reply-To: 3CCCAAB7.1AA28434@otelco.net
It's possible, but you're in an area where MS failed miserably in the area
of portability. Under WinNT/2000/XP, you can get a handle to the raw disk by
calling CreateFile() with a file name of the form
\\.\PHYSICALDRIVEx
where x is the physical disk number (disk numbers start at 0). To get a
handle to the raw data for a disk partition, use
\\.\Z:
where Z is the drive letter for the partition.
Can we get a handle to this data in Win 95/Win 98? Yes, but a different (and
officially undocumented) naming convention is used. I've got to go through a
stack of old issues of Dr. Dobbs Journal to find the Win 95 way of doing
this.
next prev parent reply other threads:[~2002-04-29 15:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-27 15:16 Reading raw disks (Windows) Larry Hazel
2002-04-29 1:11 ` Steve Doiel
2002-04-29 2:06 ` Larry Hazel
2002-04-29 13:18 ` chris.danx
2002-04-29 15:12 ` Frank J. Lhota [this message]
2002-04-29 15:28 ` Darren New
-- strict thread matches above, loose matches on Subject: below --
2002-04-29 12:13 Mike Brenner
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox