I'm not sure why it errors out. I'm running Windows 10 Pro x64. I'm running both visual studio in Admin and also set admin privileges in the manifest.
Does it have anything to do with .net version? I'd really prefer to use the Activate method instead of having a cmd box pop up with my app...
Wow. You're exceptional. Thank you.
Edit: Was having trouble but forgot to run with Admin privileges. Thanks so much.
Edit2: Now I get this error after clicking button: https://i.imgur.com/oRxNBNd.png
System.Management.ManagementException
HResult=0x80131501
Message=This method is not...
I've searched and searched and searched but I can't find anything on this topic. Simply put, I change my power plan from balanced to high performance based on if I'm gaming or not just to give my PC a break when I'm not gaming. I'm trying to make an app that mainly grabs the current power plan...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.