Windows中以提升模式以编程方式将正在运行的进程更改为特定用

Windows中以提升模式以编程方式将正在运行的进程更改为特定用

本文介绍了在运行时在Windows中以提升模式以编程方式将正在运行的进程更改为特定用户模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I need to know how to change a running process which is running under administrator and to run the same process under specific user at runtime without restarting. Initially my proccess should be run under administrator user, then i need to get the user name, pwd and domain name from the user. By using those credentials I need to run the same process under that specified user without restarting the process. I had referred so many websites. And i had used the code given in below link. But, i don't get my needs.

http://code.msdn.microsoft.com/windowsdesktop/CppImpersonateUser-a0fbfd54

Help me to get the answer for this. Thanks in Advance!

推荐答案


这篇关于在运行时在Windows中以提升模式以编程方式将正在运行的进程更改为特定用户模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 06:37