将驱动程序移植到 64 位 Windows

64 位版本的 Windows 旨在使开发人员能够将单个源代码库用于其 32 位和 64 位 Windows 应用程序。 在很大程度上,对于 32 位和 64 位 Windows 驱动程序也是如此。

对于用户模式应用程序,64 位 Windows 包括 Windows 上的 Windows (WOW64) thunking 层 ,使 32 位应用程序能够在 64 位版本的 Windows 上执行 (,) 性能下降。 它通过截获 32 位函数调用,并在转换到 64 位内核之前根据需要将指针精度参数类型转换为固定精度类型来执行此操作。 此转换过程称为 thunking

注意 此 thunking 仅适用于 32 位 应用程序;64 位版本的 Windows 不支持 32 位 驱动程序