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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:47:50+00:00 2026-05-28T05:47:50+00:00

I do not understand. There is a window registry key of firebird server I

  • 0

I do not understand. There is a window registry key of firebird server I want to check if it exists. The key exists but the function returns false.
What is wrong? I’m using Windows 7 64x with delphi 2010.

Tks.
Davis.

procedure x;
  var
    reg:TRegistry;
begin

  reg := TRegistry.Create;
  reg.RootKey := HKEY_LOCAL_MACHINE;

  if reg.OpenKey('\SOFTWARE\Firebird Project\Firebird Server\Instances',false)=true then
  begin
    ShowMessage('Key exists');
  end;

end;
  • 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-28T05:47:50+00:00Added an answer on May 28, 2026 at 5:47 am

    The most likely reason is that you have opened the key requesting write access but on Windows 7 under UAC, users do not, by default, have write access to HKLM. Solve this by passing KEY_READ to the TRegistry constructor, or by using OpenKeyReadOnly rather than OpenKey.

    The next most likely explanation is that you have the 64 bit Firebird server installed. But your 32 bit program reads from the 32 bit registry and so does not find the keys from the 64 bit Firebird. See Registry Redirector to learn more about the two different registry views. See Accessing an Alternate Registry View for details on how to read the 64 bit registry from a 32 bit process. Translated into Delphi, you would need to include KEY_WOW64_64KEY in the Access flags. Again, you can pass this flag to the TRegistry constructor which may be more convenient.

    So, in summary, if you are looking for a 32 bit server, create the registry object like this

    reg := TRegistry.Create(KEY_READ);
    

    and if your Firebird server is 64 bit then use this

    reg := TRegistry.Create(KEY_READ or KEY_WOW64_64KEY);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is something I do not understand with the Apps Script GUI Builder. I
i I can not understand one thing.. On my website there is a button
I now understand that the following code will not work because I'm assigning window.onload
There is a difference in the description on MSDN, however, I do not understand
EDIT: I understand there is keyboard-quit (which is normally bound to C-g); but I'm
I understand each element that exists on the View/Window has a tag that uniquely
i can not understand this line {helpers:CommandBinding AddCommand} the code is here : <Window.InputBindings>
I do not understand the following example, let's say I have these functions: #
I am learning Java, theres one thing I do not understand.. in the main
I simply could not understand why the following code does not work. What could

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.