docthemes: Save themes def. to a file when added to ColorSets
[LibreOffice.git] / include / systools / win32 / winstoreutil.hxx
blobc3a56c9bbd80efa4a48e8b32f3b1c49b2b1b4913
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 #include <sal/config.h>
14 #include <prewin.h>
15 #include <appmodel.h>
16 #include <postwin.h>
18 namespace sal::systools
20 // Returns true if the current process is run as a Windows store app, which has some specifics
21 inline bool IsStorePackagedApp()
23 UINT32 size = 0;
24 return GetCurrentPackageFullName(&size, nullptr) == ERROR_INSUFFICIENT_BUFFER;
26 } // sal::systools
28 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */