获取Windows启动程序信息
get windows startup program info
我喜欢以编程方式获得Windows启动程序信息,例如启动msconfig.exe时显示的信息。如果我能找到msconfig.exe的源代码,那就太好了。但我还没找到。我知道我可以看看注册表,HKLMSoftwareMicrosoftWindowsCurrentVersionRun和HKCUSoftwareMicrosoftWindowsCurrentVersionRun。但问题是msconfig.exe显示禁用的启动程序及其禁用时间,但注册表没有显示禁用的启动程序。什么好主意吗?
对于禁用的启动项,请查找注册表项:
//MSConfig禁用启动的注册表路径
"SOFTWAREMicrosoftShared ToolsMSConfigstartupfolder"
"SOFTWAREMicrosoftShared ToolsMSConfigstartupreg"
与启动项相关的其他键(摘自我很久以前编写的代码:)
// 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";
相关文章:
- 多线程程序中的分段故障和gdb回溯上的不完整信息
- 如何创建一个C++程序来读取字符串数组中的信息,然后将其排序到类中?
- 来自嵌入式应用程序Arduino或Intel Edison的安慰信息?
- 我正在尝试构建一个简单的程序来从 mysql 数据库中读取信息
- 该代码注入第三方Qt应用程序并执行一些方法来获取Qt应用程序信息
- 程序永远不会进入我可以输入信息的部分
- 如何在C 程序的StackTrace中查看有用的信息(文件名,编号)
- 从基本C/CPP Linux应用程序中展示状态信息
- 如何编写一个程序,我可以像 Ubuntu 中的命令一样添加信息(例如:程序 -u "Hello World" )
- 收集有关在程序中实例化哪些模板变体的信息
- 如何将NTP信息提交程序级别
- 程序未正确从文本文件中提取信息
- 如何将信息从启动器传递到我的程序
- OS X"堆"命令行实用程序如何收集其信息?
- 创建一个启动器并将信息发送到第二个程序
- 在 2 个程序 (Windows) 之间传输信息
- CORBA客户端/服务器应用程序,从服务器获取信息(空值)
- 为什么 WinDbg 在测试内存泄漏程序时总是返回相同的"!heap -s"信息?
- 程序在开始输入第三个信息后停止
- 将用户信息保存到加密文件中的程序