WinAPI和启动位置中的程序被用户禁用 [英] WinAPI and programs in startup locations disabled by user

查看:83
本文介绍了WinAPI和启动位置中的程序被用户禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows中,所有添加到启动位置的程序均显示在任务管理器->启动中.用户可以使用TaskManager禁用任何该程序-但在这种情况下Windows不会从启动文件夹中删除相应的注册表记录或快捷方式.Windows似乎有自己的已禁用"程序列表.

In Windows all programs added to startup locations shown in the Task manager -> Startup. User can disable any of that programs using TaskManager - but in this case Windows do not remove corresponding registry record or shortcut from the startup folder. Seems that Windows has its own list of 'disabled' programs.

我们可以通过WinAPI以编程方式访问/编辑此列表吗?

Can we access/edit this list programmatically via WinAPI?

推荐答案

HKEY_CURRENT_USER \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ StartupApp‌roved \ Run 包含具有禁用程序二进制数据的记录.通过常规WinAPI调用可以访问和编辑这些数据.

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApp‌​roved\Run contains records with binary data for disabled programs. This data accessed and edited via regular WinAPI calls.

这篇关于WinAPI和启动位置中的程序被用户禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆