Re: How to determine whether any one is logged on (VB6, Win2K and later)
- From: "Lance Wynn" <Lance_Wynn@xxxxxxxxxxxxxxxx>
- Date: Sun, 9 Dec 2007 20:18:27 -0700
Most apps that run as a service, and also have a UI/systray have some sort
of client/server relationship.
Also, I am assuming by your post that the service is set to login as a local
or domain user rather then the system aco***. If a user other then the
user the service authenticates to logs into the console, the systray icon
won't appear. Additionally, there may be problems if a user logs in remotely
via terminal server.
It might be easiest to run it like you have it, and spend your energies
redesigning a "Service ready" version. NTSVC.OCX allows you to run your VB6
app as a service, and gives you a lot of control.
"Robert Morley" <rmorley@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:eW1%23i8sOIHA.5720@xxxxxxxxxxxxxxxxxxxxxxx
If your app is supposed to be a service, it shouldn't add a tray icon nor
have ANY kind of UI. Trying to work around things as you are is most
likely going to be fruitless and/or cause additional problems/issues.
Why not? Some Windows services (like the automatic updater, for instance)
run as a service, have something in the system tray, and have a UI. Or is
that just an illusion? I admit, I've never looked that closely at it.
Rob
.
- Follow-Ups:
- Re: How to determine whether any one is logged on (VB6, Win2K and later)
- From: Robert Morley
- Re: How to determine whether any one is logged on (VB6, Win2K and later)
- References:
- Prev by Date: Re: How to determine whether any one is logged on (VB6, Win2K and later)
- Next by Date: Re: Better way to write this code?
- Previous by thread: Re: How to determine whether any one is logged on (VB6, Win2K and later)
- Next by thread: Re: How to determine whether any one is logged on (VB6, Win2K and later)
- Index(es):