繁体   English   中英

获取Windows启动程序信息

[英]get windows startup program info

我喜欢以编程方式获取Windows启动程序的信息,例如启动msconfig.exe时显示的信息。 如果可以找到msconfig.exe的源代码,那就太好了。 但是我还没有找到。 我知道我可以查看注册表,HKLM \\ Software \\ Microsoft \\ Windows \\ CurrentVersion \\ Run和HKCU \\ Software \\ Microsoft \\ Windows \\ CurrentVersion \\ Run。 但是问题在于,msconfig.exe显示了禁用的启动程序及其禁用时间,但是注册表没有显示禁用的启动程序。 有任何想法吗?

对于禁用的启动项,请在以下位置查找注册表项:

//禁用MSConfig的启动的注册表路径

"SOFTWARE\Microsoft\Shared Tools\MSConfig\startupfolder"
"SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg"

与启动项目有关的其他键(摘自我很久以前写的代码:)

// registry paths for startups
const UnicodeString     STR_REG_RUN                 = L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run";
const UnicodeString     STR_REG_RUNONCE             = L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce";

// registry paths for MSConfig disabled startups
const UnicodeString     STR_REG_MSCONFIG_STARTUPFOLDER = L"SOFTWARE\\Microsoft\\Shared Tools\\MSConfig\\startupfolder";
const UnicodeString     STR_REG_MSCONFIG_STARTUPREG    = L"SOFTWARE\\Microsoft\\Shared Tools\\MSConfig\\startupreg";

const UnicodeString     STR_REG_IE_BHO              = L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Browser Helper Objects";
const UnicodeString     STR_REG_IE_SEARCH_HOOKS     = L"SOFTWARE\\Microsoft\\Internet Explorer\\URLSearchHooks";
const UnicodeString     STR_REG_IE_TOOLBAR          = L"SOFTWARE\\Microsoft\\Internet Explorer\\Toolbar";
const UnicodeString     STR_REG_IE_EXPLORER_BARS    = L"SOFTWARE\\Microsoft\\Internet Explorer\\Explorer Bars";
const UnicodeString     STR_REG_IE_EXTENSIONS       = L"SOFTWARE\\Microsoft\\Internet Explorer\\Extensions";
const UnicodeString     STR_REG_CLSID               = L"SOFTWARE\\Classes\\CLSID";

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM