Wed, 31 Dec 2014 06:09:35 +0100
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_NAMED_PIPE_INTERCEPTION_H__ |
michael@0 | 9 | #define SANDBOX_SRC_NAMED_PIPE_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 *CreateNamedPipeWFunction) ( |
michael@0 | 16 | LPCWSTR lpName, |
michael@0 | 17 | DWORD dwOpenMode, |
michael@0 | 18 | DWORD dwPipeMode, |
michael@0 | 19 | DWORD nMaxInstances, |
michael@0 | 20 | DWORD nOutBufferSize, |
michael@0 | 21 | DWORD nInBufferSize, |
michael@0 | 22 | DWORD nDefaultTimeOut, |
michael@0 | 23 | LPSECURITY_ATTRIBUTES lpSecurityAttributes); |
michael@0 | 24 | |
michael@0 | 25 | // Interception of CreateNamedPipeW in kernel32.dll |
michael@0 | 26 | SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateNamedPipeW( |
michael@0 | 27 | CreateNamedPipeWFunction orig_CreateNamedPipeW, LPCWSTR pipe_name, |
michael@0 | 28 | DWORD open_mode, DWORD pipe_mode, DWORD max_instance, DWORD out_buffer_size, |
michael@0 | 29 | DWORD in_buffer_size, DWORD default_timeout, |
michael@0 | 30 | LPSECURITY_ATTRIBUTES security_attributes); |
michael@0 | 31 | |
michael@0 | 32 | } // extern "C" |
michael@0 | 33 | |
michael@0 | 34 | } // namespace sandbox |
michael@0 | 35 | |
michael@0 | 36 | #endif // SANDBOX_SRC_NAMED_PIPE_INTERCEPTION_H__ |