You could be right - it will probably return TRUE then. But you shouldn't
use the "interact with desktop" feature anyway because it is being regarded
as a big security hole (I don't have the details with me at the moment but
there are various articles about this issue).

Urs


> -----Ursprüngliche Nachricht-----
> Von: Petter Nilsen [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 14. Oktober 2002 16:04
> An: [EMAIL PROTECTED]
> Betreff: Re: [ADVANCED-DOTNET] Is code running under a service?
> 
> Not necessarily if that one returns true if the service is allowed to
> interact with the desktop.  Does it?
> 
> --
> - Petter Nilsen, [EMAIL PROTECTED]
> Technical Manager, Internet Development, Visma Software ASA
> 
> 
> > -----Original Message-----
> > From: Urs Eichmann [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 14, 2002 12:05 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [ADVANCED-DOTNET] Is code running under a service?
> >
> >
> > You can use System.Environment.UserInteractive. If this is False, the
> > program is running as a service.
> >
> > Urs
> >
> 
> You can read messages from the Advanced DOTNET archive, unsubscribe from
> Advanced DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to