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:

  1. we don't wait interactive user logon , application falls because tries , fails initialize directx device.
  2. 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.
  3. 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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -