| OLD | NEW |
| 1 // Copyright (c) 2012 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 #ifndef SANDBOX_SRC_INTERNAL_TYPES_H_ | 5 #ifndef SANDBOX_WIN_SRC_INTERNAL_TYPES_H_ |
| 6 #define SANDBOX_SRC_INTERNAL_TYPES_H_ | 6 #define SANDBOX_WIN_SRC_INTERNAL_TYPES_H_ |
| 7 | 7 |
| 8 namespace sandbox { | 8 namespace sandbox { |
| 9 | 9 |
| 10 const wchar_t kNtdllName[] = L"ntdll.dll"; | 10 const wchar_t kNtdllName[] = L"ntdll.dll"; |
| 11 const wchar_t kKerneldllName[] = L"kernel32.dll"; | 11 const wchar_t kKerneldllName[] = L"kernel32.dll"; |
| 12 const wchar_t kKernelBasedllName[] = L"kernelbase.dll"; |
| 12 | 13 |
| 13 // Defines the supported C++ types encoding to numeric id. Like a poor's man | 14 // Defines the supported C++ types encoding to numeric id. Like a poor's man |
| 14 // RTTI. Note that true C++ RTTI will not work because the types are not | 15 // RTTI. Note that true C++ RTTI will not work because the types are not |
| 15 // polymorphic anyway. | 16 // polymorphic anyway. |
| 16 enum ArgType { | 17 enum ArgType { |
| 17 INVALID_TYPE = 0, | 18 INVALID_TYPE = 0, |
| 18 WCHAR_TYPE, | 19 WCHAR_TYPE, |
| 19 ULONG_TYPE, | 20 ULONG_TYPE, |
| 20 UNISTR_TYPE, | 21 UNISTR_TYPE, |
| 21 VOIDPTR_TYPE, | 22 VOIDPTR_TYPE, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 66 |
| 66 private: | 67 private: |
| 67 union U { | 68 union U { |
| 68 void* vp; | 69 void* vp; |
| 69 unsigned __int32 i32; | 70 unsigned __int32 i32; |
| 70 } buffer_; | 71 } buffer_; |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace sandbox | 74 } // namespace sandbox |
| 74 | 75 |
| 75 #endif // SANDBOX_SRC_INTERNAL_TYPES_H_ | 76 #endif // SANDBOX_WIN_SRC_INTERNAL_TYPES_H_ |
| OLD | NEW |