开发者

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

开发者 https://www.devze.com 2022-12-29 22:06 出处:网络
When accessing a webdav using Windows Explorer (Not IE), the call is redirected thru the svchost.exe process (with webclnt.dll).

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 t开发者_JS百科he pid of the svchost.exe process.

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消