| 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/nt_internals.h" | 5 #include "sandbox/win/src/nt_internals.h" |
| 6 #include "sandbox/win/src/sandbox_types.h" | 6 #include "sandbox/win/src/sandbox_types.h" |
| 7 | 7 |
| 8 #ifndef SANDBOX_SRC_INTERCEPTORS_64_H_ | 8 #ifndef SANDBOX_SRC_INTERCEPTORS_64_H_ |
| 9 #define SANDBOX_SRC_INTERCEPTORS_64_H_ | 9 #define SANDBOX_SRC_INTERCEPTORS_64_H_ |
| 10 | 10 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // Interception of NtCreateEvent/NtOpenEvent on the child process. | 156 // Interception of NtCreateEvent/NtOpenEvent on the child process. |
| 157 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateEvent64( | 157 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateEvent64( |
| 158 PHANDLE event_handle, ACCESS_MASK desired_access, | 158 PHANDLE event_handle, ACCESS_MASK desired_access, |
| 159 POBJECT_ATTRIBUTES object_attributes, EVENT_TYPE event_type, | 159 POBJECT_ATTRIBUTES object_attributes, EVENT_TYPE event_type, |
| 160 BOOLEAN initial_state); | 160 BOOLEAN initial_state); |
| 161 | 161 |
| 162 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenEvent64( | 162 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenEvent64( |
| 163 PHANDLE event_handle, ACCESS_MASK desired_access, | 163 PHANDLE event_handle, ACCESS_MASK desired_access, |
| 164 POBJECT_ATTRIBUTES object_attributes); | 164 POBJECT_ATTRIBUTES object_attributes); |
| 165 | 165 |
| 166 // ----------------------------------------------------------------------- |
| 167 // Interceptors handled by the process mitigations win32k lockdown code. |
| 168 |
| 169 // Interceptor for the GdiDllInitialize function. |
| 170 SANDBOX_INTERCEPT BOOL WINAPI TargetGdiDllInitialize64( |
| 171 HANDLE dll, |
| 172 DWORD reason); |
| 173 |
| 174 // Interceptor for the GetStockObject function. |
| 175 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject64(int object); |
| 176 |
| 177 // Interceptor for the RegisterClassW function. |
| 178 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64(const WNDCLASS* wnd_class); |
| 179 |
| 166 } // extern "C" | 180 } // extern "C" |
| 167 | 181 |
| 168 } // namespace sandbox | 182 } // namespace sandbox |
| 169 | 183 |
| 170 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_ | 184 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_ |
| OLD | NEW |