PowerToys/src/common/winstore.cpp

12 lines
242 B
C++
Raw Normal View History

2019-12-18 18:19:15 +08:00
#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;
}