PowerToys/src/common/winstore.cpp
2019-12-24 17:06:10 +03:00

12 lines
242 B
C++

#include "pch.h"
#include "winstore.h"
#include <appmodel.h>
bool running_as_packaged()
{
UINT32 length = 0;
const auto rc = GetPackageFamilyName(GetCurrentProcess(), &length, nullptr);
return rc != APPMODEL_ERROR_NO_PACKAGE;
}