Форум: "Прочее";
Текущий архив: 2011.04.10;
Скачать: [xml.tar.bz2];
ВнизКонсольное приложение и UAC Найти похожие ветки
← →
Eraser © (2010-12-23 22:40) [3]видимо вот http://msdn.microsoft.com/en-us/library/bb756922.aspx
Requirements for Console Applications
A console application presents its output on the console window and not with a separate user interface. If an application needs a full administrator access token to run, then that application needs to be launched from an elevated console window.
You must do the following for console applications:
Mark that your application "asInvoker": You can do this by authoring the manifest of your application in which you set RequestedExecutionLevel == asInvoker. This setup allows callers from non-elevated contexts to create your process, which allows them to proceed to step 2.
Provide an error message if application is run without a full administrator access token: If the application is launched in a non-elevated console, your application should give a brief message and exit. The recommended message is:
"Access Denied. Administrator permissions are needed to use the selected options. Use an administrator command prompt to complete these tasks."
The application should also return the error code ERROR_ELEVATION_REQUIRED upon failure to launch to facilitate scripting.
Страницы: 1 вся ветка
Форум: "Прочее";
Текущий архив: 2011.04.10;
Скачать: [xml.tar.bz2];
Память: 0.44 MB
Время: 0.004 c