【发布时间】:2011-12-04 08:42:32
【问题描述】:
WindowsIdentity identity = new WindowsIdentity(accessToken);
WindowsImpersonationContext context = identity.Impersonate();
...
context.Undo();
我在哪里声明管理员用户名和密码?
accessToken 参数对我没有太大帮助...
我必须为它导入 DLL'S 吗?
【问题讨论】:
标签: c# console-application impersonation