Hi All,
on Windows 2k/XP/2k3
Is there a way to find out at kernel level if a drive Letter is a mapped
Network Drive.
Thanks

RE: how to find out at kernel level if a drive Letter is map network d by pavel_a

pavel_a
Thu Mar 17 07:23:06 CST 2005

"needhelp" wrote:
> Hi All,
> on Windows 2k/XP/2k3
> Is there a way to find out at kernel level if a drive Letter is a mapped
> Network Drive.

You can look up the kernel object directory for \dosdevice\X:
(where X is the drive letter).

If it points to something like \Device\HardDisk... it is local disk.
If it points to something like \Device\UNC or \Device\WinDFS - it is a
mapped drive.

--PA


Re: how to find out at kernel level if a drive Letter is map network d by Arkady

Arkady
Thu Mar 17 09:22:43 CST 2005

Native API for that are : Nt(Zw)OpenDirectoryObject() and
Nt(Zw)QueryD­irectoryObject
Arkady

"Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
news:1EC1873C-C929-462A-A6BD-8E3031CE27C7@microsoft.com...
> "needhelp" wrote:
>> Hi All,
>> on Windows 2k/XP/2k3
>> Is there a way to find out at kernel level if a drive Letter is a mapped
>> Network Drive.
>
> You can look up the kernel object directory for \dosdevice\X:
> (where X is the drive letter).
>
> If it points to something like \Device\HardDisk... it is local disk.
> If it points to something like \Device\UNC or \Device\WinDFS - it is a
> mapped drive.
>
> --PA
>