是否可以在不登录的情况下冒充用户? [英] Is it possible to impersonate a user without logging him on?

查看:64
本文介绍了是否可以在不登录的情况下冒充用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在不提供用户名/密码的情况下模拟用户?基本上,我想使用ShGetFolderPath()函数为用户(而不是当前用户)获取CSIDL_LOCAL_APPDATA.我目前所拥有的只是该用户的SID.

Is it possible to impersonate a user without supplying user name/password? Basically, I'd like to get the CSIDL_LOCAL_APPDATA for a user (not the current one) using the ShGetFolderPath() function. All I currently have is a SID for that user.

推荐答案

否,您必须调用Win32 API LogonUser 函数来获取Windows帐户令牌,以便随后进行模拟.

No, you have to call Win32 API LogonUser function to get windows account token back so you can then impersonate.

这篇关于是否可以在不登录的情况下冒充用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆