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

Side by Side Diff: sandbox/win/src/process_mitigations_win32k_interception.h

Issue 318603003: Sandbox policy and intercepts for the MITIGATION_WIN32K_DISABLE policy for renderer processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comment 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_INTERCEPTION_H_
6 #define SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_INTERCEPTION_H_
7
8 #include <windows.h>
9 #include "base/basictypes.h"
10 #include "sandbox/win/src/sandbox_types.h"
11
12 namespace sandbox {
13
14 extern "C" {
15
16 typedef BOOL (WINAPI* GdiDllInitializeFunction) (
17 HANDLE dll,
18 DWORD reason,
19 LPVOID reserved);
20
21 typedef HGDIOBJ (WINAPI *GetStockObjectFunction) (int object);
22
23 typedef ATOM (WINAPI *RegisterClassWFunction) (const WNDCLASS* wnd_class);
24
25 // Interceptors for GdiDllInitialize/GetStockObject/RegisterClassW.
26 SANDBOX_INTERCEPT BOOL WINAPI TargetGdiDllInitialize(
27 GdiDllInitializeFunction orig_gdi_dll_initialize,
28 HANDLE dll,
29 DWORD reason);
30
31 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject(
32 GetStockObjectFunction orig_get_stock_object,
33 int object);
34
35 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW(
36 RegisterClassWFunction orig_register_class_function,
37 const WNDCLASS* wnd_class);
38
39 } // extern "C"
40
41 } // namespace sandbox
42
43 #endif // SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_INTERCEPTION_H_
44
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698