zoukankan      html  css  js  c++  java
  • Create and Embed an Application Manifest (UAC)

    http://msdn.microsoft.com/en-us/library/bb756929.aspx

    可以在VS2008中设置当执行exe时弹出提升管理员权限对话框:
    xx Property->Configuration Properties->Linker->Manifest File,把UAC Excecution Level 项设置为 requireAdministrator 即可。

    更多请参考:http://subject.it168.com/article/articleview.aspx?id=734216

    Value

    Description

    Comment

    asInvoker

    The application runs with the same access token as the parent process.

    Recommended for standard user applications. Do refractoring with internal elevation points, as per the guidance provided earlier in this document.

    highestAvailable

    The application runs with the highest privileges the current user can obtain.

    Recommended for mixed-mode applications. Plan to refractor the application in a future release.

    requireAdministrator

    The application runs only for administrators and requires that the application be launched with the full access token of an administrator.

    Recommended for administrator only applications. Internal elevation points are not needed. The application is already running elevated.

  • 相关阅读:
    python基本数据类型(—)
    linux基本命令
    1、认识Mysql
    Flask-SQLAlchemy详解
    sqlalchemy基本增删改查
    pymongo方法详解
    uWSGI+Nginx部署
    uwsgi
    nginx负载均衡配置
    redis-sentinel主从复制高可用(哨兵)
  • 原文地址:https://www.cnblogs.com/FCoding/p/3502103.html
Copyright © 2011-2022 走看看