From: Corinna Vinschen on
Anton Bassov wrote:
>> The difference is that
>> \\Device\\HarddiskX\PartitionY is now a symbolic link to the actual
>> device name.
>
> This is simply wrong.....
>
> Symbolic link just cannot be in the form "\\Device\\HarddiskX\PartitionY" -
> it has to be in the form "\\DosDevices\\xxxx" and not "\\Device\\xxxx".....

This is simply wrong.....

Did you have a look into the native NT name space lately?
Sysinternal's winobj.exe is your friend (as far as it still exists).


Corinna

--
Antworten an o.g. (existierende) Adresse werden ungelesen verworfen.
Private Mails bitte an corinnaPLOPvinschenPINGde.
From: Anton Bassov on
> > Symbolic link just cannot be in the form "\\Device\\HarddiskX\PartitionY" -
> > it has to be in the form "\\DosDevices\\xxxx" and not "\\Device\\xxxx".....
>

> This is simply wrong.....
> Did you have a look into the native NT name space lately?

Everything seems to be clear with you - once you don't seem to see the
difference between native NT names and symbolic links, apparently, you just
have never written drivers. If you have written a *SINGLE* driver, you would
not have questioned the fact that native NT device name that you specify in
IoCreateDevice() call must be in the form "\\Device\\xxxx", and that symbolic
link that you associate with this native name in IoCreateSymbolicLink() call
has to be in the form "\\DosDevices\\xxxx". I would advise you to read
"Named Device Objects" and "Introduction to MS-DOS Device Names" articles, as
well as the one about IoCreateSymbolicLink(),in WDK documentation......

> Sysinternal's winobj.exe is your friend (as far as it still exists).

This is a good tool. Run it, look at contents of 'Global??' folder, and, at
this point, you will see that there are no symbolic links
like"HarddiskX\PartitionY", i.e. something that you mentioned in your
previous post (I skipped this piece of nonsense in my reply to it). In fact,
it just does not make sense to assign these symbolic links to partitions,
because applications are able to access partitions by the symbolic link like
"Volume{GUID}", and, in case of removable media (i.e. when FtDisk.sys is out
of play), by drive letter as well (if the disk is basic, drive letter is a
symbolic link not to the physical partition but to the logical volume that is
mounted on it )

Anton Bassov



"Corinna Vinschen" wrote:

> Anton Bassov wrote:
> >> The difference is that
> >> \\Device\\HarddiskX\PartitionY is now a symbolic link to the actual
> >> device name.
> >
> > This is simply wrong.....
> >
> > Symbolic link just cannot be in the form "\\Device\\HarddiskX\PartitionY" -
> > it has to be in the form "\\DosDevices\\xxxx" and not "\\Device\\xxxx".....
>
> This is simply wrong.....
>
> Did you have a look into the native NT name space lately?
> Sysinternal's winobj.exe is your friend (as far as it still exists).
>
>
> Corinna
>
> --
> Antworten an o.g. (existierende) Adresse werden ungelesen verworfen.
> Private Mails bitte an corinnaPLOPvinschenPINGde.
>
From: Corinna Vinschen on
Anton Bassov wrote:
>> > Symbolic link just cannot be in the form
>> > "\\Device\\HarddiskX\PartitionY" - it has to be in the form
>> > "\\DosDevices\\xxxx" and not "\\Device\\xxxx".....
>
>> This is simply wrong.....
>> Did you have a look into the native NT name space lately?
>
> Everything seems to be clear with you - once you don't seem to see the
> difference between native NT names and symbolic links, apparently, you
> just have never written drivers. If you have written a *SINGLE*
> driver, you would not have questioned the fact that native NT device
> name that you specify in IoCreateDevice() call must be in the form
> "\\Device\\xxxx", and that symbolic link that you associate with this
> native name in IoCreateSymbolicLink() call has to be in the form
> "\\DosDevices\\xxxx". [BLAH]

You're mixing DOS device names with NT device names. There's no
restriction for native NT symlinks to be in a certain directory.

>> Sysinternal's winobj.exe is your friend (as far as it still exists).
>
> This is a good tool. Run it, look at contents of 'Global??' folder,
> and, at this point, you will see that there are no symbolic links
> like"HarddiskX\PartitionY", i.e. something that you mentioned in your
> previous post (I skipped this piece of nonsense in my reply to it).
> In fact, > [drop "fact"]

You apparently didn't read my post closly. I never wrote about symlinks
of the form \Global??\HarddiskX\PartitionY, I wrote about
\Device\HarddiskX\PartitionY.

The funny thing here is that I know that these symlinks exist and (this
is an incredible new concept) even *tested* and *use* them. Guess how
raw disk access is implemented in Cygwin.

Instead of telling me where to look, maybe you should better take a
look yourself.


Corinna

--
Antworten an o.g. (existierende) Adresse werden ungelesen verworfen.
Private Mails bitte an corinnaPLOPvinschenPINGde.
From: Maxim S. Shatskih on
> This is a good tool. Run it, look at contents of 'Global??' folder, and, at
> this point, you will see that there are no symbolic links
> like"HarddiskX\PartitionY"

On w2k, I clearly see the Harddisk%d _subdirs_ under \Device, and then
Partition%d _symlinks_ in these subdirs.

They point to names like \Device\Harddisk0\DR0, which are the real device
objects.

\??\PhysicalDrive%d symlinks point to the same DO as
\Device\Harddisk%d\Partition0 ones.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim(a)storagecraft.com
http://www.storagecraft.com

From: Corinna Vinschen on
Maxim S. Shatskih wrote:
>> This is a good tool. Run it, look at contents of 'Global??' folder, and, at
>> this point, you will see that there are no symbolic links
>> like"HarddiskX\PartitionY"
>
> On w2k, I clearly see the Harddisk%d _subdirs_ under \Device, and then
> Partition%d _symlinks_ in these subdirs.
>
> They point to names like \Device\Harddisk0\DR0, which are the real device
> objects.
>
> \??\PhysicalDrive%d symlinks point to the same DO as
> \Device\Harddisk%d\Partition0 ones.

Another interesting example is \SystemRoot which is a symbolic link to
(on my box) \Device\Harddisk0\Partition0\WINDOWS, this way referring
another symlink (\Device\Harddisk0\Partition0 -> \Device\Harddisk0\DR0).


Corinna

--
Antworten an o.g. (existierende) Adresse werden ungelesen verworfen.
Private Mails bitte an corinnaPLOPvinschenPINGde.