Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8788095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:05:05+00:00 2026-06-13T22:05:05+00:00

The code I’m working on has both 32-bit and 64-bit components and they need

  • 0

The code I’m working on has both 32-bit and 64-bit components and they need to share information in the registry. Because of this, I’m trying to control registry redirection when using the NtOpenKey function (the user-mode equivalent of ZwOpenKey) – I need to call this function from 64-bit code but access the 32-bit registry. (The code used to be 32-bit only and now it’s getting upgraded to 64-bit so I’d prefer using as much of the existing code as possible – this is to say I’d prefer not to rewrite everything to use RegOpenKeyEx.)

Naturally, NtOpenKey doesn’t recognize the KEY_WOW64_32KEY access flag, unlike high-level registry functions so there’s no way to specify redirection.

At this point the only solution I can think of is to explicitly hardcode Wow6432Node in the key names when accessing the registry; something like:

\Registry\Machine\Software\Wow6432Node\MyCompanyKey\MyKey

Unfortunately, this is more of a hack and it’s specifically discouraged by Microsoft.

Is there a correct solution to this problem? Reading through the documentation didn’t help and I couldn’t find any relevant search results either.

Edit: just a bit of extra detail: I need to support Windows Server 2003 32-bit/64-bit, Windows 7/8 and Windows Server 2008 32-bit/64-bit. (Basically all server flavors starting with Windows Server 2003 + Windows 7 and over.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:05:06+00:00Added an answer on June 13, 2026 at 10:05 pm

    The native API does not offer an equivalent to KEY_WOW64_32KEY. Your options are:

    1. Use the Win32 API.
    2. Stick with native API and hard code the path.
    3. Mix the Win32 and native APIs. Use the Win32 API to open HKLM\Software with KEY_WOW64_32KEY. Then call NtQueryKey to find out the native name of the key. And then use the native API from there on. This gets around your objection to hard coding.

    Option 3 sounds plausible, but I’ve never called NtQueryKey and can’t even be sure that the idea works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code first. This is what I'm trying to do. I'm close, but I think
Code sample for my question: IList<TestDataAnimal> testDataFromDb = this.db.TestDataAnimals.Include(t => t.TestType).Include(t => t.Visit).Include(t =>
Basically, what I'm trying to create is a page of div tags, each has
Code: export class ViewModel { public users: knockout.koObservableArrayBase; constructor () { this.users = ko.observableArray([]);
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Code goes first: void foo(int x) { void bar(int); //is this forward-decl legal? bar(x);
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Code is like this $.get( //'index.php?route=sale/order/infoforhome&token=<?php echo $token; ?>', 'index.php?route=common/home/orderinfo&token=<?php echo $token; ?>', {
Code below is not working as expected to detect if it is in design

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.