Now 9 is 39 hex. Have you tried to name a drive PHYSICALDRIVE@,
PHYSICALDRIVEA, PHYSICALDRIVEB, and so on ? Because @ is 40h, uppercase A is
41h, and so on. Who knows, it might even work !
Alberto.
-----Original Message-----
From: Peter Wieland [mailto:xxxxx@windows.microsoft.com]
Sent: Thursday, August 01, 2002 1:18 PM
To: NT Developers Interest List
Subject: [ntdev] RE: PhysicalDrive ??
x is an arbitrary number which can get to be more than a single digit.
As you noticed there is the potential for holes to exist in the
namespace. If you want to find all disks on a 2k or XP system you
should use the SetupDI functions to find every device which exposes the
disk device interface. This API will give you a very icky symbolic link
name which you can then use to open the device. One nice thing about
this symbolic name is that it remains as constant as possible across
reboots, unlike the \.\PhysicalDriveX namespace.
-p
-----Original Message-----
From: Pierre Duhem [mailto:xxxxx@duhem.com]
Sent: Thursday, August 01, 2002 6:14 AM
To: NT Developers Interest List
Subject: [ntdev] PhysicalDrive ??
Hello,
The SDK says:
“The lpFileName string should be of the form \.\PHYSICALDRIVEx to open
the hard disk x. Hard disk numbers start at zero.”
It’s OK for 0 to 9. I’ve found that there may be holes in the sequence,
for an example when a FireWire disk is disconnected.
Now, I’ve tried to connect more than 10 drives to a computer to see if
one should use PhysicalDrive10 after PhysicalDrive9, but I always crash
the computer at some point.
Does somebody knows?
–
Pierre Duhem
xxxxx@macdisk.com
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to %%email.unsub%%
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.