uac

C# 控制台使用 UAC 权限

狂风中的少年 提交于 2020-03-23 08:48:39
原文: C# 控制台使用 UAC 权限 本文告诉大家如何在 C# 控制台项目使用 UAC 权限。这个方法在 WPF 和 控制台都是可以使用。 右击项目,点击添加文件,找到程序清单 在 WPF 使用 UAC 也是一样的方法。 打开这个创建的文件,可以看到下面代码 忽略其他代码 <requestedExecutionLevel level="asInvoker" uiAccess="false" /> 只需要把这个代码修改为 <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> 就可以在程序使用 UAC 权限,文件的名字可以是随意,全部代码请看下面 <?xml version="1.0" encoding="utf-8"?> <assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges xmlns="urn

Linux-SIPp3.6.0 测试FreeSwitch

家住魔仙堡 提交于 2020-02-24 23:15:17
前言 近期因业务需要,要针对FreeSwitch进行性能测试,花了些时间了解,并实施了对应的性能测试; 整理了下学习及实施过程中遇到的一些问题及解决方法,并分享给大家。(学习过程中,发现挺多人遇到问题或暂无头绪) 主要章节: 1、SIPP概述&参考资料 2、SIPP下载安装 3、UAC 4、UAS 5、UAC+UAS 6、注意事项 7、错误记录 一、SIPP概述 SIPp是一个测试SIP协议性能的工具软件。这是一个GPL的开放源码软件。 它包含了一些基本的SipStone用户代理工作流程(UAC和UAS),并可使用INVITE和BYE建立和释放多个呼叫。它也可以读XML的场景文件,即描述任何性能测试的配置文件。它能动态显示测试运行的统计数据(呼叫速率、信号来回的延迟,以及 消息统计)。周期性地把CSV统计数据转储,在多个套接字上的TCP和UDP,利用重新传输管理的多路复用。在场景定义文件中可以使用正规表达式,动态调整呼叫速率。 SIPp可以用来测试许多真实的SIP设备,如SIP代理,B2BUAs,SIP媒体服务器,SIP/x网关,SIP PBX,等等,它也可以模仿上千个SIP代理呼叫你的SIP系统。 SIPp的网址:[link] http://sipp.sourceforge.net/,这里可以下载最新版的SIPp软件,并且有英文资料可供查阅。 SIP协议采用Client

How to bring UAC's consent.exe to the foreground programmatically?

最后都变了- 提交于 2020-02-02 05:43:05
问题 How to (if at all possible) bring the Vista/Win7 UAC consent dialog to the foreground, when it is minimized in the taskbar? For instance, consider the following scenario: My application checks for updates during startup, it downloads the new update file and it executes it by providing the administrator's password in the Process.StartInfo, after that my application closes. At this point, if the user or Windows itself manages to lose focus from the MSI installer window (perhaps by clicking on

How do I control my application's name in the UAC dialog?

偶尔善良 提交于 2020-02-01 02:49:06
问题 I would like to control the name of my application as it appears in the UAC dialog. Right now it shows up as something like "MyCompany.MyApp.exe"; I would prefer something like "MyApp Pro". In other words, I would like a short, friendly phrase instead of the raw EXE file name. I noticed that MMC.EXE appears in the UAC dialog as "Microsoft Management Console", so it seems to be possible. But how? There must be a build setting somewhere that controls this, I just can't seem to find it ... Edit:

Run with administrative permission issue

大兔子大兔子 提交于 2020-01-29 10:11:49
问题 I am using Windows Vista and I find something strange, I programatically invoke IE to open IE to access some local html page, the current user belongs to administrator group; I programatically invoke IE with RunAs parameter, and let IE to access access some local html page, the current user belongs to administrator group; I find (1) and (2) sometimes have different results (page content), especially when there is ActiveX or Silverlight plug-in in the local page. My confusion is, if the

Run with administrative permission issue

纵然是瞬间 提交于 2020-01-29 10:11:11
问题 I am using Windows Vista and I find something strange, I programatically invoke IE to open IE to access some local html page, the current user belongs to administrator group; I programatically invoke IE with RunAs parameter, and let IE to access access some local html page, the current user belongs to administrator group; I find (1) and (2) sometimes have different results (page content), especially when there is ActiveX or Silverlight plug-in in the local page. My confusion is, if the

How can I write System preferences with Java? Can I invoke UAC?

情到浓时终转凉″ 提交于 2020-01-25 06:04:31
问题 How can I write system preferences with Java, using Preferences.systemRoot()? I tried with: Preferences preferences = Preferences.systemRoot(); preferences.put("/myapplication/databasepath", pathToDatabase); But I got this error message: 2010-maj-29 19:02:50 java.util.prefs.WindowsPreferences openKey VARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x80000002. Windows RegOpenKey(...) returned error code 5. Exception in thread "AWT-EventQueue-0" java.lang

How can I write System preferences with Java? Can I invoke UAC?

那年仲夏 提交于 2020-01-25 06:04:11
问题 How can I write system preferences with Java, using Preferences.systemRoot()? I tried with: Preferences preferences = Preferences.systemRoot(); preferences.put("/myapplication/databasepath", pathToDatabase); But I got this error message: 2010-maj-29 19:02:50 java.util.prefs.WindowsPreferences openKey VARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x80000002. Windows RegOpenKey(...) returned error code 5. Exception in thread "AWT-EventQueue-0" java.lang

How can I write System preferences with Java? Can I invoke UAC?

南笙酒味 提交于 2020-01-25 06:04:05
问题 How can I write system preferences with Java, using Preferences.systemRoot()? I tried with: Preferences preferences = Preferences.systemRoot(); preferences.put("/myapplication/databasepath", pathToDatabase); But I got this error message: 2010-maj-29 19:02:50 java.util.prefs.WindowsPreferences openKey VARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x80000002. Windows RegOpenKey(...) returned error code 5. Exception in thread "AWT-EventQueue-0" java.lang

UAC prompt elevation - how does it work?

柔情痞子 提交于 2020-01-23 08:15:27
问题 Windows displays UAC prompts on the "secure desktop" when certain security-related operations need to be performed. There's obviously some API somewhere that creates the secure desktop and creates a window on it, but I have no idea where I would find out about the mechanisms involved. I guess I could reverse engineer the UAC mechanisms, but I'm not that good at that level of reverse engineering (and I'm pretty sure there's some legal ramifications involved...) Anyway, I know there's an API to