| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sandbox/win/src/nt_internals.h" | 5 #include "sandbox/win/src/nt_internals.h" |
| 6 #include "sandbox/win/src/sandbox_types.h" | 6 #include "sandbox/win/src/sandbox_types.h" |
| 7 | 7 |
| 8 #ifndef SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__ | 8 #ifndef SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__ |
| 9 #define SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__ | 9 #define SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__ |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 LPVOID environment, LPCWSTR current_directory, LPSTARTUPINFOW startup_info, | 76 LPVOID environment, LPCWSTR current_directory, LPSTARTUPINFOW startup_info, |
| 77 LPPROCESS_INFORMATION process_information); | 77 LPPROCESS_INFORMATION process_information); |
| 78 | 78 |
| 79 SANDBOX_INTERCEPT BOOL WINAPI TargetCreateProcessA( | 79 SANDBOX_INTERCEPT BOOL WINAPI TargetCreateProcessA( |
| 80 CreateProcessAFunction orig_CreateProcessA, LPCSTR application_name, | 80 CreateProcessAFunction orig_CreateProcessA, LPCSTR application_name, |
| 81 LPSTR command_line, LPSECURITY_ATTRIBUTES process_attributes, | 81 LPSTR command_line, LPSECURITY_ATTRIBUTES process_attributes, |
| 82 LPSECURITY_ATTRIBUTES thread_attributes, BOOL inherit_handles, DWORD flags, | 82 LPSECURITY_ATTRIBUTES thread_attributes, BOOL inherit_handles, DWORD flags, |
| 83 LPVOID environment, LPCSTR current_directory, LPSTARTUPINFOA startup_info, | 83 LPVOID environment, LPCSTR current_directory, LPSTARTUPINFOA startup_info, |
| 84 LPPROCESS_INFORMATION process_information); | 84 LPPROCESS_INFORMATION process_information); |
| 85 | 85 |
| 86 // Interception of CreateThread in kernel32.dll. |
| 87 SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateThread( |
| 88 CreateThreadFunction orig_CreateThread, |
| 89 LPSECURITY_ATTRIBUTES thread_attributes, |
| 90 SIZE_T stack_size, LPTHREAD_START_ROUTINE start_address, PVOID parameter, |
| 91 DWORD creation_flags, LPDWORD thread_id); |
| 92 |
| 86 } // extern "C" | 93 } // extern "C" |
| 87 | 94 |
| 88 } // namespace sandbox | 95 } // namespace sandbox |
| 89 | 96 |
| 90 #endif // SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__ | 97 #endif // SANDBOX_SRC_PROCESS_THREAD_INTERCEPTION_H__ |
| OLD | NEW |