使用其他用户帐户执行程序. [英] Execute a program under a different user account.

查看:99
本文介绍了使用其他用户帐户执行程序.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试使用其他登录用户帐户运行应用程序.为此,我使用功能CreateProcessWithLogonW().但是我无法达到要求.任何帮助表示赞赏.在此先感谢您.

Hi All,

I am trying to run an application under a different logon user account. For this I am using the the function CreateProcessWithLogonW(). But I am not able to achieve the requirement. Any help is appreciated. Thanks in advance.

推荐答案

我能做的最好的事情就是提供指向MSDN文档的链接,因为您的问题没有提供足够的信息来提供任何类似的信息.更准确的答案.而不是发布代码,请转到此链接并彻底阅读信息.它只是表明您可能在做错什么.

http://msdn.microsoft.com/en-us/library/ms682431 (v = vs.85).aspx [
The best I can do is provide a link to the MSDN documentation because your question isn''t providing enough information to provide any semblence of a more accurate answer. Instead of posting code, go to this link and READ THE INFORMATION THOROUGHLY. It just indicate might what you''re doing wrong.

http://msdn.microsoft.com/en-us/library/ms682431(v=vs.85).aspx[^]


除了John的MSDN链接外,这是一篇关于该主题的相当全面的文章,位于Code Project上. :

基于GUI的RunAsEx [
In addition to John''s MSDN links, here''s a fairly comprehensive article article on this topic here on Code Project:

GUI-Based RunAsEx[^]


这篇关于使用其他用户帐户执行程序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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