mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
* Workspaces fix: capture steam games. * minor fix * Launch steam apps by url appmodeluserid instead of directly exe call. * fix copilot comment * fix * remove unnecessary string * expect words * white list words * Order of alphabet * exclude thin frame if it's not a steam game. * fix build * fix regression * adjust comment
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <WorkspacesLib/WorkspacesData.h>
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Apps
|
|
{
|
|
struct AppData
|
|
{
|
|
std::wstring name;
|
|
std::wstring installPath;
|
|
std::wstring packageFullName;
|
|
std::wstring appUserModelId;
|
|
std::wstring pwaAppId;
|
|
std::wstring protocolPath;
|
|
bool canLaunchElevated = false;
|
|
|
|
bool IsEdge() const;
|
|
bool IsChrome() const;
|
|
bool IsSteamGame() const;
|
|
};
|
|
|
|
using AppList = std::vector<AppData>;
|
|
|
|
const std::wstring& GetCurrentFolder();
|
|
const std::wstring& GetCurrentFolderUpper();
|
|
|
|
AppList GetAppsList();
|
|
std::optional<AppData> GetApp(const std::wstring& appPath, DWORD pid, const AppList& apps);
|
|
std::optional<AppData> GetApp(HWND window, const AppList& apps);
|
|
|
|
bool UpdateAppVersion(WorkspacesData::WorkspacesProject::Application& app, const AppList& installedApps);
|
|
bool UpdateWorkspacesApps(WorkspacesData::WorkspacesProject& workspace, const AppList& installedApps);
|
|
}
|
|
} |