blob: f47e56ce39c556d73b15a378acf4677e950be994 [file] [log] [blame]
license.botbf09a502008-08-24 00:55:551// 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.commita814a8d52008-07-26 22:41:284
Mostyn Bramley-Moorea6edf462018-01-25 02:19:385#ifndef SANDBOX_WIN_SRC_REGISTRY_INTERCEPTION_H_
6#define SANDBOX_WIN_SRC_REGISTRY_INTERCEPTION_H_
7
jln@chromium.org181491782012-07-18 00:59:158#include "sandbox/win/src/nt_internals.h"
9#include "sandbox/win/src/sandbox_types.h"
initial.commita814a8d52008-07-26 22:41:2810
initial.commita814a8d52008-07-26 22:41:2811namespace sandbox {
12
13extern "C" {
14
15// Interception of NtCreateKey on the child process.
16// It should never be called directly
17SANDBOX_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
24SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenKey(
25 NtOpenKeyFunction orig_OpenKey, PHANDLE key, ACCESS_MASK desired_access,
26 POBJECT_ATTRIBUTES object_attributes);
27
nsylvain@chromium.org8869a5f2009-02-13 18:07:0028// Interception of NtOpenKeyEx on the child process.
29// It should never be called directly
30SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenKeyEx(
31 NtOpenKeyExFunction orig_OpenKeyEx, PHANDLE key, ACCESS_MASK desired_access,
rvargas@google.com7c2a99c2010-03-05 01:42:1332 POBJECT_ATTRIBUTES object_attributes, ULONG open_options);
nsylvain@chromium.org8869a5f2009-02-13 18:07:0033
initial.commita814a8d52008-07-26 22:41:2834} // extern "C"
35
36} // namespace sandbox
37
Mostyn Bramley-Moorea6edf462018-01-25 02:19:3838#endif // SANDBOX_WIN_SRC_REGISTRY_INTERCEPTION_H_