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

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 presubmit warnings 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 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 // Interceptor for the GdiDllInitialize function.
26 SANDBOX_INTERCEPT BOOL WINAPI TargetGdiDllInitialize(
27 GdiDllInitializeFunction orig_gdi_dll_initialize,
28 HANDLE dll,
29 DWORD reason);
30
31 // Interceptor for the GetStockObject function.
32 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject(
33 GetStockObjectFunction orig_get_stock_object,
34 int object);
35
36 // Interceptor for the RegisterClassW function.
37 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW(
38 RegisterClassWFunction orig_register_class_function,
39 const WNDCLASS* wnd_class);
40
41 } // extern "C"
42
43 } // namespace sandbox
44
45 #endif // SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_INTERCEPTION_H_
46
OLDNEW
« 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