
Instantiating com object in atl service
Beware that now this COM service is running with your credentials. If have
some calls from external components (from someone else,) and your object
does file processing or any such sensitive operations on the local or remote
machine, then it will be running as you and not as the person who called
that method. If you dont care, then its ok but if you do care about the
privileges available, you might want to look into setting up security
properly on the launch and access levels.
--
<mvp val="vc++">
Girish Bharadwaj
</mvp>
Quote:
> I think I stumbled onto the answer to my own question. I ran dcomcnfg and
> made the server always run in my context, now it appears to run.
> --
> Jim
> > I created an ATL service from the wizard and am attempting to create an
> > instance of a com server we already have, but to no avail. I am using
win
> > 2k. When I run the service as a server I can step through the com
creation
> > and the server is started, just not when started as a service. I have
> tried
> > having the service login as me no luck. Any guesses?
> > --
> > Jim