Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / sandbox / win / src / process_mitigations_win32k_interception.h
blobbf7b551227a5c64bf1bb8b58994843514e557745
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.
5 #ifndef SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_INTERCEPTION_H_
6 #define SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_INTERCEPTION_H_
8 #include <windows.h>
9 #include "base/basictypes.h"
10 #include "sandbox/win/src/sandbox_types.h"
12 namespace sandbox {
14 extern "C" {
16 typedef BOOL (WINAPI* GdiDllInitializeFunction) (
17 HANDLE dll,
18 DWORD reason,
19 LPVOID reserved);
21 typedef HGDIOBJ (WINAPI *GetStockObjectFunction) (int object);
23 typedef ATOM (WINAPI *RegisterClassWFunction) (const WNDCLASS* wnd_class);
25 // Interceptor for the GdiDllInitialize function.
26 SANDBOX_INTERCEPT BOOL WINAPI TargetGdiDllInitialize(
27 GdiDllInitializeFunction orig_gdi_dll_initialize,
28 HANDLE dll,
29 DWORD reason);
31 // Interceptor for the GetStockObject function.
32 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject(
33 GetStockObjectFunction orig_get_stock_object,
34 int object);
36 // Interceptor for the RegisterClassW function.
37 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW(
38 RegisterClassWFunction orig_register_class_function,
39 const WNDCLASS* wnd_class);
41 } // extern "C"
43 } // namespace sandbox
45 #endif // SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_INTERCEPTION_H_