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_
9 #include "base/basictypes.h"
10 #include "sandbox/win/src/sandbox_types.h"
16 typedef BOOL (WINAPI
* GdiDllInitializeFunction
) (
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
,
31 // Interceptor for the GetStockObject function.
32 SANDBOX_INTERCEPT HGDIOBJ WINAPI
TargetGetStockObject(
33 GetStockObjectFunction orig_get_stock_object
,
36 // Interceptor for the RegisterClassW function.
37 SANDBOX_INTERCEPT ATOM WINAPI
TargetRegisterClassW(
38 RegisterClassWFunction orig_register_class_function
,
39 const WNDCLASS
* wnd_class
);
43 } // namespace sandbox
45 #endif // SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_INTERCEPTION_H_