1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/sandbox/win/src/sync_interception.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1.5 +// Use of this source code is governed by a BSD-style license that can be 1.6 +// found in the LICENSE file. 1.7 + 1.8 +#include "sandbox/win/src/nt_internals.h" 1.9 +#include "sandbox/win/src/sandbox_types.h" 1.10 + 1.11 +#ifndef SANDBOX_SRC_SYNC_INTERCEPTION_H__ 1.12 +#define SANDBOX_SRC_SYNC_INTERCEPTION_H__ 1.13 + 1.14 +namespace sandbox { 1.15 + 1.16 +extern "C" { 1.17 + 1.18 +typedef HANDLE (WINAPI *CreateEventWFunction) ( 1.19 + LPSECURITY_ATTRIBUTES lpEventAttributes, 1.20 + DWORD dwDesiredAccess, 1.21 + BOOL bInheritHandle, 1.22 + LPCWSTR lpName); 1.23 + 1.24 +typedef HANDLE (WINAPI *OpenEventWFunction) ( 1.25 + BOOL bManualReset, 1.26 + BOOL bInitialState, 1.27 + LPCWSTR lpName); 1.28 + 1.29 +// Interception of CreateEvent on the child process. 1.30 +SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateEventW( 1.31 + CreateEventWFunction orig_CreateEvent, 1.32 + LPSECURITY_ATTRIBUTES security_attributes, BOOL manual_reset, 1.33 + BOOL initial_state, LPCWSTR name); 1.34 + 1.35 +// Interception of OpenEvent on the child process. 1.36 +SANDBOX_INTERCEPT HANDLE WINAPI TargetOpenEventW( 1.37 + OpenEventWFunction orig_OpenEvent, ACCESS_MASK desired_access, 1.38 + BOOL inherit_handle, LPCWSTR name); 1.39 + 1.40 +} // extern "C" 1.41 + 1.42 +} // namespace sandbox 1.43 + 1.44 +#endif // SANDBOX_SRC_SYNC_INTERCEPTION_H__