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

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

Issue 1851213002: Remove sandbox on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nacl compile issues Created 4 years, 8 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
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 "sandbox/win/src/sandbox_types.h"
10
11 namespace sandbox {
12
13 extern "C" {
14
15 typedef BOOL (WINAPI* GdiDllInitializeFunction) (
16 HANDLE dll,
17 DWORD reason,
18 LPVOID reserved);
19
20 typedef HGDIOBJ (WINAPI *GetStockObjectFunction) (int object);
21
22 typedef ATOM (WINAPI *RegisterClassWFunction) (const WNDCLASS* wnd_class);
23
24 // Interceptor for the GdiDllInitialize function.
25 SANDBOX_INTERCEPT BOOL WINAPI TargetGdiDllInitialize(
26 GdiDllInitializeFunction orig_gdi_dll_initialize,
27 HANDLE dll,
28 DWORD reason);
29
30 // Interceptor for the GetStockObject function.
31 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject(
32 GetStockObjectFunction orig_get_stock_object,
33 int object);
34
35 // Interceptor for the RegisterClassW function.
36 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW(
37 RegisterClassWFunction orig_register_class_function,
38 const WNDCLASS* wnd_class);
39
40 } // extern "C"
41
42 } // namespace sandbox
43
44 #endif // SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_INTERCEPTION_H_
45
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