license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 1 | // Copyright (c) 2006-2008 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. |
initial.commit | a814a8d5 | 2008-07-26 22:41:28 | [diff] [blame] | 4 | |
Mostyn Bramley-Moore | a6edf46 | 2018-01-25 02:19:38 | [diff] [blame] | 5 | #ifndef SANDBOX_WIN_SRC_REGISTRY_INTERCEPTION_H_ |
| 6 | #define SANDBOX_WIN_SRC_REGISTRY_INTERCEPTION_H_ |
| 7 | |
jln@chromium.org | 18149178 | 2012-07-18 00:59:15 | [diff] [blame] | 8 | #include "sandbox/win/src/nt_internals.h" |
| 9 | #include "sandbox/win/src/sandbox_types.h" |
initial.commit | a814a8d5 | 2008-07-26 22:41:28 | [diff] [blame] | 10 | |
initial.commit | a814a8d5 | 2008-07-26 22:41:28 | [diff] [blame] | 11 | namespace sandbox { |
| 12 | |
| 13 | extern "C" { |
| 14 | |
| 15 | // Interception of NtCreateKey on the child process. |
| 16 | // It should never be called directly |
| 17 | SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateKey( |
| 18 | NtCreateKeyFunction orig_CreateKey, PHANDLE key, ACCESS_MASK desired_access, |
| 19 | POBJECT_ATTRIBUTES object_attributes, ULONG title_index, |
| 20 | PUNICODE_STRING class_name, ULONG create_options, PULONG disposition); |
| 21 | |
| 22 | // Interception of NtOpenKey on the child process. |
| 23 | // It should never be called directly |
| 24 | SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenKey( |
| 25 | NtOpenKeyFunction orig_OpenKey, PHANDLE key, ACCESS_MASK desired_access, |
| 26 | POBJECT_ATTRIBUTES object_attributes); |
| 27 | |
nsylvain@chromium.org | 8869a5f | 2009-02-13 18:07:00 | [diff] [blame] | 28 | // Interception of NtOpenKeyEx on the child process. |
| 29 | // It should never be called directly |
| 30 | SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenKeyEx( |
| 31 | NtOpenKeyExFunction orig_OpenKeyEx, PHANDLE key, ACCESS_MASK desired_access, |
rvargas@google.com | 7c2a99c | 2010-03-05 01:42:13 | [diff] [blame] | 32 | POBJECT_ATTRIBUTES object_attributes, ULONG open_options); |
nsylvain@chromium.org | 8869a5f | 2009-02-13 18:07:00 | [diff] [blame] | 33 | |
initial.commit | a814a8d5 | 2008-07-26 22:41:28 | [diff] [blame] | 34 | } // extern "C" |
| 35 | |
| 36 | } // namespace sandbox |
| 37 | |
Mostyn Bramley-Moore | a6edf46 | 2018-01-25 02:19:38 | [diff] [blame] | 38 | #endif // SANDBOX_WIN_SRC_REGISTRY_INTERCEPTION_H_ |