mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
* format_sources: exclude 3rd party sources * format common project * format leftovers in runner & settings projects * move source formatting-related files according to #939
19 lines
627 B
C++
19 lines
627 B
C++
#include "pch.h"
|
|
#include "start_visible.h"
|
|
|
|
bool is_start_visible()
|
|
{
|
|
static winrt::com_ptr<IAppVisibility> app_visibility;
|
|
if (!app_visibility)
|
|
{
|
|
winrt::check_hresult(CoCreateInstance(CLSID_AppVisibility,
|
|
nullptr,
|
|
CLSCTX_INPROC_SERVER,
|
|
__uuidof(app_visibility),
|
|
app_visibility.put_void()));
|
|
}
|
|
BOOL visible;
|
|
auto result = app_visibility->IsLauncherVisible(&visible);
|
|
return SUCCEEDED(result) && visible;
|
|
}
|