OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (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 |
| 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 // See the License for the specific language governing permissions and |
| 13 // limitations under the License. |
| 14 |
| 15 #ifndef CRASHPAD_COMPAT_NON_WIN_WINNT_H_ |
| 16 #define CRASHPAD_COMPAT_NON_WIN_WINNT_H_ |
| 17 |
| 18 //! \file |
| 19 |
| 20 //! \anchor VER_SUITE_x |
| 21 //! \name VER_SUITE_* |
| 22 //! |
| 23 //! \brief Installable product values for MINIDUMP_SYSTEM_INFO::SuiteMask. |
| 24 //! \{ |
| 25 #define VER_SUITE_SMALLBUSINESS 0x0001 |
| 26 #define VER_SUITE_ENTERPRISE 0x0002 |
| 27 #define VER_SUITE_BACKOFFICE 0x0004 |
| 28 #define VER_SUITE_COMMUNICATIONS 0x0008 |
| 29 #define VER_SUITE_TERMINAL 0x0010 |
| 30 #define VER_SUITE_SMALLBUSINESS_RESTRICTED 0x0020 |
| 31 #define VER_SUITE_EMBEDDEDNT 0x0040 |
| 32 #define VER_SUITE_DATACENTER 0x0080 |
| 33 #define VER_SUITE_SINGLEUSERTS 0x0100 |
| 34 #define VER_SUITE_PERSONAL 0x0200 |
| 35 #define VER_SUITE_BLADE 0x0400 |
| 36 #define VER_SUITE_EMBEDDED_RESTRICTED 0x0800 |
| 37 #define VER_SUITE_SECURITY_APPLIANCE 0x1000 |
| 38 #define VER_SUITE_STORAGE_SERVER 0x2000 |
| 39 #define VER_SUITE_COMPUTE_SERVER 0x4000 |
| 40 #define VER_SUITE_WH_SERVER 0x8000 |
| 41 //! \} |
| 42 |
| 43 //! \brief The maximum number of exception parameters present in the |
| 44 //! MINIDUMP_EXCEPTION::ExceptionInformation array. |
| 45 #define EXCEPTION_MAXIMUM_PARAMETERS 15 |
| 46 |
| 47 //! \anchor PROCESSOR_ARCHITECTURE_x |
| 48 //! \name PROCESSOR_ARCHITECTURE_* |
| 49 //! |
| 50 //! \brief CPU type values for MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. |
| 51 //! |
| 52 //! \sa crashpad::MinidumpCPUArchitecture |
| 53 //! \{ |
| 54 #define PROCESSOR_ARCHITECTURE_INTEL 0 |
| 55 #define PROCESSOR_ARCHITECTURE_MIPS 1 |
| 56 #define PROCESSOR_ARCHITECTURE_ALPHA 2 |
| 57 #define PROCESSOR_ARCHITECTURE_PPC 3 |
| 58 #define PROCESSOR_ARCHITECTURE_SHX 4 |
| 59 #define PROCESSOR_ARCHITECTURE_ARM 5 |
| 60 #define PROCESSOR_ARCHITECTURE_IA64 6 |
| 61 #define PROCESSOR_ARCHITECTURE_ALPHA64 7 |
| 62 #define PROCESSOR_ARCHITECTURE_MSIL 8 |
| 63 #define PROCESSOR_ARCHITECTURE_AMD64 9 |
| 64 #define PROCESSOR_ARCHITECTURE_IA32_ON_WIN64 10 |
| 65 #define PROCESSOR_ARCHITECTURE_NEUTRAL 11 |
| 66 #define PROCESSOR_ARCHITECTURE_UNKNOWN 0xffff |
| 67 //! \} |
| 68 |
| 69 //! \anchor PF_x |
| 70 //! \name PF_* |
| 71 //! |
| 72 //! \brief CPU feature values for |
| 73 //! CPU_INFORMATION::OtherCpuInfo::ProcessorFeatures. |
| 74 //! |
| 75 //! \{ |
| 76 #define PF_FLOATING_POINT_PRECISION_ERRATA 0 |
| 77 #define PF_FLOATING_POINT_EMULATED 1 |
| 78 #define PF_COMPARE_EXCHANGE_DOUBLE 2 |
| 79 #define PF_MMX_INSTRUCTIONS_AVAILABLE 3 |
| 80 #define PF_PPC_MOVEMEM_64BIT_OK 4 |
| 81 #define PF_ALPHA_BYTE_INSTRUCTIONS 5 |
| 82 #define PF_XMMI_INSTRUCTIONS_AVAILABLE 6 |
| 83 #define PF_3DNOW_INSTRUCTIONS_AVAILABLE 7 |
| 84 #define PF_RDTSC_INSTRUCTION_AVAILABLE 8 |
| 85 #define PF_PAE_ENABLED 9 |
| 86 #define PF_XMMI64_INSTRUCTIONS_AVAILABLE 10 |
| 87 #define PF_SSE_DAZ_MODE_AVAILABLE 11 |
| 88 #define PF_NX_ENABLED 12 |
| 89 #define PF_SSE3_INSTRUCTIONS_AVAILABLE 13 |
| 90 #define PF_COMPARE_EXCHANGE128 14 |
| 91 #define PF_COMPARE64_EXCHANGE128 15 |
| 92 #define PF_CHANNELS_ENABLED 16 |
| 93 #define PF_XSAVE_ENABLED 17 |
| 94 #define PF_ARM_VFP_32_REGISTERS_AVAILABLE 18 |
| 95 #define PF_ARM_NEON_INSTRUCTIONS_AVAILABLE 19 |
| 96 #define PF_SECOND_LEVEL_ADDRESS_TRANSLATION 20 |
| 97 #define PF_VIRT_FIRMWARE_ENABLED 21 |
| 98 #define PF_RDWRFSGSBASE_AVAILABLE 22 |
| 99 #define PF_FASTFAIL_AVAILABLE 23 |
| 100 #define PF_ARM_DIVIDE_INSTRUCTION_AVAILABLE 24 |
| 101 #define PF_ARM_64BIT_LOADSTORE_ATOMIC 25 |
| 102 #define PF_ARM_EXTERNAL_CACHE_AVAILABLE 26 |
| 103 #define PF_ARM_FMAC_INSTRUCTIONS_AVAILABLE 27 |
| 104 #define PF_RDRAND_INSTRUCTION_AVAILABLE 28 |
| 105 //! \} |
| 106 |
| 107 //! \anchor IMAGE_DEBUG_MISC_x |
| 108 //! \name IMAGE_DEBUG_MISC_* |
| 109 //! |
| 110 //! Data type values for IMAGE_DEBUG_MISC::DataType. |
| 111 //! \{ |
| 112 |
| 113 //! \brief A pointer to a `.dbg` file. |
| 114 //! |
| 115 //! IMAGE_DEBUG_MISC::Data will contain the path or file name of the `.dbg` file |
| 116 //! associated with the module. |
| 117 #define IMAGE_DEBUG_MISC_EXENAME 1 |
| 118 |
| 119 //! \} |
| 120 |
| 121 //! \brief Miscellaneous debugging record. |
| 122 //! |
| 123 //! This structure is referenced by MINIDUMP_MODULE::MiscRecord. It is obsolete, |
| 124 //! superseded by the CodeView record. |
| 125 struct IMAGE_DEBUG_MISC { |
| 126 //! \brief The type of data carried in the #Data field. |
| 127 //! |
| 128 //! This is a value of \ref IMAGE_DEBUG_MISC_x "IMAGE_DEBUG_MISC_*". |
| 129 uint32_t DataType; |
| 130 |
| 131 //! \brief The length of this structure in bytes, including the entire #Data |
| 132 //! field and its `NUL` terminator. |
| 133 //! |
| 134 //! \note The Windows documentation states that this field is rounded up to |
| 135 //! nearest nearest 4-byte multiple. |
| 136 uint32_t Length; |
| 137 |
| 138 //! \brief The encoding of the #Data field. |
| 139 //! |
| 140 //! If this field is `0`, #Data contains narrow or multibyte character data. |
| 141 //! If this field is `1`, #Data is UTF-16-encoded. |
| 142 //! |
| 143 //! On Windows, with this field set to `0`, #Data will be encoded in the code |
| 144 //! page of the system that linked the module. On other operating systems, |
| 145 //! UTF-8 may be used. |
| 146 uint8_t Unicode; |
| 147 |
| 148 uint8_t Reserved[3]; |
| 149 |
| 150 //! \brief The data carried within this structure. |
| 151 //! |
| 152 //! For string data, this field will be `NUL`-terminated. If #Unicode is `1`, |
| 153 //! this field is UTF-16-encoded, and will be terminated by a UTF-16 `NUL` |
| 154 //! code unit (two `NUL` bytes). |
| 155 uint8_t Data[1]; |
| 156 }; |
| 157 |
| 158 //! \anchor VER_NT_x |
| 159 //! \name VER_NT_* |
| 160 //! |
| 161 //! \brief Operating system type values for MINIDUMP_SYSTEM_INFO::ProductType. |
| 162 //! |
| 163 //! \sa crashpad::MinidumpOSType |
| 164 //! \{ |
| 165 #define VER_NT_WORKSTATION 1 |
| 166 #define VER_NT_DOMAIN_CONTROLLER 2 |
| 167 #define VER_NT_SERVER 3 |
| 168 //! \} |
| 169 |
| 170 //! \anchor VER_PLATFORM_x |
| 171 //! \name VER_PLATFORM_* |
| 172 //! |
| 173 //! \brief Operating system family values for MINIDUMP_SYSTEM_INFO::PlatformId. |
| 174 //! |
| 175 //! \sa crashpad::MinidumpOS |
| 176 //! \{ |
| 177 #define VER_PLATFORM_WIN32s 0 |
| 178 #define VER_PLATFORM_WIN32_WINDOWS 1 |
| 179 #define VER_PLATFORM_WIN32_NT 2 |
| 180 //! \} |
| 181 |
| 182 #endif // CRASHPAD_COMPAT_NON_WIN_WINNT_H_ |
OLD | NEW |