Chromium Code Reviews| Index: sandbox/win/src/process_mitigations_win32k_interception.cc |
| diff --git a/sandbox/win/src/process_mitigations_win32k_interception.cc b/sandbox/win/src/process_mitigations_win32k_interception.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6faf130aee0bf0181eb246c11fb0e2acd5e14570 |
| --- /dev/null |
| +++ b/sandbox/win/src/process_mitigations_win32k_interception.cc |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "sandbox/win/src/process_mitigations_win32k_interception.h" |
| + |
| +namespace sandbox { |
| + |
| +BOOL WINAPI TargetGdiDllInitialize( |
| + GdiDllInitializeFunction orig_gdi_dll_initialize, |
| + HANDLE dll, |
| + DWORD reason) { |
| + return TRUE; |
| +} |
| + |
| +HGDIOBJ WINAPI TargetGetStockObject(GetStockObjectFunction orig_get_stock_object, |
|
rvargas (doing something else)
2014/06/06 21:22:24
Args on the next line :(
ananta
2014/06/06 23:57:35
Done.
|
| + int object) { |
| + return reinterpret_cast<HGDIOBJ>(1); |
|
rvargas (doing something else)
2014/06/06 21:22:24
Is this the final code? Can we return NULL?
ananta
2014/06/06 23:57:35
Done.
|
| +} |
| + |
| +ATOM WINAPI TargetRegisterClassW( |
| + RegisterClassWFunction orig_register_class_function, |
| + const WNDCLASS* wnd_class) { |
| + return TRUE; |
| +} |
| + |
| +} // namespace sandbox |
| + |