Re: desktop app talk with service app



Remy Lebeau (TeamB) wrote:

Simply create a normal TService project, add a COM object to it, and then make sure the 'LocalService' Registry value is configured for the COM object:

LocalService
http://msdn.microsoft.com/en-us/library/ms693774(vs.85).aspx

You can use the service's AfterInstall event to assign that value, and the BeforeUninstall event to remove it.

Very interesting.

I have a few questions though:

- Is the service started at boot time or as needed (when a COM client creates an interface)?
- Under which user account does the service run?
- Is this Vista-compatible (UAC) ?




--
Arthur Hoornweg

(In order to reply per e-mail, please just remove the ".net"
from my e-mail address. Leave the rest of the address intact
including the "antispam" part. I had to take this measure to
counteract unsollicited mail.)
.