Win32 指微软 Windows 平台上的 32 位应用程序编程接口(API)与编程环境,通常包括 Windows 核心系统调用、窗口/消息机制、图形界面(GUI)、文件与进程管理等。也常用来泛指“传统桌面 Windows API 编程”(与 .NET、UWP 等相对)。此外,Win32 也可作为“32 位 Windows 程序/子系统”的简称。
/ˌwɪn ˌθɜːrti ˈtuː/
I wrote a small Win32 app to open a window and handle clicks.
我写了一个小型的 Win32 程序,用来打开窗口并处理点击事件。
Many legacy enterprise tools still rely on Win32 APIs for deep system integration.
许多遗留的企业工具仍依赖 Win32 API 来实现更深度的系统级集成。
Win32 = Win(Windows 的缩写)+ 32(32 位架构)。这一称呼在 1990 年代随 Windows NT 与 Windows 95 等系统的普及而广泛使用,用来区分早期的 Win16(16 位 Windows API)以及后来出现的 64 位环境(常称 Win64)。尽管现代 Windows 以 64 位为主,“Win32”仍常被用来指代经典桌面 API 体系。