| 137 | } |
| 138 | |
| 139 | int ProcessInfoEx::GetBitness() const { |
| 140 | if(_bitness==0){ |
| 141 | static SYSTEM_INFO si = { 0 }; |
| 142 | if (si.dwNumberOfProcessors == 0) |
| 143 | ::GetNativeSystemInfo(&si); |
| 144 | if (_process == nullptr) { |
| 145 | _bitness = si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL || si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_ARM ? 32 : 64; |
| 146 | } |
| 147 | else { |
| 148 | if (_process->IsWow64Process()) |
| 149 | _bitness = 32; |
| 150 | else |
| 151 | _bitness = si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL || si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_ARM ? 32 : 64; |
| 152 | } |
| 153 | } |
| 154 | return _bitness; |
| 155 | } |
| 156 | |
| 157 | const std::wstring& ProcessInfoEx::GetDescription() const { |
| 158 | if (!_descChecked) { |
no test coverage detected