OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "sandbox/win/src/interceptors_64.h" | 5 #include "sandbox/win/src/interceptors_64.h" |
6 | 6 |
7 #include "sandbox/win/src/interceptors.h" | 7 #include "sandbox/win/src/interceptors.h" |
8 #include "sandbox/win/src/filesystem_interception.h" | 8 #include "sandbox/win/src/filesystem_interception.h" |
9 #include "sandbox/win/src/named_pipe_interception.h" | 9 #include "sandbox/win/src/named_pipe_interception.h" |
10 #include "sandbox/win/src/policy_target.h" | 10 #include "sandbox/win/src/policy_target.h" |
| 11 #include "sandbox/win/src/process_mitigations_win32k_interception.h" |
11 #include "sandbox/win/src/process_thread_interception.h" | 12 #include "sandbox/win/src/process_thread_interception.h" |
12 #include "sandbox/win/src/registry_interception.h" | 13 #include "sandbox/win/src/registry_interception.h" |
13 #include "sandbox/win/src/sandbox_nt_types.h" | 14 #include "sandbox/win/src/sandbox_nt_types.h" |
14 #include "sandbox/win/src/sandbox_types.h" | 15 #include "sandbox/win/src/sandbox_types.h" |
15 #include "sandbox/win/src/sync_interception.h" | 16 #include "sandbox/win/src/sync_interception.h" |
16 #include "sandbox/win/src/target_interceptions.h" | 17 #include "sandbox/win/src/target_interceptions.h" |
17 | 18 |
18 namespace sandbox { | 19 namespace sandbox { |
19 | 20 |
20 SANDBOX_INTERCEPT NtExports g_nt; | 21 SANDBOX_INTERCEPT NtExports g_nt; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 245 |
245 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenEvent64( | 246 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenEvent64( |
246 PHANDLE event_handle, ACCESS_MASK desired_access, | 247 PHANDLE event_handle, ACCESS_MASK desired_access, |
247 POBJECT_ATTRIBUTES object_attributes) { | 248 POBJECT_ATTRIBUTES object_attributes) { |
248 NtOpenEventFunction orig_fn = reinterpret_cast< | 249 NtOpenEventFunction orig_fn = reinterpret_cast< |
249 NtOpenEventFunction>(g_originals[OPEN_EVENT_ID]); | 250 NtOpenEventFunction>(g_originals[OPEN_EVENT_ID]); |
250 return TargetNtOpenEvent(orig_fn, event_handle, desired_access, | 251 return TargetNtOpenEvent(orig_fn, event_handle, desired_access, |
251 object_attributes); | 252 object_attributes); |
252 } | 253 } |
253 | 254 |
| 255 // ----------------------------------------------------------------------- |
| 256 |
| 257 SANDBOX_INTERCEPT BOOL WINAPI TargetGdiDllInitialize64( |
| 258 HANDLE dll, |
| 259 DWORD reason) { |
| 260 GdiDllInitializeFunction orig_fn = reinterpret_cast< |
| 261 GdiDllInitializeFunction>(g_originals[GDIINITIALIZE_ID]); |
| 262 return TargetGdiDllInitialize(orig_fn, dll, reason); |
| 263 } |
| 264 |
| 265 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject64(int object) { |
| 266 GetStockObjectFunction orig_fn = reinterpret_cast< |
| 267 GetStockObjectFunction>(g_originals[GETSTOCKOBJECT_ID]); |
| 268 return TargetGetStockObject(orig_fn, object); |
| 269 } |
| 270 |
| 271 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64( |
| 272 const WNDCLASS* wnd_class) { |
| 273 RegisterClassWFunction orig_fn = reinterpret_cast< |
| 274 RegisterClassWFunction>(g_originals[REGISTERCLASSW_ID]); |
| 275 return TargetRegisterClassW(orig_fn, wnd_class); |
| 276 } |
| 277 |
254 } // namespace sandbox | 278 } // namespace sandbox |
OLD | NEW |