Hello almir,
Why do u need to allow service interact with desktop?
And what does "application so that it is visible by user" mean?
As I understand u need to provide the general service without UI, but use
any IPC (interprocess communication) to talk to you separate UI application
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
a> Hi,
a>
a> under Vista it is not possible to interact with users-desktop msdn
a> suggests using CreateProcessAsUser and I found a partial
a> implementation of this method in managed code here
a> http://odetocode.com/Blogs/scott/archive/2004/10/28/602.aspx however
a> i do not know how to obtain token of a user which is currently loged
a> in which means that I have a problem in this line
a> IntPtr hToken = WindowsIdentity.GetCurrent().Token; //here i get a
a> service token and I need user token so that i can start application
a> in
a> its context, what is the right way to do it ?
a> do you know any other implementation which enables me to start
a> application so that it is visible by user?
a>
a> thanks
a> almir
almir - 04 Dec 2007 15:04 GMT
yes,
the problem is however starting application in user context, so that
he can see it
> Hello almir,
>
[quoted text clipped - 28 lines]
> a> thanks
> a> almir