Go to the source code of this file.
◆ __acrt_get_begin_thread_init_policy()
Definition at line 85 of file win_policies.cpp.
86{
87 struct begin_thread_init_policy_properties
88 {
91
93
94 static policy_type appmodel_policy_to_policy_type(long const appmodelPolicy) throw()
95 {
97 {
99 }
100 else
101 {
103 }
104 }
105
106 static LONG appmodel_get_policy(appmodel_policy_type* appmodelPolicy)
107 {
109 }
110 };
111
113}
AppPolicyThreadInitializationType
@ AppPolicyThreadInitializationType_None
@ AppPolicyThreadInitializationType_InitializeWinRT
LONG WINAPI __acrt_AppPolicyGetThreadInitializationTypeInternal(_Out_ AppPolicyThreadInitializationType *policy)
@ begin_thread_init_policy_ro_initialize
@ begin_thread_init_policy_unknown
@ begin_thread_init_policy_none
Referenced by thread_start().
◆ __acrt_get_developer_information_policy()
Definition at line 116 of file win_policies.cpp.
117{
118 struct developer_information_policy_properties
119 {
122
124
125 static policy_type appmodel_policy_to_policy_type(long const appmodelPolicy) throw()
126 {
128 {
130 }
131 else
132 {
134 }
135 }
136
137 static LONG appmodel_get_policy(appmodel_policy_type* appmodelPolicy)
138 {
140 }
141 };
142
144}
AppPolicyShowDeveloperDiagnostic
@ AppPolicyShowDeveloperDiagnostic_ShowUI
developer_information_policy
@ developer_information_policy_ui
@ developer_information_policy_unknown
@ developer_information_policy_none
LONG WINAPI __acrt_AppPolicyGetShowDeveloperDiagnosticInternal(_Out_ AppPolicyShowDeveloperDiagnostic *policy)
Referenced by common_show_message_box().
◆ __acrt_get_process_end_policy()
Definition at line 56 of file win_policies.cpp.
57{
58 struct process_end_policy_properties
59 {
62
63 static policy_type appmodel_policy_to_policy_type(appmodel_policy_type const appmodelPolicy) throw()
64 {
66 {
68 }
69 else
70 {
72 }
73 }
74
75 static LONG appmodel_get_policy(appmodel_policy_type* appmodelPolicy)
76 {
78 }
79 };
80
82}
AppPolicyProcessTerminationMethod
@ AppPolicyProcessTerminationMethod_TerminateProcess
@ AppPolicyProcessTerminationMethod_ExitProcess
LONG WINAPI __acrt_AppPolicyGetProcessTerminationMethodInternal(_Out_ AppPolicyProcessTerminationMethod *policy)
@ process_end_policy_terminate_process
@ process_end_policy_exit_process
Referenced by should_call_terminate_process().
◆ __acrt_get_windowing_model_policy()
Definition at line 147 of file win_policies.cpp.
148{
149 struct windowing_model_policy_properties
150 {
153
155
156 static policy_type appmodel_policy_to_policy_type(long const appmodelPolicy) throw()
157 {
158 switch (appmodelPolicy)
159 {
162
165
168
170 default:
172 }
173 }
174
175 static LONG appmodel_get_policy(appmodel_policy_type* appmodelPolicy)
176 {
178 }
179 };
180
182}
@ AppPolicyWindowingModel_ClassicDesktop
@ AppPolicyWindowingModel_Universal
@ AppPolicyWindowingModel_None
@ AppPolicyWindowingModel_ClassicPhone
LONG WINAPI __acrt_AppPolicyGetWindowingModelInternal(_Out_ AppPolicyWindowingModel *policy)
@ windowing_model_policy_legacyphone
@ windowing_model_policy_unknown
@ windowing_model_policy_none
@ windowing_model_policy_corewindow
@ windowing_model_policy_hwnd
Referenced by __acrt_can_show_message_box(), and common_show_message_box().
◆ get_cached_win_policy()
static TPolicy::policy_type __cdecl get_cached_win_policy |
( |
typename TPolicy::appmodel_policy_type |
defaultValue | ) |
|
|
static |
Definition at line 27 of file win_policies.cpp.
28{
29 static long state_cache = 0;
30 if (long const cached_state = __crt_interlocked_read(&state_cache))
31 {
32 return static_cast<typename TPolicy::policy_type
>(cached_state);
33 }
34
35 typename TPolicy::appmodel_policy_type appmodelPolicy = defaultValue;
36
37
38
40 {
41 TPolicy::appmodel_get_policy(&appmodelPolicy);
42 }
43
44 typename TPolicy::policy_type const policyValue = TPolicy::appmodel_policy_to_policy_type(appmodelPolicy);
45
47 if (cached_state)
48 {
49 _ASSERTE(cached_state ==
static_cast<long>(policyValue));
50 }
51
52 return policyValue;
53}
bool __cdecl __acrt_is_secure_process(void)
long __cdecl _InterlockedExchange(_Interlocked_operand_ long volatile *_Target, long _Value)
◆ get_win_policy()
static TPolicy::policy_type __cdecl get_win_policy |
( |
typename TPolicy::appmodel_policy_type |
defaultValue | ) |
|
|
static |
Definition at line 12 of file win_policies.cpp.
13{
14 typename TPolicy::appmodel_policy_type appmodelPolicy = defaultValue;
15
16
17
19 {
20 TPolicy::appmodel_get_policy(&appmodelPolicy);
21 }
22
23 return TPolicy::appmodel_policy_to_policy_type(appmodelPolicy);
24}