Replies: 1 comment 2 replies
-
My idea is this. We change Then, in user mode |
Beta Was this translation helpful? Give feedback.
-
My idea is this. We change Then, in user mode |
Beta Was this translation helpful? Give feedback.
-
When multiple users are logged on simultaneously such as at remote desktop servers, UNC names from their different user sessions are not kept isolated by dokannp2.dll. For example, if user1 logs on and mounts drive D: with UNC name \Name\user1\files and user2 logs on and mounts their D: with UNC name \Name\user2\files, then
NPGetConnection
returns one of these UNC paths when querying D: in both sessions. For example, it could return \Name\user1\files for both users.This is not an issue when enumerating network connections such as
net use
command, sinceNPOpenEnum
takes session ids into account during the enumeration. But it is an issue withNPGetConnection
and therefore also other APIs that depend on it, such asNPGetUniversalName
. This means that Explorer windows display wrong connection path under the icon for all users except one of them.I am about to make a PR that fixes this.
There is also an issue when two users use the exact same UNC path, such as user1 mounting D: with UNC path \Name\files and user2 mounting their D: with UNC path \Name\files. When using that UNC path, it will end up on either user's mounted drive. This is only an issue when the UNC path is used instead of drive letter. It is much more difficult to find out what could be done about this. Anyone have any ideas about that?
Beta Was this translation helpful? Give feedback.
All reactions