Is it possible to Switch User Accounts programmatically?

烈酒焚心 提交于 2019-12-11 07:16:15

问题


We are working on a windows 8 native application that will need a feature to switch between an administrator account and an less privileged account and then back again. Assuming we have the credentials (user and password), is this possible programmatically - using a combination of a front-end (WPF) app and a background service?

Here are few links which we are looking into. We have already looked into it, just want to see if anything new for windows 8: C# - Programmatically Log-off and Log-on a user

Also, we are referring to the following system library call: https://msdn.microsoft.com/en-us/library/windows/desktop/aa378184%28v=vs.85%29.aspx

Any ideas/suggestions will be appreciable.

来源:https://stackoverflow.com/questions/29281796/is-it-possible-to-switch-user-accounts-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!