| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/wow_helper/target_code.h" | 5 #include "sandbox/win/wow_helper/target_code.h" |
| 6 | 6 |
| 7 namespace sandbox { | 7 namespace sandbox { |
| 8 | 8 |
| 9 // Hooks NtMapViewOfSection to detect the load of dlls. | 9 // Hooks NtMapViewOfSection to detect the load of dlls. |
| 10 NTSTATUS WINAPI TargetNtMapViewOfSection( | 10 NTSTATUS WINAPI TargetNtMapViewOfSection( |
| 11 PatchInfo *patch_info, HANDLE process, PVOID *base, ULONG_PTR zero_bits, | 11 PatchInfo *patch_info, HANDLE process, PVOID *base, ULONG_PTR zero_bits, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 return ret; | 26 return ret; |
| 27 } | 27 } |
| 28 | 28 |
| 29 // Marks the end of the code to copy to the target process. | 29 // Marks the end of the code to copy to the target process. |
| 30 NTSTATUS WINAPI TargetEnd() { | 30 NTSTATUS WINAPI TargetEnd() { |
| 31 return STATUS_SUCCESS; | 31 return STATUS_SUCCESS; |
| 32 } | 32 } |
| 33 | 33 |
| 34 } // namespace sandbox | 34 } // namespace sandbox |
| OLD | NEW |