I have been able to code a C++ program that is able to auto elevate itself to run as adminstrator.
It works kind of like the MS example, but has the admin username/password hard coded in the current version.
This works fine and all, but the built-in admin account must be used for the program to be able to get full admin privileges when it self elevates.
Using a regular admin account gives "sort-of" admin privileges.
I have been unable to find any examples,hints, or instructions on how to get this working without having to use the built-in admin account.
It would really help if I could get info on what exactly the UAC elevation user/pass prompt does differently since it seems to give higher privileges than just programatically self-elevating a program.
It works kind of like the MS example, but has the admin username/password hard coded in the current version.
This works fine and all, but the built-in admin account must be used for the program to be able to get full admin privileges when it self elevates.
Using a regular admin account gives "sort-of" admin privileges.
I have been unable to find any examples,hints, or instructions on how to get this working without having to use the built-in admin account.
It would really help if I could get info on what exactly the UAC elevation user/pass prompt does differently since it seems to give higher privileges than just programatically self-elevating a program.