| 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/lpc_interception.h" | 
| 9 #include "sandbox/win/src/named_pipe_interception.h" | 10 #include "sandbox/win/src/named_pipe_interception.h" | 
| 10 #include "sandbox/win/src/policy_target.h" | 11 #include "sandbox/win/src/policy_target.h" | 
| 11 #include "sandbox/win/src/process_mitigations_win32k_interception.h" | 12 #include "sandbox/win/src/process_mitigations_win32k_interception.h" | 
| 12 #include "sandbox/win/src/process_thread_interception.h" | 13 #include "sandbox/win/src/process_thread_interception.h" | 
| 13 #include "sandbox/win/src/registry_interception.h" | 14 #include "sandbox/win/src/registry_interception.h" | 
| 14 #include "sandbox/win/src/sandbox_nt_types.h" | 15 #include "sandbox/win/src/sandbox_nt_types.h" | 
| 15 #include "sandbox/win/src/sandbox_types.h" | 16 #include "sandbox/win/src/sandbox_types.h" | 
| 16 #include "sandbox/win/src/sync_interception.h" | 17 #include "sandbox/win/src/sync_interception.h" | 
| 17 #include "sandbox/win/src/target_interceptions.h" | 18 #include "sandbox/win/src/target_interceptions.h" | 
| 18 | 19 | 
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 268   return TargetGetStockObject(orig_fn, object); | 269   return TargetGetStockObject(orig_fn, object); | 
| 269 } | 270 } | 
| 270 | 271 | 
| 271 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64( | 272 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64( | 
| 272     const WNDCLASS* wnd_class) { | 273     const WNDCLASS* wnd_class) { | 
| 273   RegisterClassWFunction orig_fn = reinterpret_cast< | 274   RegisterClassWFunction orig_fn = reinterpret_cast< | 
| 274       RegisterClassWFunction>(g_originals[REGISTERCLASSW_ID]); | 275       RegisterClassWFunction>(g_originals[REGISTERCLASSW_ID]); | 
| 275   return TargetRegisterClassW(orig_fn, wnd_class); | 276   return TargetRegisterClassW(orig_fn, wnd_class); | 
| 276 } | 277 } | 
| 277 | 278 | 
|  | 279 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtAlpcConnectPort64( | 
|  | 280     PHANDLE port_handle, | 
|  | 281     PUNICODE_STRING port_name, | 
|  | 282     POBJECT_ATTRIBUTES object_attributes, | 
|  | 283     void* port_attributes, | 
|  | 284     ULONG flags, | 
|  | 285     void* sid, | 
|  | 286     void* connection_message, | 
|  | 287     ULONG* buffer_length, | 
|  | 288     void* out_message_attributes, | 
|  | 289     void* in_message_attributes, | 
|  | 290     PLARGE_INTEGER timeout) { | 
|  | 291   NtAlpcConnectPortFunction orig_fn = reinterpret_cast< | 
|  | 292       NtAlpcConnectPortFunction>(g_originals[NTCONNECTALPCPORT_ID]); | 
|  | 293   return TargetNtAlpcConnectPort(orig_fn, port_handle, port_name, | 
|  | 294       object_attributes, port_attributes, flags, sid, connection_message, | 
|  | 295       buffer_length, out_message_attributes, in_message_attributes, time_out); | 
|  | 296 } | 
|  | 297 | 
| 278 }  // namespace sandbox | 298 }  // namespace sandbox | 
| OLD | NEW | 
|---|