Delphi registry key permissions

Asked

Viewed 395 times

-1

Windows security settings often do not allow registry keys to be changed by the user. As is the case with the key: "HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows NT Currentversion Schedule Taskcache Tree" that manages the files of the software responsible for scheduling tasks on the system, the permissions of this key can be easily changed through Regedit, it would be possible to change these same key editing permissions through Delphi?

  • What’s your intention with that?

  • Validate my project at the FEBRACE science fair

1 answer

1

Yes, it is possible but it is not that simple, and it is necessary that the user running the application has permissions to do so. The required permissions may vary with the key you want to change, and may be required until you have administrator permission.

Check the specific MSDN documentation for this. The procedure itself is not simple and varies greatly with what you actually want to get.

Follow link to the documentation:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms724878(v=vs.85). aspx

It may be that in the unit Windows the necessary functions are not declared if you want, and you need to manually declare the externals of the functions you will use.

  • How can I implement this in Delphi or Lazarus?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.