mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
Formatting chores (#1441)
* format_sources: exclude 3rd party sources * format common project * format leftovers in runner & settings projects * move source formatting-related files according to #939
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
#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;
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user