mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
MSIX: implement initial msix installer
This commit is contained in:
11
src/common/winstore.cpp
Normal file
11
src/common/winstore.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user