Delphi registry key permissions

0

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 software files responsible for scheduling tasks on the system, be easily changed through Regedit, would it be possible to change these same key editing permissions through Delphi?

    
asked by anonymous 16.08.2016 / 22:33

1 answer

1

Yes, it is possible but it is not so simple, and it is necessary for the user running the application to have permissions for both. The required permissions can vary with the key that you want to change, and you may need to have administrator permission.

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

Follow the link to the documentation:

link

It may be that in the Windows unit the required functions are not declared, it is necessary that you manually make the externals declaration of the functions that you will use.

    
16.08.2016 / 22:40