kernel32: Add stub for SetProcessMitigationPolicy.
This is needed by x64 chromium sandbox for >= win8. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45643 Signed-off-by: Fabian Maurer <dark.shadow4@web.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
565c2dcf2a
commit
41c0219e05
|
@ -44,7 +44,7 @@
|
||||||
@ stdcall ResumeThread(long) kernel32.ResumeThread
|
@ stdcall ResumeThread(long) kernel32.ResumeThread
|
||||||
@ stdcall SetPriorityClass(long long) kernel32.SetPriorityClass
|
@ stdcall SetPriorityClass(long long) kernel32.SetPriorityClass
|
||||||
@ stdcall SetProcessAffinityUpdateMode(long long) kernel32.SetProcessAffinityUpdateMode
|
@ stdcall SetProcessAffinityUpdateMode(long long) kernel32.SetProcessAffinityUpdateMode
|
||||||
@ stub SetProcessMitigationPolicy
|
@ stdcall SetProcessMitigationPolicy(long ptr long) kernel32.SetProcessMitigationPolicy
|
||||||
@ stdcall SetProcessShutdownParameters(long long) kernel32.SetProcessShutdownParameters
|
@ stdcall SetProcessShutdownParameters(long long) kernel32.SetProcessShutdownParameters
|
||||||
@ stdcall SetThreadContext(long ptr) kernel32.SetThreadContext
|
@ stdcall SetThreadContext(long ptr) kernel32.SetThreadContext
|
||||||
@ stdcall SetThreadIdealProcessorEx(long ptr ptr) kernel32.SetThreadIdealProcessorEx
|
@ stdcall SetThreadIdealProcessorEx(long ptr ptr) kernel32.SetThreadIdealProcessorEx
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
@ stdcall ResumeThread(long) kernel32.ResumeThread
|
@ stdcall ResumeThread(long) kernel32.ResumeThread
|
||||||
@ stdcall SetPriorityClass(long long) kernel32.SetPriorityClass
|
@ stdcall SetPriorityClass(long long) kernel32.SetPriorityClass
|
||||||
@ stdcall SetProcessAffinityUpdateMode(long long) kernel32.SetProcessAffinityUpdateMode
|
@ stdcall SetProcessAffinityUpdateMode(long long) kernel32.SetProcessAffinityUpdateMode
|
||||||
@ stub SetProcessMitigationPolicy
|
@ stdcall SetProcessMitigationPolicy(long ptr long) kernel32.SetProcessMitigationPolicy
|
||||||
@ stdcall SetProcessPriorityBoost(long long) kernel32.SetProcessPriorityBoost
|
@ stdcall SetProcessPriorityBoost(long long) kernel32.SetProcessPriorityBoost
|
||||||
@ stdcall SetProcessShutdownParameters(long long) kernel32.SetProcessShutdownParameters
|
@ stdcall SetProcessShutdownParameters(long long) kernel32.SetProcessShutdownParameters
|
||||||
@ stdcall SetThreadContext(long ptr) kernel32.SetThreadContext
|
@ stdcall SetThreadContext(long ptr) kernel32.SetThreadContext
|
||||||
|
|
|
@ -1428,6 +1428,7 @@
|
||||||
@ stdcall SetProcessAffinityMask(long long)
|
@ stdcall SetProcessAffinityMask(long long)
|
||||||
@ stdcall SetProcessAffinityUpdateMode(long long)
|
@ stdcall SetProcessAffinityUpdateMode(long long)
|
||||||
@ stdcall SetProcessDEPPolicy(long)
|
@ stdcall SetProcessDEPPolicy(long)
|
||||||
|
@ stdcall SetProcessMitigationPolicy(long ptr long)
|
||||||
# @ stub SetProcessPreferredUILanguages
|
# @ stub SetProcessPreferredUILanguages
|
||||||
@ stdcall SetProcessPriorityBoost(long long)
|
@ stdcall SetProcessPriorityBoost(long long)
|
||||||
@ stdcall SetProcessShutdownParameters(long long)
|
@ stdcall SetProcessShutdownParameters(long long)
|
||||||
|
|
|
@ -4389,3 +4389,13 @@ BOOL WINAPI BaseFlushAppcompatCache(void)
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**********************************************************************
|
||||||
|
* SetProcessMitigationPolicy (KERNEL32.@)
|
||||||
|
*/
|
||||||
|
BOOL WINAPI SetProcessMitigationPolicy(PROCESS_MITIGATION_POLICY policy, void *buffer, SIZE_T length)
|
||||||
|
{
|
||||||
|
FIXME("(%d, %p, %lu): stub\n", policy, buffer, length);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
|
@ -1456,7 +1456,7 @@
|
||||||
# @ stub SetProcessDefaultCpuSets
|
# @ stub SetProcessDefaultCpuSets
|
||||||
# @ stub SetProcessGroupAffinity
|
# @ stub SetProcessGroupAffinity
|
||||||
# @ stub SetProcessInformation
|
# @ stub SetProcessInformation
|
||||||
# @ stub SetProcessMitigationPolicy
|
@ stdcall SetProcessMitigationPolicy(long ptr long) kernel32.SetProcessMitigationPolicy
|
||||||
# @ stub SetProcessPreferredUILanguages
|
# @ stub SetProcessPreferredUILanguages
|
||||||
@ stdcall SetProcessPriorityBoost(long long) kernel32.SetProcessPriorityBoost
|
@ stdcall SetProcessPriorityBoost(long long) kernel32.SetProcessPriorityBoost
|
||||||
@ stdcall SetProcessShutdownParameters(long long) kernel32.SetProcessShutdownParameters
|
@ stdcall SetProcessShutdownParameters(long long) kernel32.SetProcessShutdownParameters
|
||||||
|
|
|
@ -6273,6 +6273,26 @@ typedef enum _RTL_UMS_SCHEDULER_REASON
|
||||||
|
|
||||||
typedef void (CALLBACK *PRTL_UMS_SCHEDULER_ENTRY_POINT)(RTL_UMS_SCHEDULER_REASON,ULONG_PTR,PVOID);
|
typedef void (CALLBACK *PRTL_UMS_SCHEDULER_ENTRY_POINT)(RTL_UMS_SCHEDULER_REASON,ULONG_PTR,PVOID);
|
||||||
|
|
||||||
|
typedef enum _PROCESS_MITIGATION_POLICY
|
||||||
|
{
|
||||||
|
ProcessDEPPolicy,
|
||||||
|
ProcessASLRPolicy,
|
||||||
|
ProcessDynamicCodePolicy,
|
||||||
|
ProcessStrictHandleCheckPolicy,
|
||||||
|
ProcessSystemCallDisablePolicy,
|
||||||
|
ProcessMitigationOptionsMask,
|
||||||
|
ProcessExtensionPointDisablePolicy,
|
||||||
|
ProcessControlFlowGuardPolicy,
|
||||||
|
ProcessSignaturePolicy,
|
||||||
|
ProcessFontDisablePolicy,
|
||||||
|
ProcessImageLoadPolicy,
|
||||||
|
ProcessSystemCallFilterPolicy,
|
||||||
|
ProcessPayloadRestrictionPolicy,
|
||||||
|
ProcessChildProcessPolicy,
|
||||||
|
ProcessSideChannelIsolationPolicy,
|
||||||
|
MaxProcessMitigationPolicy
|
||||||
|
} PROCESS_MITIGATION_POLICY, *PPROCESS_MITIGATION_POLICY;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue