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 8916317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:12:50+00:00 2026-06-15T05:12:50+00:00

Windows7 and Win64 is a new platform me, programming wise, so don’t know what

  • 0

Windows7 and Win64 is a new platform me, programming wise, so don’t know what happened, I save a key in windows registry in windows7 64bit with the following command, the problem is that the same code is able to return REG_OPENED_EXISTING_KEY return value, which means the key creation was success and that the function is able to read/open the key in subsequent calls, but when I try to find the key in the location in regedit.exe, I can’t it simply doesn’t show in the tree neither in HKLM_LOCAL_MACHINE/Software/MyProject nor in HKLM_LOCAL_MACHINE/Software/Wow6432Node/MyProject

Can anybody please clear what’s happening here ?

 HKEY hKey ;
 HKEY  key = HKEY_LOCAL_MACHINE;
 DWORD disValue ;
 string subKey = "Software\\MyProject\\";

 LONG retValue = RegCreateKeyEx( key, subKey.c_str(), 0, 0, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, 0, &hKey, &disValue ) ;
 if ( retValue == ERROR_SUCCESS )
 {
    if ( disValue == REG_CREATED_NEW_KEY )// new key created. This value will change to REG_OPENED_EXISTING_KEY if the key already existed, the function then simply open the key.
       return true;
    return false;
 }
  • 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-15T05:12:51+00:00Added an answer on June 15, 2026 at 5:12 am

    If your process is not running as Administrator, it will be unable to access HKLM\SOFTWARE. For compatibility reasons, Windows Vista and Windows 7 will then apply something called “registry virtualization“. This redirects accesses to HKLM\SOFTWARE to somewhere that your process can access. It does something similar for legacy processes that attempt to write to C:\Program Files.

    How does Windows decide that your application is “legacy” and needs this compatibility hack? You need an application manifest to tell Windows that your process is Windows Vista-aware and that you don’t want the hack.

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

Sidebar

Related Questions

There are some new integer types in the Windows API to support Win64. They
I have installed xampp on Windows7(64bit).I want to work with PHP, Apache and MySql.
I've installed (in this order): 64bit Windows7, 64bit Visual Studio 2008, Microsoft Free Web
I got a new machine whose OS is windows XP professional x64 edition. Which
I am a C++ developer, but don't have a strong background in Windows development.
I have downloaded cURL for Windows from here . I selected the Win64 -
How can I detect whether my Win32 / Win64 program was compiled with /SUBSYSTEM:WINDOWS,
Unit FastCodePatch.pas works in Win32 platform. Delphi XE2 supports Win64 platform, any ideas how
I have just installed the Platform SDK for Windows Server 2008 and .NET 3.5
I currently have a pom with platform specific profiles (e.g. linux 32bit, windows 64

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.