locked
How to elevate COM server which is configured to run as the interactiver user? RRS feed

  • Question

  • Hi,

        We have one legacy COM server (EXE),  which need access  HKEY_LOCAL_MACHINE\SOFTWARE\....  So we check the EXE "Run this program as an administrator" . So it works correctly as administrator if user click it directly.

        But when one client connects to server and launches it, the server launched is under a limited user account instead of Administrator. So server failed to get information from HKEY_LOCAL_MACHINE.  BTW: client also is "Run this program as an administrator".

        I got one helpful information from MSDN "The COM Elevation Moniker" which is to activate COM server with elevated privileges. It also said "In order to use the elevation moniker to activate a COM class, the class must be configured to run as the launching user or the 'Activate as Activator' application identity. ".   But because our product works as both local and remote COM server. So the COM server is configured to run as the interactive user. It is different with Moniker requirement.

        Does anybody know how to elevate COM server which is configured to run as the interactiver user?

     

        Thanks in advance.

    Nancy Yang
    Wednesday, October 17, 2007 9:37 AM

All replies

  •  

    Up,

    Does anybody know the answer?  I am looking forward to your response and appreciate your kind help.

     

    Nancy Yang

    Saturday, October 20, 2007 8:25 AM