OLD | NEW |
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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/src/resolver.h" | 5 #include "sandbox/win/src/resolver.h" |
6 | 6 |
7 #include "sandbox/src/sandbox_nt_util.h" | 7 #include "sandbox/win/src/sandbox_nt_util.h" |
8 | 8 |
9 namespace { | 9 namespace { |
10 | 10 |
11 const BYTE kPushRax = 0x50; | 11 const BYTE kPushRax = 0x50; |
12 const USHORT kMovRax = 0xB848; | 12 const USHORT kMovRax = 0xB848; |
13 const ULONG kMovRspRax = 0x24048948; | 13 const ULONG kMovRspRax = 0x24048948; |
14 const BYTE kRetNp = 0xC3; | 14 const BYTE kRetNp = 0xC3; |
15 | 15 |
16 #pragma pack(push, 1) | 16 #pragma pack(push, 1) |
17 struct InternalThunk { | 17 struct InternalThunk { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 | 61 |
62 NTSTATUS ResolverThunk::ResolveTarget(const void* module, | 62 NTSTATUS ResolverThunk::ResolveTarget(const void* module, |
63 const char* function_name, | 63 const char* function_name, |
64 void** address) { | 64 void** address) { |
65 // We don't support sidestep & co. | 65 // We don't support sidestep & co. |
66 return STATUS_NOT_IMPLEMENTED; | 66 return STATUS_NOT_IMPLEMENTED; |
67 } | 67 } |
68 | 68 |
69 } // namespace sandbox | 69 } // namespace sandbox |
OLD | NEW |