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