Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/include/appmodel.h
4389 views
1
/*
2
* Copyright (C) 2017 Alistair Leslie-Hughes
3
*
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.
8
*
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.
13
*
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
17
*/
18
#ifndef _APPMODEL_H_
19
#define _APPMODEL_H_
20
21
#if defined(__cplusplus)
22
extern "C" {
23
#endif
24
25
typedef enum AppPolicyMediaFoundationCodecLoading
26
{
27
AppPolicyMediaFoundationCodecLoading_All = 0,
28
AppPolicyMediaFoundationCodecLoading_InboxOnly = 1,
29
} AppPolicyMediaFoundationCodecLoading;
30
31
typedef enum AppPolicyProcessTerminationMethod
32
{
33
AppPolicyProcessTerminationMethod_ExitProcess = 0,
34
AppPolicyProcessTerminationMethod_TerminateProcess = 1,
35
} AppPolicyProcessTerminationMethod;
36
37
typedef enum AppPolicyThreadInitializationType
38
{
39
AppPolicyThreadInitializationType_None = 0,
40
AppPolicyThreadInitializationType_InitializeWinRT = 1,
41
} AppPolicyThreadInitializationType;
42
43
typedef enum AppPolicyShowDeveloperDiagnostic
44
{
45
AppPolicyShowDeveloperDiagnostic_None = 0,
46
AppPolicyShowDeveloperDiagnostic_ShowUI = 1,
47
} AppPolicyShowDeveloperDiagnostic;
48
49
typedef enum AppPolicyWindowingModel
50
{
51
AppPolicyWindowingModel_None = 0,
52
AppPolicyWindowingModel_Universal = 1,
53
AppPolicyWindowingModel_ClassicDesktop = 2,
54
AppPolicyWindowingModel_ClassicPhone = 3
55
} AppPolicyWindowingModel;
56
57
typedef struct PACKAGE_VERSION
58
{
59
union
60
{
61
UINT64 Version;
62
struct
63
{
64
USHORT Revision;
65
USHORT Build;
66
USHORT Minor;
67
USHORT Major;
68
}
69
DUMMYSTRUCTNAME;
70
}
71
DUMMYUNIONNAME;
72
}
73
PACKAGE_VERSION;
74
75
typedef struct PACKAGE_ID
76
{
77
UINT32 reserved;
78
UINT32 processorArchitecture;
79
PACKAGE_VERSION version;
80
WCHAR *name;
81
WCHAR *publisher;
82
WCHAR *resourceId;
83
WCHAR *publisherId;
84
}
85
PACKAGE_ID;
86
87
LONG WINAPI AppPolicyGetMediaFoundationCodecLoading(HANDLE token, AppPolicyMediaFoundationCodecLoading *policy);
88
LONG WINAPI AppPolicyGetProcessTerminationMethod(HANDLE token, AppPolicyProcessTerminationMethod *policy);
89
LONG WINAPI AppPolicyGetShowDeveloperDiagnostic(HANDLE token, AppPolicyShowDeveloperDiagnostic *policy);
90
LONG WINAPI AppPolicyGetThreadInitializationType(HANDLE token, AppPolicyThreadInitializationType *policy);
91
LONG WINAPI AppPolicyGetWindowingModel(HANDLE processToken, AppPolicyWindowingModel *policy);
92
LONG WINAPI PackageIdFromFullName(const WCHAR *full_name, UINT32 flags, UINT32 *buffer_length, BYTE *buffer);
93
94
#if defined(__cplusplus)
95
}
96
#endif
97
98
#endif /* _APPMODEL_H_ */
99
100