security/sandbox/win/src/sync_interception.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
michael@0 2 // Use of this source code is governed by a BSD-style license that can be
michael@0 3 // found in the LICENSE file.
michael@0 4
michael@0 5 #include "sandbox/win/src/nt_internals.h"
michael@0 6 #include "sandbox/win/src/sandbox_types.h"
michael@0 7
michael@0 8 #ifndef SANDBOX_SRC_SYNC_INTERCEPTION_H__
michael@0 9 #define SANDBOX_SRC_SYNC_INTERCEPTION_H__
michael@0 10
michael@0 11 namespace sandbox {
michael@0 12
michael@0 13 extern "C" {
michael@0 14
michael@0 15 typedef HANDLE (WINAPI *CreateEventWFunction) (
michael@0 16 LPSECURITY_ATTRIBUTES lpEventAttributes,
michael@0 17 DWORD dwDesiredAccess,
michael@0 18 BOOL bInheritHandle,
michael@0 19 LPCWSTR lpName);
michael@0 20
michael@0 21 typedef HANDLE (WINAPI *OpenEventWFunction) (
michael@0 22 BOOL bManualReset,
michael@0 23 BOOL bInitialState,
michael@0 24 LPCWSTR lpName);
michael@0 25
michael@0 26 // Interception of CreateEvent on the child process.
michael@0 27 SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateEventW(
michael@0 28 CreateEventWFunction orig_CreateEvent,
michael@0 29 LPSECURITY_ATTRIBUTES security_attributes, BOOL manual_reset,
michael@0 30 BOOL initial_state, LPCWSTR name);
michael@0 31
michael@0 32 // Interception of OpenEvent on the child process.
michael@0 33 SANDBOX_INTERCEPT HANDLE WINAPI TargetOpenEventW(
michael@0 34 OpenEventWFunction orig_OpenEvent, ACCESS_MASK desired_access,
michael@0 35 BOOL inherit_handle, LPCWSTR name);
michael@0 36
michael@0 37 } // extern "C"
michael@0 38
michael@0 39 } // namespace sandbox
michael@0 40
michael@0 41 #endif // SANDBOX_SRC_SYNC_INTERCEPTION_H__

mercurial