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_NAMED_PIPE_INTERCEPTION_H__ michael@0: #define SANDBOX_SRC_NAMED_PIPE_INTERCEPTION_H__ michael@0: michael@0: namespace sandbox { michael@0: michael@0: extern "C" { michael@0: michael@0: typedef HANDLE (WINAPI *CreateNamedPipeWFunction) ( michael@0: LPCWSTR lpName, michael@0: DWORD dwOpenMode, michael@0: DWORD dwPipeMode, michael@0: DWORD nMaxInstances, michael@0: DWORD nOutBufferSize, michael@0: DWORD nInBufferSize, michael@0: DWORD nDefaultTimeOut, michael@0: LPSECURITY_ATTRIBUTES lpSecurityAttributes); michael@0: michael@0: // Interception of CreateNamedPipeW in kernel32.dll michael@0: SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateNamedPipeW( michael@0: CreateNamedPipeWFunction orig_CreateNamedPipeW, LPCWSTR pipe_name, michael@0: DWORD open_mode, DWORD pipe_mode, DWORD max_instance, DWORD out_buffer_size, michael@0: DWORD in_buffer_size, DWORD default_timeout, michael@0: LPSECURITY_ATTRIBUTES security_attributes); michael@0: michael@0: } // extern "C" michael@0: michael@0: } // namespace sandbox michael@0: michael@0: #endif // SANDBOX_SRC_NAMED_PIPE_INTERCEPTION_H__