Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. ATL service connetion points

ATL service connetion points

Scheduled Pinned Locked Moved ATL / WTL / STL
c++comsysadmin
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    ky_rerun
    wrote on last edited by
    #1

    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

    K 1 Reply Last reply
    0
    • K ky_rerun

      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

      K Offline
      K Offline
      ky_rerun
      wrote on last edited by
      #2

      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

      L 1 Reply Last reply
      0
      • K ky_rerun

        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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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.

        K 1 Reply Last reply
        0
        • L Lost User

          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.

          K Offline
          K Offline
          ky_rerun
          wrote on last edited by
          #4

          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

          A 1 Reply Last reply
          0
          • K ky_rerun

            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

            A Offline
            A Offline
            Anonymous
            wrote on last edited by
            #5

            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" :) )

            K 1 Reply Last reply
            0
            • A Anonymous

              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" :) )

              K Offline
              K Offline
              ky_rerun
              wrote on last edited by
              #6

              Answer. if I call coinitilazesecurity on the vb client everything is magicly solved.


              a programmer traped in a thugs body

              J 1 Reply Last reply
              0
              • K ky_rerun

                Answer. if I call coinitilazesecurity on the vb client everything is magicly solved.


                a programmer traped in a thugs body

                J Offline
                J Offline
                Jorgen Sigvardsson
                wrote on last edited by
                #7

                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! :)

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups