Re: How to determine whether any one is logged on (VB6, Win2K and later)



Thanks for the info, but just to let you know, I'm not the OP. :)


Rob

"Lance Wynn" <Lance_Wynn@xxxxxxxxxxxxxxxx> wrote in message
news:OB3y3LtOIHA.5264@xxxxxxxxxxxxxxxxxxxxxxx
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.


.