Delphi: Change permissions of a registry key

进行中 已发布的 Mar 28, 2016 货到付款
进行中 货到付款

Open Windows Registry Editor ([url removed, login to view]) and go to HKEY_CLASSES_ROOT\DesktopBackground\Shell\Display. Try to delete that key. You cannot, as Windows shows an error message "Cannot delete key" or "Access denied". You can delete the key, if you adjust its permissions (Right-Click key > Permissions) and then try to delete it.

Your job is to write a Delphi function that takes as an input a registry key path (e.g. "HKEY_CLASSES_ROOT\DesktopBackground\Shell\Display") and it fixes its permissions in a way the key can be deleted or modified (e.g. new entries added under that key).

In other words, I want to be able to run: FixRegPermissionsForKey('HKEY_CLASSES_ROOT\DesktopBackground\Shell\Display'); and after that I am able to delete the mentioned registry key with RegEdit.

The code must compile with Delphi 2010 and the code must work with Windows 7, 8, 8.1. and 10. The code must not require the use of any third party libraries or executables.

Delphi

项目ID: #10065467

关于项目

5个方案 远程项目 活跃的Apr 3, 2016

有5名威客正在参与此工作的竞标,均价$35/小时

augustogus

Good morning, I have a piece of code that shall work for you. I'm afk until tomorrow morning so I can test it on a Windows system if you're interested, I'll update you in few hours. Best regards, Augusto Pellis

$66USD 在1天里
(16条评论)
5.3
eLYTeam

My name is Mel and I'm member of eLYTeam. I'm interested in your project. I work with delphi many years ago and I have used the registry key in some of my projects. I can do the function rapidly and well. 更多

$30USD 在1天里
(27条评论)
4.7
DeadC0der

Hi there ^^ I'm delphi coder actually I used to deal with simillar jobs just like the one you have mentioned , I mean dealing with registry and files using either windows API functions or Delphi built-in classes and ob 更多

$30 USD 在3天内
(9条评论)
3.9
yeioso

My career has led me to specialize increasingly in the management and development of information system analysis, process optimization, reengineering source, over 13 years experience in developing applications of all k 更多

$25 USD 在10天内
(0条评论)
0.0
delphianaus

I have been a delphi programmer for over 20 years , i have the depth and knowledge to product code that works first time. I have experiance in multiple platforms of Delphi from early Delphi versions to more recent vers 更多

$25USD 在1天里
(0条评论)
0.0