问题描述
在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 \ StartupApproved \ Run
包含具有禁用程序二进制数据的记录.通过常规WinAPI调用可以访问和编辑这些数据.
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run
contains records with binary data for disabled programs.This data accessed and edited via regular WinAPI calls.
这篇关于WinAPI和启动位置中的程序被用户禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!