-
May 10th, 2000, 02:57 AM
#1
AppID and security
Hi all!
I've made an application that hosts two COM components. Let's call 'm A and B. The CLSID for A is {CLSID_A} and for B is the CLSID is {CLSID_B}. In the registry I've added the named value "AppID" to "My Computer\HKEY_CLASSES_ROOT\CLSID\{CLSID_A}\" and to "My Computer\HKEY_CLASSES_ROOT\CLSID\{CLSID_B}\" both with the correct value of the AppID (that is {APPID_App}).
With DCOMCNFG I can edit the application rights. And if I look up the AppID with regedit I can see that the settings are placed in the right place: "My Computer\HKEY_CLASSES_ROOT\AppID\{APPID_App}. But when running the app it doesn't initialize its security for both components as it automaticly should. Only if I explictly tell COM what my AppID is the correct settings are used:
hr = CoInitializeSecurity( (void*)&APPID_App, -1, NULL, NULL, NULL, NULL, NULL, EOAC_APPID, NULL );
The application is running on NT4 sp6.
Any suggestions why I have to tell COM explicitly what AppID to use??
Martin van den Berg
Martin van den Berg
Martin.van.den.Berg@hta.nl
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|