阅读背景:

无法从Windows 7的Windows服务启动桌面应用程序。

来源:互联网 

HI,

你好,

I have C# WCF windows service on Windows 7 logged on as user with admin rights. I am trying to start desktop application after service start. All discussions I found are about windows stations and desktops... I created a separate thread, set thread station and desktop and tried to start desktop application. Code works when I start it from VS2010 using asp.net development server but if it was started from service there are no errors but process was not started. I've tried to start process as different user and tried call of CreateProcessWithLogonW (with setting startInfo.lpDesktop to "winsta0\default"; previously). In both cases I have processId returned but cannot see desktop application. Can somebody help me to see where is a mistake?I have C# WCF windows service on Wi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: