获取 windows 中的所有启动进程
get all startup processes in windows
我想使用 c# 列出在 windows 启动时运行的所有进程。我试过代码
string keyPath = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run";
RegistryKey key =
Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run");
key.GetValueNames()
key.GetValue(Processname).toString()
此代码为我提供了一些可以在任务栏启动时看到的启动项,但不是所有项。
使用 windows 8.1 64 位
在 Windows 中有多种启动程序的方法。至少您还应该检查 HKCU(当前用户)注册表配置单元和两个配置单元中的 RunOnce、RunOnceEx 子项。
我想使用 c# 列出在 windows 启动时运行的所有进程。我试过代码
string keyPath = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run";
RegistryKey key =
Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run");
key.GetValueNames()
key.GetValue(Processname).toString()
此代码为我提供了一些可以在任务栏启动时看到的启动项,但不是所有项。
使用 windows 8.1 64 位
在 Windows 中有多种启动程序的方法。至少您还应该检查 HKCU(当前用户)注册表配置单元和两个配置单元中的 RunOnce、RunOnceEx 子项。