Skip to content

Commit

Permalink
Add a boolean to inform the architecture of the runing operating syst…
Browse files Browse the repository at this point in the history
…em (#16726)

Closes #16330

Summary of the issue:
As of 2024, Windows 10 is the last version to support 32-bit processors from Intel, AMD, and ARM, with Windows 11 supporintg 64-bit platforms only (AMD64 and ARM64). In 2025, consumer support for Windows 10 will end, with end of support for long-term servicing channel builds planned for 2032 (Windows 10 IoT Enterprise 2021 LTSC).
Originally, NVDA was written for 32-bit Python runtime. With impending end of support for 32-bit platforms, moving to 64-bit became a goal for NV Access and the NVDA community. According to #16304, a phased transition plan is proposed, with full transition tentatively scheduled for 2026.

Description of user facing changes
This way NVDA Core and add-ons can execute appropriate code paths. For example, when accessing Windows Registry, WoW64 paths must be used if running 32-bit NVDA on 64-bit Windows and vice versa.
  • Loading branch information
FelipeZanabria authored Jul 11, 2024
1 parent eeca3b8 commit 94785fe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion source/winAPI/constants.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2022 NV Access Limited
# Copyright (C) 2022-2024 NV Access Limited
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.

import enum
import os

import winVersion


IS_64_BIT_WINDOWS: bool = winVersion.getWinVer().processorArchitecture.endswith("64")
"""True if the Windows copy is 64bit"""

IS_64_BIT_NVDA = os.environ.get("PROCESSOR_ARCHITECTURE") == "AMD64"


class HResult(enum.IntEnum):
Expand Down

0 comments on commit 94785fe

Please sign in to comment.