Unify processes list in BugReportTool source (#14269)
This commit is contained in:
parent
3a6dd45741
commit
159629372d
|
@ -39,6 +39,7 @@
|
|||
</ClCompile>
|
||||
<ClCompile Include="EventViewer.cpp" />
|
||||
<ClCompile Include="InstallationFolder.cpp" />
|
||||
<ClCompile Include="ProcessesList.cpp" />
|
||||
<ClCompile Include="ReportMonitorInfo.cpp" />
|
||||
<ClCompile Include="Main.cpp" />
|
||||
<ClCompile Include="RegistryUtils.cpp" />
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
<ClCompile Include="EventViewer.cpp" />
|
||||
<ClCompile Include="XmlDocumentEx.cpp" />
|
||||
<ClCompile Include="InstallationFolder.cpp" />
|
||||
<ClCompile Include="ProcessesList.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Filter Include="ZipTools">
|
||||
|
|
|
@ -10,22 +10,10 @@
|
|||
|
||||
#include "XmlDocumentEx.h"
|
||||
|
||||
extern std::vector<std::wstring> processes;
|
||||
|
||||
namespace
|
||||
{
|
||||
std::vector<std::wstring> processes =
|
||||
{
|
||||
L"PowerToys.exe",
|
||||
L"PowerToys.Settings.exe",
|
||||
L"ColorPickerUI.exe",
|
||||
L"PowerToys.Awake.exe",
|
||||
L"FancyZonesEditor.exe",
|
||||
L"PowerToys.FancyZones.exe",
|
||||
L"PowerToys.KeyboardManagerEngine.exe",
|
||||
L"PowerToys.KeyboardManagerEditor.exe",
|
||||
L"PowerLauncher.exe",
|
||||
L"PowerToys.ShortcutGuide.exe"
|
||||
};
|
||||
|
||||
// Batch size for number of events queried at once
|
||||
constexpr int BATCH_SIZE = 50;
|
||||
|
||||
|
|
20
tools/BugReportTool/BugReportTool/ProcessesList.cpp
Normal file
20
tools/BugReportTool/BugReportTool/ProcessesList.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
std::vector<std::wstring> processes =
|
||||
{
|
||||
L"PowerToys.exe",
|
||||
L"PowerToys.Settings.exe",
|
||||
L"ColorPickerUI.exe",
|
||||
L"PowerToys.Awake.exe",
|
||||
L"FancyZonesEditor.exe",
|
||||
L"PowerToys.FancyZones.exe",
|
||||
L"PowerToys.KeyboardManagerEngine.exe",
|
||||
L"PowerToys.KeyboardManagerEditor.exe",
|
||||
L"PowerLauncher.exe",
|
||||
L"PowerToys.ShortcutGuide.exe",
|
||||
L"PowerRename.exe",
|
||||
L"ImageResizer.exe",
|
||||
L"PowerToys.Update.exe",
|
||||
L"PowerToys.ActionRunner.exe"
|
||||
};
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
extern std::vector<std::wstring> processes;
|
||||
|
||||
namespace
|
||||
{
|
||||
vector<pair<HKEY, wstring>> registryKeys = {
|
||||
|
@ -163,20 +165,8 @@ namespace
|
|||
|
||||
void ReportCompatibilityTab(HKEY key, wofstream& report)
|
||||
{
|
||||
vector<std::wstring> apps
|
||||
{
|
||||
L"PowerToys.exe",
|
||||
L"ColorPickerUI.exe",
|
||||
L"FancyZonesEditor.exe",
|
||||
L"PowerToys.FancyZones.exe",
|
||||
L"PowerToys.KeyboardManagerEngine.exe",
|
||||
L"PowerToys.KeyboardManagerEditor.exe",
|
||||
L"PowerLauncher.exe",
|
||||
L"PowerToys.ShortcutGuide.exe"
|
||||
};
|
||||
|
||||
map<wstring, wstring> flags;
|
||||
for (auto app : apps)
|
||||
for (auto app : processes)
|
||||
{
|
||||
flags[app] = L"";
|
||||
}
|
||||
|
@ -190,7 +180,7 @@ void ReportCompatibilityTab(HKEY key, wofstream& report)
|
|||
auto values = QueryValues(outKey);
|
||||
for (auto value : values)
|
||||
{
|
||||
for (auto app : apps)
|
||||
for (auto app : processes)
|
||||
{
|
||||
if (value.first.find(app) != wstring::npos)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue