mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-22 14:39:42 +01:00
25 lines
647 B
C
25 lines
647 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
namespace Utils
|
||
|
|
{
|
||
|
|
namespace Apps
|
||
|
|
{
|
||
|
|
struct AppData
|
||
|
|
{
|
||
|
|
std::wstring name;
|
||
|
|
std::wstring installPath;
|
||
|
|
std::wstring packageFullName;
|
||
|
|
std::wstring appUserModelId;
|
||
|
|
bool canLaunchElevated = false;
|
||
|
|
};
|
||
|
|
|
||
|
|
using AppList = std::vector<AppData>;
|
||
|
|
|
||
|
|
const std::wstring& GetCurrentFolder();
|
||
|
|
const std::wstring& GetCurrentFolderUpper();
|
||
|
|
|
||
|
|
AppList GetAppsList();
|
||
|
|
std::optional<AppData> GetApp(const std::wstring& appPath, const AppList& apps);
|
||
|
|
std::optional<AppData> GetApp(HWND window, const AppList& apps);
|
||
|
|
}
|
||
|
|
}
|