窗口服务调用的其他用户无法访问EXE(通过管理员登录安装) [英] EXE is not accessible to other users invoked by a window service(installed through admin login)

查看:63
本文介绍了窗口服务调用的其他用户无法访问EXE(通过管理员登录安装)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在VS2012中创建了一个MFC应用程序(不是UI)。我想将它作为窗口服务运行但我不能这样做(我没有找到办法做到这一点),最后我创建了另一个执行我的exe.I服务通过管理员登录安装此服务,但当其他用户检查该exe通过他们的登录,exe没有运行/无法访问但服务仍在运行。

请帮我解决这个问题。

解决方案

< blockquote>将您的应用程序重写为Windows服务,而不是一些正常的应用程序。



出于安全考虑,不再允许服务提供任何类型的用户界面。如果您的应用程序必须与用户交互,则必须重新编写以从服务中删除该功能。必须编写第二个正常的应用程序,以便与用户桌面上的服务进行交互。


Hi,
I created an MFC application(not UI) in VS2012. I wanted to run it as window service but I could not do that(I did not find a way to do that), finally I created another service that execute my exe.I installed this service through administrator login but when other users check that exe through their login, exe is not running/not able to access but service is still running.
Please help me to resolve this issue.

解决方案

Rewrite your application as a Windows Service, not some normal application.

For security reasons, services are no longer allowed put up any kind of user interface. If your application has to interact with the user, you have to re-write to remove that functionality form the service. A second, normal, application would have to be written to interact with the service from the users desktop.


这篇关于窗口服务调用的其他用户无法访问EXE(通过管理员登录安装)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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