OLD | NEW |
1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
13 // limitations under the License. | 13 // limitations under the License. |
14 | 14 |
15 #ifndef CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_ | 15 #ifndef CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_ |
16 #define CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_ | 16 #define CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_ |
17 | 17 |
18 #include <windows.h> | 18 #include <windows.h> |
19 | 19 |
20 namespace crashpad { | 20 namespace crashpad { |
21 namespace process_types { | 21 namespace process_types { |
22 | 22 |
23 namespace internal { | 23 namespace internal { |
24 | 24 |
25 struct Traits32 { | 25 struct Traits32 { |
26 using Pad = DWORD; | 26 using Pad = DWORD; |
27 using UnsignedIntegral = DWORD; | 27 using UnsignedIntegral = DWORD; |
| 28 using Byte = BYTE; |
28 using Pointer = DWORD; | 29 using Pointer = DWORD; |
29 }; | 30 }; |
30 | 31 |
31 struct Traits64 { | 32 struct Traits64 { |
32 using Pad = DWORD64; | 33 using Pad = DWORD64; |
33 using UnsignedIntegral = DWORD64; | 34 using UnsignedIntegral = DWORD64; |
| 35 using Byte = BYTE; |
34 using Pointer = DWORD64; | 36 using Pointer = DWORD64; |
35 }; | 37 }; |
36 | 38 |
37 } // namespace internal | 39 } // namespace internal |
38 | 40 |
39 //! \{ | 41 //! \{ |
40 | 42 |
41 //! \brief Selected structures from winternl.h, ntddk.h, and `dt ntdll!xxx`, | 43 //! \brief Selected structures from winternl.h, ntddk.h, and `dt ntdll!xxx`, |
42 //! customized to have both x86 and x64 sizes available. | 44 //! customized to have both x86 and x64 sizes available. |
43 //! | 45 //! |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 using EXCEPTION_POINTERS64 = EXCEPTION_POINTERS<internal::Traits64>; | 445 using EXCEPTION_POINTERS64 = EXCEPTION_POINTERS<internal::Traits64>; |
444 | 446 |
445 #pragma pack(pop) | 447 #pragma pack(pop) |
446 | 448 |
447 //! \} | 449 //! \} |
448 | 450 |
449 } // namespace process_types | 451 } // namespace process_types |
450 } // namespace crashpad | 452 } // namespace crashpad |
451 | 453 |
452 #endif // CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_ | 454 #endif // CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_ |
OLD | NEW |