kernelbase: Add AppPolicyGetShowDeveloperDiagnostic stub.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2017-10-06 00:08:57 +00:00 committed by Alexandre Julliard
parent 825d5c8641
commit a06af67969
4 changed files with 23 additions and 2 deletions

View File

@ -3,7 +3,7 @@
@ stub AppPolicyGetLifecycleManagement @ stub AppPolicyGetLifecycleManagement
@ stub AppPolicyGetMediaFoundationCodecLoading @ stub AppPolicyGetMediaFoundationCodecLoading
@ stdcall AppPolicyGetProcessTerminationMethod(ptr ptr) kernelbase.AppPolicyGetProcessTerminationMethod @ stdcall AppPolicyGetProcessTerminationMethod(ptr ptr) kernelbase.AppPolicyGetProcessTerminationMethod
@ stub AppPolicyGetShowDeveloperDiagnostic @ stdcall AppPolicyGetShowDeveloperDiagnostic(ptr ptr) kernelbase.AppPolicyGetShowDeveloperDiagnostic
@ stdcall AppPolicyGetThreadInitializationType(ptr ptr) kernelbase.AppPolicyGetThreadInitializationType @ stdcall AppPolicyGetThreadInitializationType(ptr ptr) kernelbase.AppPolicyGetThreadInitializationType
@ stub AppPolicyGetWindowingModel @ stub AppPolicyGetWindowingModel
@ stub GetApplicationUserModelIdFromToken @ stub GetApplicationUserModelIdFromToken

View File

@ -45,7 +45,7 @@
# @ stub AppPolicyGetLifecycleManagement # @ stub AppPolicyGetLifecycleManagement
# @ stub AppPolicyGetMediaFoundationCodecLoading # @ stub AppPolicyGetMediaFoundationCodecLoading
@ stdcall AppPolicyGetProcessTerminationMethod(ptr ptr) @ stdcall AppPolicyGetProcessTerminationMethod(ptr ptr)
# @ stub AppPolicyGetShowDeveloperDiagnostic @ stdcall AppPolicyGetShowDeveloperDiagnostic(ptr ptr)
@ stdcall AppPolicyGetThreadInitializationType(ptr ptr) @ stdcall AppPolicyGetThreadInitializationType(ptr ptr)
# @ stub AppPolicyGetWindowingModel # @ stub AppPolicyGetWindowingModel
# @ stub AppXFreeMemory # @ stub AppXFreeMemory

View File

@ -49,6 +49,20 @@ LONG WINAPI AppPolicyGetThreadInitializationType(HANDLE token, AppPolicyThreadIn
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
/***********************************************************************
* AppPolicyGetShowDeveloperDiagnostic (KERNELBASE.@)
*/
LONG WINAPI AppPolicyGetShowDeveloperDiagnostic(HANDLE token, AppPolicyShowDeveloperDiagnostic *policy)
{
FIXME("%p, %p\n", token, policy);
if(policy)
*policy = AppPolicyShowDeveloperDiagnostic_ShowUI;
return ERROR_SUCCESS;
}
/*********************************************************************** /***********************************************************************
* QuirkIsEnabled3 (KERNELBASE.@) * QuirkIsEnabled3 (KERNELBASE.@)
*/ */

View File

@ -34,7 +34,14 @@ typedef enum AppPolicyThreadInitializationType
AppPolicyThreadInitializationType_InitializeWinRT = 1, AppPolicyThreadInitializationType_InitializeWinRT = 1,
} AppPolicyThreadInitializationType; } AppPolicyThreadInitializationType;
typedef enum AppPolicyShowDeveloperDiagnostic
{
AppPolicyShowDeveloperDiagnostic_None = 0,
AppPolicyShowDeveloperDiagnostic_ShowUI = 1,
} AppPolicyShowDeveloperDiagnostic;
LONG WINAPI AppPolicyGetProcessTerminationMethod(HANDLE token, AppPolicyProcessTerminationMethod *policy); LONG WINAPI AppPolicyGetProcessTerminationMethod(HANDLE token, AppPolicyProcessTerminationMethod *policy);
LONG WINAPI AppPolicyGetShowDeveloperDiagnostic(HANDLE token, AppPolicyShowDeveloperDiagnostic *policy);
LONG WINAPI AppPolicyGetThreadInitializationType(HANDLE token, AppPolicyThreadInitializationType *policy); LONG WINAPI AppPolicyGetThreadInitializationType(HANDLE token, AppPolicyThreadInitializationType *policy);
#if defined(__cplusplus) #if defined(__cplusplus)