asInvoker for COM dlls and exes?
I hav开发者_运维知识库e an unmanaged windows service. I've included a manifest with "requiresAdministrator" as the requested execution level.
What's the proper execution level for COM dlls and COM exes loaded by the service? Should they be set to "asInvoker" or should they have their own level (and will the COM dlls always use the execution level of the service no matter what is in their manifest)?
Thanks
First, services are not under UAC. Your manifest will have no effect on a service and if it's running under an "admin" identity it will have access to whatever resources you need access to.
Second, if your app is not a service, and it has a manifest and is elevated, whatever it launches will be elevated regardless of its own manifest. There are some complex techniques to launch non-elevated from elevated should that be important to you.
精彩评论