kernelbase: Implement AppPolicyGetMediaFoundationCodecLoading.

Enables native Windows 10 media foundation libraries to run.

Signed-off-by: Mohamad Al-Jaf <mohamadaljaf@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Mohamad Al-Jaf 2021-11-11 05:01:26 -05:00 committed by Alexandre Julliard
parent 170cb0d930
commit b5c1f4a7a4
4 changed files with 23 additions and 2 deletions

View File

@ -1,7 +1,7 @@
@ stub AppPolicyGetClrCompat
@ stub AppPolicyGetCreateFileAccess
@ stub AppPolicyGetLifecycleManagement
@ stub AppPolicyGetMediaFoundationCodecLoading
@ stdcall AppPolicyGetMediaFoundationCodecLoading(ptr ptr) kernelbase.AppPolicyGetMediaFoundationCodecLoading
@ stdcall AppPolicyGetProcessTerminationMethod(ptr ptr) kernelbase.AppPolicyGetProcessTerminationMethod
@ stdcall AppPolicyGetShowDeveloperDiagnostic(ptr ptr) kernelbase.AppPolicyGetShowDeveloperDiagnostic
@ stdcall AppPolicyGetThreadInitializationType(ptr ptr) kernelbase.AppPolicyGetThreadInitializationType

View File

@ -43,7 +43,7 @@
# @ stub AppPolicyGetClrCompat
# @ stub AppPolicyGetCreateFileAccess
# @ stub AppPolicyGetLifecycleManagement
# @ stub AppPolicyGetMediaFoundationCodecLoading
@ stdcall AppPolicyGetMediaFoundationCodecLoading(ptr ptr)
@ stdcall AppPolicyGetProcessTerminationMethod(ptr ptr)
@ stdcall AppPolicyGetShowDeveloperDiagnostic(ptr ptr)
@ stdcall AppPolicyGetThreadInitializationType(ptr ptr)

View File

@ -88,6 +88,20 @@ INT WINAPI MulDiv( INT a, INT b, INT c )
return ret;
}
/***********************************************************************
* AppPolicyGetMediaFoundationCodecLoading (KERNELBASE.@)
*/
LONG WINAPI AppPolicyGetMediaFoundationCodecLoading(HANDLE token, AppPolicyMediaFoundationCodecLoading *policy)
{
FIXME("%p, %p\n", token, policy);
if(policy)
*policy = AppPolicyMediaFoundationCodecLoading_All;
return ERROR_SUCCESS;
}
/***********************************************************************
* AppPolicyGetProcessTerminationMethod (KERNELBASE.@)
*/

View File

@ -22,6 +22,12 @@
extern "C" {
#endif
typedef enum AppPolicyMediaFoundationCodecLoading
{
AppPolicyMediaFoundationCodecLoading_All = 0,
AppPolicyMediaFoundationCodecLoading_InboxOnly = 1,
} AppPolicyMediaFoundationCodecLoading;
typedef enum AppPolicyProcessTerminationMethod
{
AppPolicyProcessTerminationMethod_ExitProcess = 0,
@ -78,6 +84,7 @@ typedef struct PACKAGE_ID
}
PACKAGE_ID;
LONG WINAPI AppPolicyGetMediaFoundationCodecLoading(HANDLE token, AppPolicyMediaFoundationCodecLoading *policy);
LONG WINAPI AppPolicyGetProcessTerminationMethod(HANDLE token, AppPolicyProcessTerminationMethod *policy);
LONG WINAPI AppPolicyGetShowDeveloperDiagnostic(HANDLE token, AppPolicyShowDeveloperDiagnostic *policy);
LONG WINAPI AppPolicyGetThreadInitializationType(HANDLE token, AppPolicyThreadInitializationType *policy);