michael@0: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #include "sandbox/win/src/nt_internals.h" michael@0: #include "sandbox/win/src/sandbox_types.h" michael@0: michael@0: #ifndef SANDBOX_SRC_SYNC_INTERCEPTION_H__ michael@0: #define SANDBOX_SRC_SYNC_INTERCEPTION_H__ michael@0: michael@0: namespace sandbox { michael@0: michael@0: extern "C" { michael@0: michael@0: typedef HANDLE (WINAPI *CreateEventWFunction) ( michael@0: LPSECURITY_ATTRIBUTES lpEventAttributes, michael@0: DWORD dwDesiredAccess, michael@0: BOOL bInheritHandle, michael@0: LPCWSTR lpName); michael@0: michael@0: typedef HANDLE (WINAPI *OpenEventWFunction) ( michael@0: BOOL bManualReset, michael@0: BOOL bInitialState, michael@0: LPCWSTR lpName); michael@0: michael@0: // Interception of CreateEvent on the child process. michael@0: SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateEventW( michael@0: CreateEventWFunction orig_CreateEvent, michael@0: LPSECURITY_ATTRIBUTES security_attributes, BOOL manual_reset, michael@0: BOOL initial_state, LPCWSTR name); michael@0: michael@0: // Interception of OpenEvent on the child process. michael@0: SANDBOX_INTERCEPT HANDLE WINAPI TargetOpenEventW( michael@0: OpenEventWFunction orig_OpenEvent, ACCESS_MASK desired_access, michael@0: BOOL inherit_handle, LPCWSTR name); michael@0: michael@0: } // extern "C" michael@0: michael@0: } // namespace sandbox michael@0: michael@0: #endif // SANDBOX_SRC_SYNC_INTERCEPTION_H__