Running 32-bit apps in x64 Windows: Registry redirection

來源:互聯網
上載者:User

Brien M. Posey, Contributor
10.04.2006

When a 32-bit application is run on top of an x64 version of Windows, the WOW64 emulator redirects the Program Files folder and calls to DLL files. But these aren't the only things that are redirected. The WOW64 emulator also redirects certain portions of the Windows registry. This article will show you how registry redirection works.

The Windows registry is a file that contains the majority of the configuration data for the Windows operating system. The registry contains a huge variety of settings, but the configuration data that the WOW64 emulator is most interested in is a list of all of the Component Object Model (COM) objects that have been registered by the operating system.

COM provides a way for applications (.exe files) and libraries (.DLL files) to make themselves accessible to any COM-compliant application or script. COM makes it possible for someone with minimal programming skills to write an application or script that interacts with Windows. The person writing the application or script can do so without having to learn a programming language such as C++, and without having to learn all of the Windows application programming interfaces (APIs).

Windows is designed so that all available COM objects are listed within the registry. Keep in mind, though, that 32-bit code must remain completely isolated from 64-bit code. As such, 32-bit and 64-bit COM objects are stored in two different parts of the registry.

Before I show you how and where these COM objects are registered, you need to understand the difference between in-process and out-of-process servers. In Microsoft speak, a COM server is an object that makes its functionality available through COM. In contrast, the applications or scripts that make use of that functionality are called COM clients.

An in-process server usually refers to libraries (DLL files). Libraries are called in-process servers because they execute as a part of the same process as the application or script that cal

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.