运行用户界面与Windows服务用户界面、Windows

2023-09-03 06:26:16 作者:亡命天涯不如早点回家

我计划运行启动/监视使用Windows服务(用C#编写)的UI应用程序,与允许服务与桌面交互检查。这工作正常的Windows XP,但与Windows 7弹出如下图所示。

i am planning to run a launch/monitor a UI application using a windows service(written in C#).with "Allow service to interact with desktop " checked. this works fine with windows xp, but with windows 7 a pop is shown as below

,当我在视图中单击邮件,然后屏幕空白整出来的,只有用户界面显示出来,如下图所示。

and when i click on view the message , then the whole screen blanks out,with only UI showing up ,as shown below.

有没有什么办法让它不被显示的信息和屏幕将空白的工作。

is there any way to make it work without the message being shown and screen going blank.

意见/建议AP preciated。

comments/suggestions appreciated.

问候 DEE

推荐答案

允许服务与桌面交互是现在非常鼓励一个传统的选项,虽然它的存在,预计不会在Windows Vista及以上工作

"Allow service to interact with desktop " is a legacy option that is now highly discouraged, and although it exists, is not expected to work in Windows Vista and upwards.

您需要阅读了一下这是为什么在这个其他SO如是回答: windows服务(允许服务与桌面交互)

You need to read a bit on why this is the case in this other SO answer: windows service (allow service to interact with desktop)

然后寻找在这里回答讨论的备选方案: Alternative到"允许服务与桌面"?

Then look for the alternatives discussed in the answer here: Alternative to "Allow service to interact with desktop"?

另一个讨论外SO: http://social.msdn.microsoft.com/forums/en-US/windowssdk/thread/f8f91e8f-5954-43a7-8bc4-80ed2ff1e3b1/

Another discussion outside SO: http://social.msdn.microsoft.com/forums/en-US/windowssdk/thread/f8f91e8f-5954-43a7-8bc4-80ed2ff1e3b1/

 
精彩推荐
图片推荐