Orca skynet wrote:
> Does anyone have a sample application lying around for a service application 
> with a tray icon to do some settings for the service.

You need to set up two programs. One is the service, which has no UI at 
all. The other is the user application, which talks to the service via 
some form of IPC, such as sockets or pipes (but not window messages).

The reason is that services run as different (and usually privileged) 
users, so they don't get to interact with the desktop. Before Windows 
Vista, you can configure a service to be allowed to interact with the 
desktop, but Vista forbids that now. (And even before that, I'm not sure 
which one was considered "the" desktop in a multiuser system.)

Your service should be able to be connected to multiple user programs. 
Someone could log on, then use fast user switching to let someone else 
use the computer for a while. In that case, two copies of the suer 
program may be running. You can also hit this situation with remote desktop.

-- 
Rob
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

Reply via email to