I am in the process of developing an application which uses a legacy USB driver. For some reason the developers of the legacy USB driver decided to write information to the registry and this process requires me to have administrative privileges for my application.
Now, the USB functionality that uses the registry should be only done by a user once, or when he wants to recalibrate his device so I don't need administrative privileges all the time.
When you want to debug an application which requires administrative privileges from Visual Studio you get a pop-up with a request to restart the application with the correct credentials. How can I make that myself? I want to start my application normally, but when the user goes to the calibration menu I want to present him with a similar pop-up telling him that for this option he has to restart the application with administrative privileges.