win32 位应用程序会在 64 位服务器上运行吗? [英] Will win32 bit applications run on a 64 bit server?

查看:46
本文介绍了win32 位应用程序会在 64 位服务器上运行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的场景:我工作的公司将应用程序部署到 32 位 Windows 2003 服务器,他们希望迁移到 64 位 Windows 2008 服务器.已经注意到这些 32 位定制开发的应用程序不会在 64 位机器上运行.我不知道这一点.

Here's my scenario: the company I work has applications deployed to a 32bit Windows 2003 server and they want to move to a Windows 2008 Server that is 64 bit. It has been noted that these 32bit custom developed applications will not run on a 64 bit machine. I was not aware of this.

我一直认为 32 位软件可以在 64 位操作系统上运行并且只使用 32 位地址.另一个 64 位软件不能在 32 位操作系统上运行.在 64 位上,确实必须创建 64 位软件,但仍然可以创建专为 32 位机器设计的软件.

I have always thought that 32bit software CAN run on a 64 bit OS and just use the 32bit address. A 64 bit software on the other cannot run on a 32 bit OS. On a 64 bit, one does have to create 64 bit software but can and still also create software that is designed for 32 bit machines.

有人可以详细说明一下吗?

Can someone please elaborate on this?

推荐答案

一般来说,32 位应用程序将在 64 位 Windows 下运行(这在技术上称为 WOW64 - Windows On Windows).这适用于迄今为止的所有 64 位 Windows 版本,包括服务器.

In general, 32-bit applications will run under a 64-bit Windows (This is technically called WOW64 - Windows On Windows). This applies to all 64-bit Windows version to date, including Server.

WOW64 进程在任务管理器中被标记为 *32,例如:chrome.exe *32.Sysinternals 的 Process Explorer 有一个单独的列:图像类型(64 位与 32 位).

WOW64 processes are marked in task manager with *32, For example: chrome.exe *32. Sysinternals' Process Explorer has a separate column for this: Image Type (64 vs 32-bit).

如果应用具有托管在其他进程中的组件,那么这些组件必须适应它们所在的进程.示例:

If the app has components hosted inside other processes, then those components must accommodate processes they're hosted in. Examples:

  • 外壳扩展托管在 explorer.exe 中,其位数与操作系统的位数相匹配.因此,您应该同时编译 32 位和 64 位扩展,并在安装时注册与操作系统位数匹配的扩展.
  • 内核模式驱动程序托管在内核中,其位数也与操作系统的位数相匹配.因此,上述内容适用.
  • Winsock LSP(分层服务提供商)托管在所有进程中,包括 64 位(本机)和 32 位 (WOW64).因此,您应该在 32 位和 64 位中编译 LSP,并在安装期间在各自的目录中注册.

还有关于文件重定向(System32/SysWOW64/SysNative)和注册表重定向(Wow6432Node)的注意事项,我就不赘述了.

There are also considerations regarding file redirection (System32 / SysWOW64 / SysNative) and registry redirection (Wow6432Node), which I will not go into.

这篇关于win32 位应用程序会在 64 位服务器上运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆