ATL service connetion points
-
I have an ATL windows service that exports a couple of com objects that implement connection points. If I just use the exe as a com server the connection points work if I use it as a service I get permission denied when I declair a new instance of my object.
a programmer traped in a thugs body
-
I have an ATL windows service that exports a couple of com objects that implement connection points. If I just use the exe as a com server the connection points work if I use it as a service I get permission denied when I declair a new instance of my object.
a programmer traped in a thugs body
-
The failure is in the Advise function. I call query interface on the interface return from GetConnectionInterface() and I ret a permission denied.
a programmer traped in a thugs body -- modified at 17:21 Tuesday 20th September, 2005
-
What happens if you allow the service access to the desktop? Ctrl Panel\Administration\Services find your service, right click Properties Log On check "Allow service to interact with the desktop" -Warren.
-
I was using a user account to log the service on with, not with the service account. If I switch to the system account the connection points work but I don't know how to map to foreign share using the system account.
a programmer traped in a thugs body
Without knowing specific details, here's what I suspect is happening. You are using a service logged in as a certain type of user with certain restricted priveleges, you are then trying to make a connection point talk to something with higher privelege. This opens up possibilities for elevation of privelege attacks, this is probably why you are getting Access Denied. What happens if you use an Admin account for the service? Cheers! Warren Burch (PS: traped is spelt "trapped" :) )
-
Without knowing specific details, here's what I suspect is happening. You are using a service logged in as a certain type of user with certain restricted priveleges, you are then trying to make a connection point talk to something with higher privelege. This opens up possibilities for elevation of privelege attacks, this is probably why you are getting Access Denied. What happens if you use an Admin account for the service? Cheers! Warren Burch (PS: traped is spelt "trapped" :) )
-
Answer. if I call coinitilazesecurity on the vb client everything is magicly solved.
a programmer traped in a thugs body
I wish I was here yesterday. Then I could've saved you a couple of hours. But then again, you gained more by finding it out for yourself. Happy hacking! :)