uac

UAC-style elevated prompt

ぐ巨炮叔叔 提交于 2020-01-12 06:27:07
问题 I'm interested in launching a window in a temporary session, like how UAC prompts appear. There's been some interest in this concept from a few people, so I figured I'd ask here. Essentially what we're going for is an elevated window like the UAC "are you sure you want to <...>" prompts, but with an arbitrary window. The end goal is to prevent window event hooks and all sorts of other issues that might occur during password entry. I've had a quick look at the UAC APIs and a few other places,

UAC-style elevated prompt

大兔子大兔子 提交于 2020-01-12 06:26:17
问题 I'm interested in launching a window in a temporary session, like how UAC prompts appear. There's been some interest in this concept from a few people, so I figured I'd ask here. Essentially what we're going for is an elevated window like the UAC "are you sure you want to <...>" prompts, but with an arbitrary window. The end goal is to prevent window event hooks and all sorts of other issues that might occur during password entry. I've had a quick look at the UAC APIs and a few other places,

Is there an API call to prompt user for UAC elevation?

左心房为你撑大大i 提交于 2020-01-11 03:07:16
问题 My app needs to write to a file in \ProgramData that could be protected. This only happens once after installation. Is there an API function that would take ACL info and prompt the user to authorize the app to access the file? In other words the app would ask Windows to prompt the user for confirmation and authorization. This should happen interactively, and allow the app to resume execution after access to the file has been authorized. The app runs as Standard User, does not require Admin

Windows7 UAC 实验

非 Y 不嫁゛ 提交于 2020-01-10 18:32:07
概述 用户帐户控制(User Account Control,简写作UAC)是微软公司在其Windows Vista及更高版本操作系统中采用的一种控制机制。其原理是通知用户是否对应用程序使用硬盘驱动器和系统文件授权,以达到帮助阻止恶意程序(有时也称为“恶意软件”)损坏系统的效果。 其实说白了就是我们在操作Windows中常常弹出来的那个框,问是否要用管理员身份运行。 与标准用户相比,管理员拥有的额外权限有 1. 配置Windows update 2. 增加或者删除用户账户 3. 改变用户的账户类型 4. 改变UAC的设置 5. 安装或卸载程序 6. 安装设备驱动程序 7. 设置家长控制功能 8. 将文件移动或者复制到Program Files或Windows目录 9. 查看或更改其他用户文件夹 实验步骤 按照图片所示路径打开“更改用户账户的控制设置”,可以看到有四个UAC提示级别。 四个级别从高到低的基本含义如下 第一级:始终通知。当程序试图安装软件、更改计算机设置或者用户更改Windows设置时,通知当前用户 第二级:默认值。至于在程序试图修改计算机配置时通知当前用户,但用户自己更改Windows设置时不通知 第三级:仅当程序尝试更改计算机时通知我 第四级:从不通知。关闭UAC所有的提示通知。 1 管理员账户UAC功能验证 使用超级用户Administrator登录系统

Private key of certificate in certificate-store not readable

微笑、不失礼 提交于 2020-01-10 10:21:22
问题 I think I've got the same issue like this guy, but I wasn't as lucky as him/her since the solution provided doesn't work for me. The solution provided looks for files on the C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys ( not in sub directories) and C:\Users\[Username]\AppData\Roaming\Microsoft\Crypto\RSA (and subdirectories) However since I want the setup to install the application to all users, the custom action is running under the SYSTEM -User, which leads the files beeing actually

Private key of certificate in certificate-store not readable

旧街凉风 提交于 2020-01-10 10:20:13
问题 I think I've got the same issue like this guy, but I wasn't as lucky as him/her since the solution provided doesn't work for me. The solution provided looks for files on the C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys ( not in sub directories) and C:\Users\[Username]\AppData\Roaming\Microsoft\Crypto\RSA (and subdirectories) However since I want the setup to install the application to all users, the custom action is running under the SYSTEM -User, which leads the files beeing actually

Need to elevate permissions without UAC pop ups

99封情书 提交于 2020-01-10 05:04:06
问题 I have an application which is a launcher for another application (my main one). The launcher goes to an FTP server, downloads updates and installs them. However, the update executable needs to copy some DLLs and EXEs to the installation directory of the main application, which is in Program Files. Because of that, I currently need to elevate the rights of the updater. This is a problem because my application starts on boot, and in general will simply load to the system tray (the application

Create Process with FS Virtualization Enabled

情到浓时终转凉″ 提交于 2020-01-07 04:19:10
问题 With UAC disabled, I need to create a process with the same characteristics as the process created with UAC enabled - basically I'm emulating process creation with UAC enabled. My only roadblock is virtualization. The sample code below should create an instance of notedpad at medium IL with virtualization enabled. In actuality, it creates an instance of notepad at medium IL with virtualization disabled. I'm not entirely sure why the virtualization token is being ignored. Any ideas? BOOL bRet;

Windows 7 - UAC - VB6 - Text File Can't Be “Seen” By Application

我的未来我决定 提交于 2020-01-06 02:26:08
问题 We've got a VB6 application that reads a simple text file with a .LIC file extension. When everything is working correctly, if the file exists in the same directory as the executable, it reads it. If not, it does other stuff. I've got a customer with Windows 7 machines, and if he right-clicks the EXE and "Runs as Administrator" it "sees" the LIC file. If he runs the EXE as a basic user, the LIC file cannot be seen. I've had enough issues with UAC to guess that UAC is running the application

Why application that require administrative privileges cannot run automatically on Windows startup(windows 7)?

时间秒杀一切 提交于 2020-01-05 08:39:15
问题 I have a application(which runs on windows7 and requires run as administrative) that need to run automatically when windows starts up, so i added a registry key under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" as usual, but my application won't startup automatically even the UAC dialog doesn't promtp, after search from google. I know i can use task scheduler to workaround this, but is there anyboday can tell me why the "run" registry way doesn't work? why the UAC