When I try to create a DCOM server with CoCreateInstance, it fails with error code ‘-2147024156’. The error message corresponding to the error code is ‘the process requires elevation’. What should I do to correct this issue?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Right, and that’s the problem. There is no mechanism to display a UAC dialog on a remote machine. That would utterly defeat the point of UAC. You’ll have to make it work without the dialog. Replace “requireAdministor” in the manifest with “asInvoker” and adjust the code to not require the privilege. Good luck with it.