zoukankan      html  css  js  c++  java
  • UAC

    UAC and Security Shield Icon

    UAC in Wiki

    User Account Control (UAC) is a technology and security infrastructure introduced with Microsoft’s Windows Vista and Windows Server 2008 operating systems.
    It aims to improve the security of Microsoft Windows by limiting application software to standard user privileges until an administrator authorizes an increase or elevation.
    In this way, only applications trusted by the user may receive administrative privileges, and malware should be kept from compromising the operating system.

    In other words, a user account may have administrator privileges assigned to it,
    but applications that the user runs do not inherit those privileges unless they are approved beforehand or the user explicitly authorizes it.

    Tasks that require administrator privileges will trigger a UAC prompt (if UAC is enabled);
    they are typically marked by a security shield icon

    A program can request elevation in a number of different ways.
    One way for program developers is to add a requestedPrivileges section to an XML document,
    known as the manifest, that is then embedded into the application.

    Configure in Visual C++ project

    这里写图片描写叙述
    The following message cloud be extra from exe using 7-zip:

    xxx.exe.rsrcMANIFEST
    
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
    <requestedPrivileges>
    <requestedExecutionLevel level="requireAdministrator" uiAccess="false">
    </requestedExecutionLevel>
    </requestedPrivileges>
    </security>
    </trustInfo>
    <application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings>
    <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings" xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</ms_windowsSettings:dpiAware>
    </windowsSettings>
    </application>
    </assembly>
    

    Add manifest file in WPF project

    这里写图片描写叙述

    Security Shield Icon

    When the ‘requestedExecutionLevel’ option select “highestAvailable” or “requireAdministrator” the Security Shield Icon will appear.

  • 相关阅读:
    hadoop集群安装
    struts2官方 中文教程 系列十四:主题Theme
    struts2官方 中文教程 系列十三:利用通配符选择方法
    struts2官方 中文教程 系列十二:控制标签
    struts2官方 中文教程 系列十一:使用XML进行表单验证
    struts2官方 中文教程 系列十:Form标签
    struts2官方 中文教程 系列九:Debugging Struts
    struts2官方 中文教程 系列八:异常处理
    struts2官方 中文教程 系列七:消息资源文件
    struts2官方 中文教程 系列六:表单验证
  • 原文地址:https://www.cnblogs.com/zsychanpin/p/7354407.html
Copyright © 2011-2022 走看看