Index: sandbox/win/src/interceptors_64.cc |
diff --git a/sandbox/win/src/interceptors_64.cc b/sandbox/win/src/interceptors_64.cc |
index f279b16f3d354ec23c909d0b71ffa36c9e7e75d5..ef0b5f0017aac0fdcfef874271d0e4e75118de7e 100644 |
--- a/sandbox/win/src/interceptors_64.cc |
+++ b/sandbox/win/src/interceptors_64.cc |
@@ -8,6 +8,7 @@ |
#include "sandbox/win/src/filesystem_interception.h" |
#include "sandbox/win/src/named_pipe_interception.h" |
#include "sandbox/win/src/policy_target.h" |
+#include "sandbox/win/src/process_mitigations_win32k_interception.h" |
#include "sandbox/win/src/process_thread_interception.h" |
#include "sandbox/win/src/registry_interception.h" |
#include "sandbox/win/src/sandbox_nt_types.h" |
@@ -251,4 +252,27 @@ SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenEvent64( |
object_attributes); |
} |
+// ----------------------------------------------------------------------- |
+ |
+SANDBOX_INTERCEPT BOOL WINAPI TargetGdiDllInitialize64( |
+ HANDLE dll, |
+ DWORD reason) { |
+ GdiDllInitializeFunction orig_fn = reinterpret_cast< |
+ GdiDllInitializeFunction>(g_originals[GDIINITIALIZE_ID]); |
+ return TargetGdiDllInitialize(orig_fn, dll, reason); |
+} |
+ |
+SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject64(int object) { |
+ GetStockObjectFunction orig_fn = reinterpret_cast< |
+ GetStockObjectFunction>(g_originals[GETSTOCKOBJECT_ID]); |
+ return TargetGetStockObject(orig_fn, object); |
+} |
+ |
+SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64( |
+ const WNDCLASS* wnd_class) { |
+ RegisterClassWFunction orig_fn = reinterpret_cast< |
+ RegisterClassWFunction>(g_originals[REGISTERCLASSW_ID]); |
+ return TargetRegisterClassW(orig_fn, wnd_class); |
+} |
+ |
} // namespace sandbox |