c# - Launch program under interactive logon user from .NET WinService -
at moment have .net winservice started under localservice user @ windows start. service launch winforms application using process.start().
but there several problems in solution:
- we don't wait interactive user logon , application falls because tries , fails initialize directx device.
- application launched under localservice interacts user desktop in windows xp. doesn't work in windows 7 because of there different graphic stations each user in win7.
- sometimes need run application current interactive logon user rights.
does know how wait user interactive logon in service , start winforms application these user rights?
i think helps solve problems.
you need separate client app. check out document, page 6: http://msdn.microsoft.com/en-us/windows/hardware/gg463353.aspx.
for monitoring/restart scenario @ createprocessasuser mentioned in document. need have client app coordinate service this, , it's still pushing square peg round hole.
Comments
Post a Comment