Retrieve the current user accessing the drive. #371
-
|
Hello! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
In your |
Beta Was this translation helpful? Give feedback.
-
|
Hello! |
Beta Was this translation helpful? Give feedback.
-
|
In your |
Beta Was this translation helpful? Give feedback.
In your
CreateFilemethod, you can callGetRequestorToken()on theDokanFileInfoobject you get there. That will give you a token of the requesting user. Then, use something likenew WindowsIdentity(token.DangerousGetHandle())to get the user identity of that token.