Hi all,

The service I have written can not enumerate the current user's desktop
windows when running as a service.

I read where one solution to this is to install the service with
"SystemAccount" rights and "Allow service to interact with desktop" but I
know it leaves the system vulnerable to maliciousness.

Is there a way to programmatically enumerate through the current desktop
windows when running as a service?

Also, How I can know the name of the user when he logged?

Thanks in advance

Re: Enumerating windows from an NT service by Willy

Willy
Wed Dec 17 17:40:24 CST 2003

Please don't multipost, I answered your question in csharp NG.

Willy.

"José Achig" <joseachig@hotmail.com> wrote in message
news:O3AcUiKxDHA.1804@TK2MSFTNGP09.phx.gbl...
> Hi all,
>
> The service I have written can not enumerate the current user's desktop
> windows when running as a service.
>
> I read where one solution to this is to install the service with
> "SystemAccount" rights and "Allow service to interact with desktop" but I
> know it leaves the system vulnerable to maliciousness.
>
> Is there a way to programmatically enumerate through the current desktop
> windows when running as a service?
>
> Also, How I can know the name of the user when he logged?
>
> Thanks in advance
>
>
>