MFC,Run as administrator
-
You can specify to "run as administrator" in the shortcut that points to the program.
The difficult we do right away... ...the impossible takes slightly longer.
-
You can specify to "run as administrator" in the shortcut that points to the program.
The difficult we do right away... ...the impossible takes slightly longer.
-
Thanks for your valuable information but i would like to ask admin rights to my application programatically while run by the user.
-
You cannot set administration rights within a program, it must be set externally by the manifest, or by the user at startup. There would be no point in having a security framework if it was possible.
Inorder to prevent the theme from modifying my application i have disabled the manifest file the admin rights is found in the manifest file.what should i do to prevent my application being modified by theme without disabling manifest.Your suggestion would help me a lot.
-
Inorder to prevent the theme from modifying my application i have disabled the manifest file the admin rights is found in the manifest file.what should i do to prevent my application being modified by theme without disabling manifest.Your suggestion would help me a lot.
Bot sure, but I think if you use the
name="Microsoft.Windows.Common-Controls" version="6.0.0.0"
setting then it will use themes. Try removing that from the manifest and see what happens. see https://msdn.microsoft.com/en-us/library/windows/desktop/bb773175%28v=vs.85%29.aspx[^] for further information.