c++ - 模拟 MFC C++

标签 c++ windows mfc impersonation

我想在 Windows 中模拟其他用户。例如: 我创建了一个仅对用户 A 和管理员具有权限的目录,当使用用户 B 登录并运行 .exe 时,我想模拟用户 A 以获得在该特定目录中编辑/删除/插入的权限。

我发现了这个:http://msdn.microsoft.com/en-us/library/aa374731(VS.85).aspx

最佳答案

首先,请查看这篇有关 Windows 用户模拟的文章:

http://www.codeproject.com/KB/system/UserImpersonation.aspx

它应该为您提供一个起点。如果您需要更多控制,则需要研究访问 token 。

关于c++ - 模拟 MFC C++,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/211621/

相关文章:

html - IE11 BHO : Replacing ActiveX objects in HTML document

c++ - Qt5从局域网获取mjpeg流

c++ - 从 qml 访问 Qt 2 或 3d bool 列表

c++ - Windows 事件日志中没有类别

c++ - 为 CString 赋值时获取 <Bad Ptr> 和无效值

C++ 循环 std::vector<std::map<std::string, std::string>>

c# - 如何以编程方式检测 Windows 桌面应用程序中是否启用/禁用了 javascript? (网络浏览器控件)

在 Win7 上使用 IE11 的 Javascript 运行时错误 : Unable to set property 'disabled' of undefined or null reference

c - 如何从 ListControl(ListView) 中检索数据?

c++ - 是否可以从非托管 C++ 访问 Winforms?