MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / GetBitness

Method GetBitness

WinArk/ProcessInfoEx.cpp:139–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139int 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
157const std::wstring& ProcessInfoEx::GetDescription() const {
158 if (!_descChecked) {

Callers 3

InitProcessMethod · 0.80
OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80

Calls 1

IsWow64ProcessMethod · 0.80

Tested by

no test coverage detected