charles rolls
2012-02-28 20:54:05 UTC
I have an app1 that calls GetActiveObject() for an application
interface of another running app2. The running app2 application is
registering itself in the ROT (running object table). When I run the
app1 under an admin user account, everything works fine and I get the
app interface. When I run the app1 under a limited user, I get the
TYPE_E_CANTLOADLIBRARY error. I am obviously running the app1 and
app2 under the same user accounts during each test. The registry is
set correctly where the app interface guid points to a type library
guid which points to the correct directory where the type library
lives. The type library is the EXE of app2.
I added some code that does loadlibrary and loadtypelib for the exe
and they both are successful under both user accounts. I am stumped
why the GetActiveObject is having trouble loading the typelib if the
loadtypelib function works, the registry is set to the location of the
exe, and the admin account works.
Any suggestions anyone would have would be greatly appreciated!!!
P.S. - I realize that this is ancient tech, but I still have to
maintain it... poor me :)
interface of another running app2. The running app2 application is
registering itself in the ROT (running object table). When I run the
app1 under an admin user account, everything works fine and I get the
app interface. When I run the app1 under a limited user, I get the
TYPE_E_CANTLOADLIBRARY error. I am obviously running the app1 and
app2 under the same user accounts during each test. The registry is
set correctly where the app interface guid points to a type library
guid which points to the correct directory where the type library
lives. The type library is the EXE of app2.
I added some code that does loadlibrary and loadtypelib for the exe
and they both are successful under both user accounts. I am stumped
why the GetActiveObject is having trouble loading the typelib if the
loadtypelib function works, the registry is set to the location of the
exe, and the admin account works.
Any suggestions anyone would have would be greatly appreciated!!!
P.S. - I realize that this is ancient tech, but I still have to
maintain it... poor me :)