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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:46:57+00:00 2026-05-23T04:46:57+00:00

I work in c++builder with registry. Anybody know how to set program privileges for

  • 0

I work in c++builder with registry. Anybody know how to set program privileges for deleting keys in HKEY_LOCAL_MACHINE?

I try to use reg->deletekey();

And:

RegDelnode(HKEY_LOCAL_MACHINE, TEXT("Software\\Test"));

But not one of them worked.

  • 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-23T04:46:58+00:00Added an answer on May 23, 2026 at 4:46 am

    In very broad terms you need to have administrator privileges to write/delete HKLM.

    More specifically, you need some combination of the standard DELETE right and the registry-specific KEY_WRITE, KEY_SET_VALUE, KEY_CREATE_SUB_KEY rights. And maybe others, depending on exactly what you want to do. A common strategy is to have an administrator assign the appropriate rights for a specific registry key to a specific user, and from that time on the the nominated user can write/delete the key and its values without further recourse to the administrator.

    You can write your own administrator tool to assign these rights, or you can use Microsoft or third-party tools. Microsoft provide a tool called subinacl.exe at http://www.microsoft.com/downloads/en/details.aspx?familyid=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en.

    To assign rights in an admin tool of your own devising, check out the Windows API functions SetSecurityInfo and SetEntriesInAcl. To find the specific rights you need, browse the documentation for RegDeleteKey.

    It’s somewhat tricky to get this right, but that’s because it’s a sensitive and important topic and so I think you just have to roll up your sleeves and get stuck in. For example, the order of ACEs in an ACL is important, and there’s a difference between REVOKE_ACCESS and DENY_ACCESS.

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

Sidebar

Related Questions

Why doesn't UITableViewCell background color work (set in interface builder)? I note from some
I am try to use Sandcastle Help File Builder, but can't quite get it
as you know Final builder is an outstanding build automation program, i want to
Our development team work with Borland C++ Builder 6 and CodeGear C++ Builder 2007
I am using Interface Builder to work on NIBs and one of the NIBs
I am trying to get the following example to work in Flash Builder 4:
I recently learned how to work with API's in Flash Builder. So I made
I'm trying to understand how packages and dependencies work with Adobe Flash Builder 4.
I am trying to use trace() in flash builder 4 - but it doesn't
Events work much like sequences in F#. You can use sequence expressions with sequences.

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.