Hi. I'm just trying to figure out how to set access/launch rights programatically for my DCOM object. My situation is : I'm have two accounts in my Vista - admin and user accounts. In admin account i'm installing apps and user account is mostly used account i have. If i'll install my app in admin account, DCOM server have no rights for my user account so i can use my app only from admin account. I know how to set rights using dcomcnfg application, but i prefer set this rights programatically (but i don't need to implement any rights elevation if it's not neccessary). Regards, Petr Jurik.
Hi > My situation is : > I'm have two accounts in my Vista - admin and user accounts. A man with a brain! > In admin account i'm installing apps and user account is mostly used > account i have. Excellent! > If i'll install my app in admin account, DCOM server have no rights > for my user account so i can use my app only from admin account. You should be able to install the app "per-machine" instead of per-user, then it will work for all users. > I > know how to set rights using dcomcnfg application, but i prefer set > this rights programatically (but i don't need to implement any rights > elevation if it's not neccessary). One problem you'll run into on Vista, is that many built-in registry keys are NOT available for write access by the Administrators group. Instead they're owned by "Trusted Installer". The good news, is that on Vista, it's possible to manipulate registry permissions with WMI (I think anyway). -- Gerry Hickman (London UK)
"Petr Jurik" wrote in message news:uAL5O69nIHA.4832@TK2MSFTNGP02.phx.gbl... > Hi. > I'm just trying to figure out how to set access/launch rights > programatically for my DCOM object. > My situation is : > I'm have two accounts in my Vista - admin and user accounts. > In admin account i'm installing apps and user account is mostly used > account i have. > If i'll install my app in admin account, DCOM server have no rights > for my user account so i can use my app only from admin account. I > know how to set rights using dcomcnfg application, but i prefer set > this rights programatically (but i don't need to implement any rights > elevation if it's not neccessary). > Regards, > Petr Jurik. http://support.microsoft.com/kb/206484 If you can't get the source for DCOMPERM send me an email at bri a n mu th a t hot mai ldo tcom. I think it has been removed from the Microsoft web site.