0

I am using the RegDeleteKeyValue() to delete a registry key value from my C++ code. However, upon execution I get a 0x80070005 (Access denied error). How do I execute the function as an admin?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Bugaboo
  • 973
  • 1
  • 17
  • 36
  • You don't, you execute the entire program as an admin, by including a manifest with requestedExecutionLevel set to requireAdministrator. – Harry Johnston Nov 13 '14 at 01:58
  • possible duplicate of [How to embed a manifest file at compile time in Visual Studio 2010](http://stackoverflow.com/questions/4084585/how-to-embed-a-manifest-file-at-compile-time-in-visual-studio-2010) – Harry Johnston Nov 13 '14 at 01:58

0 Answers0