I have 2 application: app1.exe & app2.exe. app1.exe is elevated and will launch app2.exe.
Because app1.exe is elevated, app2.exe will be launched with elevated mode.
Please help me how app1.exe will call app2.exe with non-elevated mode.
Thanks.
Which way I will use:
-
app1.exe will set non-elevated on app2.exe.
-
app2.exe will drop elevated to non-elevated itseft.
Thanks.
You probably want to look into AdjustTokenPrivileges.