| 56 | |
| 57 | #if defined(_WIN32) && !defined(__CYGWIN__) |
| 58 | bool Is64BitWindows() |
| 59 | { |
| 60 | # if defined(_WIN64) |
| 61 | // 64-bit programs run only on Win64 |
| 62 | return true; |
| 63 | # else |
| 64 | // 32-bit programs run on both 32-bit and 64-bit Windows, so we must check. |
| 65 | BOOL isWow64 = false; |
| 66 | return IsWow64Process(GetCurrentProcess(), &isWow64) && isWow64; |
| 67 | # endif |
| 68 | } |
| 69 | |
| 70 | // Helper to translate Windows registry value type to enum ValueType |
| 71 | cm::optional<cmWindowsRegistry::ValueType> ToValueType(DWORD type) |
no outgoing calls
no test coverage detected
searching dependent graphs…