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

  • SEARCH
  • Home
  • 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 3212886
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:53:05+00:00 2026-05-17T14:53:05+00:00

This can’t be right but it’s happening to me. I have the following function:

  • 0

This can’t be right but it’s happening to me. I have the following function:

private static bool KeyExists(RegistryKey key, string search)
{
    //GetSubKeyNames is busted...
    foreach (string subKey in key.GetSubKeyNames())
    {
        if (subKey.Trim().Equals(search.Trim()))
        {
            return true;
        }
    }
    return false;
}

If I put the line String[] names = key.GetSubKeyNames() and have a look in the debugger, I see that the listed names are not what I see in regedit. For example I have a piece of software installed which appears in the Wow6432Node subkey but it pops up if I search for it in the normal Software subkey. Any ideas?

Thanks,
brian

  • 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-05-17T14:53:05+00:00Added an answer on May 17, 2026 at 2:53 pm

    The Wow6432 key contains the registry keys that a 32-bit program sees. Project + Properties, Build tab, check your Platform target setting. It defaults to x86 in VS2010.

    Registry redirection can be changed but not with the .NET RegistryKey class. You’d have to pinvoke the registry API functions. More background info is available in the SDK.

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

Sidebar

Related Questions

I realize that this can be a matter of preference, but I have noticed
I'm pretty sure this can be done without going into a function but I
I don't think this can be done cleanly, but I'll ask anyway. I have
This can be done with user32.dll on Windows. But how can i get it
This can be done by making a new HTTP handler, but is there a
this can be asked with webform or winform... i have a .net program (exe)
I know this can seem a weird question but for me it would be
I know this can be done and i have seen it done using some
This can be a handy functionality to have in a program that works with
This can be applied to many different languages, but I am specifically working with

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.