reactos/sdk/include/psdk/appmodel.h
2024-11-04 08:42:34 +02:00

78 lines
1.8 KiB
C

/*
* PROJECT: ReactOS SDK
* LICENSE: MIT (https://spdx.org/licenses/MIT)
* PURPOSE: Windows AppModel definitions
* COPYRIGHT: Copyright 2024 Timo Kreuzer (timo.kreuzer@reactos.org)
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
typedef enum AppPolicyProcessTerminationMethod
{
AppPolicyProcessTerminationMethod_ExitProcess = 0,
AppPolicyProcessTerminationMethod_TerminateProcess = 1,
} AppPolicyProcessTerminationMethod;
typedef enum AppPolicyThreadInitializationType
{
AppPolicyThreadInitializationType_None = 0,
AppPolicyThreadInitializationType_InitializeWinRT = 1,
} AppPolicyThreadInitializationType;
typedef enum AppPolicyShowDeveloperDiagnostic
{
AppPolicyShowDeveloperDiagnostic_None = 0,
AppPolicyShowDeveloperDiagnostic_ShowUI = 1,
} AppPolicyShowDeveloperDiagnostic;
typedef enum AppPolicyWindowingModel
{
AppPolicyWindowingModel_None = 0,
AppPolicyWindowingModel_Universal = 1,
AppPolicyWindowingModel_ClassicDesktop = 2,
AppPolicyWindowingModel_ClassicPhone = 3
} AppPolicyWindowingModel;
WINBASEAPI
_Check_return_
_Success_(return == ERROR_SUCCESS)
LONG
WINAPI
AppPolicyGetProcessTerminationMethod(
_In_ HANDLE processToken,
_Out_ AppPolicyProcessTerminationMethod* policy);
WINBASEAPI
_Check_return_
_Success_(return == ERROR_SUCCESS)
LONG
WINAPI
AppPolicyGetThreadInitializationType(
_In_ HANDLE processToken,
_Out_ AppPolicyThreadInitializationType* policy);
WINBASEAPI
_Check_return_
_Success_(return == ERROR_SUCCESS)
LONG
WINAPI
AppPolicyGetShowDeveloperDiagnostic(
_In_ HANDLE processToken,
_Out_ AppPolicyShowDeveloperDiagnostic* policy);
WINBASEAPI
_Check_return_
_Success_(return == ERROR_SUCCESS)
LONG
WINAPI
AppPolicyGetWindowingModel(
_In_ HANDLE processToken,
_Out_ AppPolicyWindowingModel* policy);
#ifdef __cplusplus
} // extern "C"
#endif