How to UAC elevate a COM component with .NET

后端 未结 3 1919
无人共我
无人共我 2020-12-02 15:23

I\'ve found an article on how to elevate a COM object written in C++ by calling CoCreateInstanceAsAdmin. But what I have not been able to find or do, is a way

3条回答
  •  感情败类
    2020-12-02 15:45

    The elements of elevation are processes. So, if I understand your question correctly, and you want a way to elevate a COM object in your process, than the answer is you can't. The entire point of CoCreateInstanceAsAdmin is to NOT run it in your process.

提交回复
热议问题