How to get the user account associated to the webdav request?

When accessing a webdav using Windows Explorer (Not IE), the call is redirected thru the svchost.exe process (with webclnt.dll).

When i check get the pid of the process that is connected to the local port, i get the pid of the svchost.exe process.

How can i get the user account that the call was associated to?

Answers


You can use an LSP like komodia LSP, and in the WSAStartup function, you can user GetUserNameW() to retrieve the user account associated with the thread.


Need Your Help

How to get the currently connected network from the command line?

python cmd

I am creating a program in Python which connects to the host, FTPs the file I want over, and then connects to my previous network with netsh wlan connect. All of this works.

Best practice to create a new account with facebook login users

ios facebook facebook-login

In my iOS application someone can manually create an account (providing email and password). These information are sent to my webservice that actually creates the account in my database.