mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
changed window filter
https://github.com/JaneaSystems/PowerToys-DevProjects/issues/2
This commit is contained in:
@@ -89,7 +89,7 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cmdLine, int cm
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto data = Utils::Apps::GetApp(processPath, apps);
|
auto data = Utils::Apps::GetApp(processPath, apps);
|
||||||
if (!data.has_value())
|
if (!data.has_value() || data->name.empty())
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,14 +15,15 @@ namespace WindowUtils
|
|||||||
// Non-Localizable strings
|
// Non-Localizable strings
|
||||||
namespace NonLocalizable
|
namespace NonLocalizable
|
||||||
{
|
{
|
||||||
const wchar_t SystemAppsFolder[] = L"SYSTEMAPPS";
|
|
||||||
const wchar_t System[] = L"WINDOWS/SYSTEM";
|
|
||||||
const wchar_t System32[] = L"SYSTEM32";
|
|
||||||
const wchar_t SystemWOW64[] = L"SYSTEMWOW64";
|
|
||||||
const char SplashClassName[] = "MsoSplash";
|
const char SplashClassName[] = "MsoSplash";
|
||||||
|
|
||||||
|
const wchar_t SystemAppsFolder[] = L"SYSTEMAPPS";
|
||||||
|
|
||||||
const wchar_t CoreWindow[] = L"WINDOWS.UI.CORE.COREWINDOW";
|
const wchar_t CoreWindow[] = L"WINDOWS.UI.CORE.COREWINDOW";
|
||||||
const wchar_t SearchUI[] = L"SEARCHUI.EXE";
|
const wchar_t SearchUI[] = L"SEARCHUI.EXE";
|
||||||
const wchar_t HelpWindow[] = L"C:\\WINDOWS\\HH.EXE";
|
const wchar_t HelpWindow[] = L"WINDOWS\\HH.EXE";
|
||||||
|
const wchar_t ApplicationFrameHost[] = L"WINDOWS\\SYSTEM32\\APPLICATIONFRAMEHOST.EXE";
|
||||||
|
|
||||||
const wchar_t ProjectsSnapshotTool[] = L"POWERTOYS.PROJECTSSNAPSHOTTOOL";
|
const wchar_t ProjectsSnapshotTool[] = L"POWERTOYS.PROJECTSSNAPSHOTTOOL";
|
||||||
const wchar_t ProjectsEditor[] = L"POWERTOYS.PROJECTSEDITOR";
|
const wchar_t ProjectsEditor[] = L"POWERTOYS.PROJECTSEDITOR";
|
||||||
const wchar_t ProjectsLauncher[] = L"POWERTOYS.PROJECTSLAUNCHER";
|
const wchar_t ProjectsLauncher[] = L"POWERTOYS.PROJECTSLAUNCHER";
|
||||||
@@ -56,9 +57,6 @@ namespace WindowUtils
|
|||||||
|
|
||||||
static std::vector<std::wstring> defaultExcludedFolders = {
|
static std::vector<std::wstring> defaultExcludedFolders = {
|
||||||
NonLocalizable::SystemAppsFolder,
|
NonLocalizable::SystemAppsFolder,
|
||||||
NonLocalizable::System,
|
|
||||||
NonLocalizable::System32,
|
|
||||||
NonLocalizable::SystemWOW64
|
|
||||||
};
|
};
|
||||||
if (find_folder_in_path(processPathUpper, defaultExcludedFolders))
|
if (find_folder_in_path(processPathUpper, defaultExcludedFolders))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user