Hi everyone, there are usually programs that force users to run ADMINISTRATOR permission to access and update windows system information, for example, the program must run ADMINISTRATOR permission to authenticate access rights, and get your windows information to authenticate the key to create a license for the program, for example.
Here is a piece of code to help your program launch automatically with ADMINISTRATOR privileges. But with this trick, anti-virus programs on windows will notify you of viruses. So few programs add this code to launch with ADMINISTRATOR rights. But most force users to stop themselves from running with ADMINISTRATOR rights, otherwise it will not work.
Full Code : https://pastebin.com/GBmtsik9
Good Luck For You.
If people do not understand, you can comment or inbox HungVB directly for support.