MCPcopy Create free account
hub / github.com/Kitware/CMake / Is64BitWindows

Function Is64BitWindows

Source/cmWindowsRegistry.cxx:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57#if defined(_WIN32) && !defined(__CYGWIN__)
58bool 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
71cm::optional<cmWindowsRegistry::ValueType> ToValueType(DWORD type)

Callers 2

OpenKeyMethod · 0.85
ComputeViewsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…