UAC
2015-07-16 23:39
477 查看
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:
[code]xxx.exe\.rsrc\MANIFEST\ <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.相关文章推荐
- openSession()与getCurrentSession()区别
- Unique Binary Search Trees
- 040.Two Array 二维数组
- C语言 数组和字符串篇
- 纪念开通博客的第一天
- UML学习-----类图
- 集成支付宝接口 swift
- Not found org.springframework.http.converter.json.MappingJacksonHttpMessageConverter
- android--系统体系结构
- 038.Global Array 全局数组
- 039.Local Array 局部数组
- 在Window环境下,使用CodeBlocks+GNUStep 配置Objective-C开发环境
- WordPress 在线参考文档
- 037.Goto 代替 Continue 结束本次循环
- java 有关窗体
- 求二叉树的高度,叶子节点个数,第K层结点个数,求祖先结点问题
- 036.Goto 代替 Break 结束循环
- TCP通信(java实现)
- 局部静态变量是如何做到只初始化一次的?
- Java中E、T、K、V、N的含义