2 * Copyright (C) 2017 Alistair Leslie-Hughes
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #if defined(__cplusplus)
25 typedef enum AppPolicyProcessTerminationMethod
27 AppPolicyProcessTerminationMethod_ExitProcess
= 0,
28 AppPolicyProcessTerminationMethod_TerminateProcess
= 1,
29 } AppPolicyProcessTerminationMethod
;
31 typedef enum AppPolicyThreadInitializationType
33 AppPolicyThreadInitializationType_None
= 0,
34 AppPolicyThreadInitializationType_InitializeWinRT
= 1,
35 } AppPolicyThreadInitializationType
;
37 typedef enum AppPolicyShowDeveloperDiagnostic
39 AppPolicyShowDeveloperDiagnostic_None
= 0,
40 AppPolicyShowDeveloperDiagnostic_ShowUI
= 1,
41 } AppPolicyShowDeveloperDiagnostic
;
43 typedef enum AppPolicyWindowingModel
45 AppPolicyWindowingModel_None
= 0,
46 AppPolicyWindowingModel_Universal
= 1,
47 AppPolicyWindowingModel_ClassicDesktop
= 2,
48 AppPolicyWindowingModel_ClassicPhone
= 3
49 } AppPolicyWindowingModel
;
51 typedef struct PACKAGE_VERSION
69 typedef struct PACKAGE_ID
72 UINT32 processorArchitecture
;
73 PACKAGE_VERSION version
;
81 LONG WINAPI
AppPolicyGetProcessTerminationMethod(HANDLE token
, AppPolicyProcessTerminationMethod
*policy
);
82 LONG WINAPI
AppPolicyGetShowDeveloperDiagnostic(HANDLE token
, AppPolicyShowDeveloperDiagnostic
*policy
);
83 LONG WINAPI
AppPolicyGetThreadInitializationType(HANDLE token
, AppPolicyThreadInitializationType
*policy
);
84 LONG WINAPI
AppPolicyGetWindowingModel(HANDLE processToken
, AppPolicyWindowingModel
*policy
);
85 LONG WINAPI
PackageIdFromFullName(const WCHAR
*full_name
, UINT32 flags
, UINT32
*buffer_length
, BYTE
*buffer
);
87 #if defined(__cplusplus)
91 #endif /* _APPMODEL_H_ */