Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(943)

Unified Diff: sandbox/win/src/process_mitigations_win32k_interception.h

Issue 333773005: Intercept the user32!SystemParametersInfoW API in the win32k user gdi lockdown mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sandbox/win/src/process_mitigations_win32k_interception.h
diff --git a/sandbox/win/src/process_mitigations_win32k_interception.h b/sandbox/win/src/process_mitigations_win32k_interception.h
index bf7b551227a5c64bf1bb8b58994843514e557745..dcb49b6ef9d31463210b5db89cf284f8e672be2f 100644
--- a/sandbox/win/src/process_mitigations_win32k_interception.h
+++ b/sandbox/win/src/process_mitigations_win32k_interception.h
@@ -22,6 +22,9 @@ typedef HGDIOBJ (WINAPI *GetStockObjectFunction) (int object);
typedef ATOM (WINAPI *RegisterClassWFunction) (const WNDCLASS* wnd_class);
+typedef BOOL (WINAPI* SystemParametersInfoWFunction) (UINT action,
+ UINT ui_param, PVOID value, UINT win_ini);
+
// Interceptor for the GdiDllInitialize function.
SANDBOX_INTERCEPT BOOL WINAPI TargetGdiDllInitialize(
GdiDllInitializeFunction orig_gdi_dll_initialize,
@@ -38,6 +41,14 @@ SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW(
RegisterClassWFunction orig_register_class_function,
const WNDCLASS* wnd_class);
+// Interceptor for the SystemParametersInfoW function.
+SANDBOX_INTERCEPT BOOL WINAPI TargetSystemParametersInfoW(
+ SystemParametersInfoWFunction orig_system_parameters_info,
+ UINT action,
+ UINT ui_param,
+ PVOID value,
+ UINT win_ini);
+
} // extern "C"
} // namespace sandbox
« no previous file with comments | « sandbox/win/src/process_mitigations_win32k_dispatcher.cc ('k') | sandbox/win/src/process_mitigations_win32k_interception.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698