I'm creating a project that accesses protected Windows folders. How do I request administrative access to the user.
I'm creating a project that accesses protected Windows folders. How do I request administrative access to the user.
If the entire application needs to run with elevated privileges, you do not need to make changes to the code. Just add a manifest that tells Windows that your application should be running with elevated privileges.
For this:
requestedExecutionLevel level="requireAdministrator" uiAccess="false" />