Find Jobs
Hire Freelancers

Delphi: Save a registry key to .reg file

$100-250 USD

Cancelled
Posted almost 11 years ago

$100-250 USD

Paid on delivery
Develop in Delphi 2010 (or compatible), the following two functions: Function ExportRegistryKey(const Root : HKEY; const Key: String; var Output : TStringList; const QuitOnError : Boolean = True) : Integer; Function ExportRegistryEntry(const Root : HKEY; const Key: String; const EntryName : String; var Output : TStringList) : Integer; ExportRegistryKey saves the contents of the given registry key, including any possible sub-keys, to the given Output StringList in a format of a Windows .reg file. If QuitOnError = False, the function saves all the possible data to the Output list, ignoring any possible errors that occur while iterating and reading the registry. ExportRegistryEntry saves the name and value of the given registry entry to the given Output stringlist using the Windows .reg file format. The functions must be implemented using Windows API (you are not allowed to use the TRegistry or the Registry unit of Delphi), and must support the saving of all the known registry data types. If you need to write any helper functions, feel free to do so. In a case of error, the functions must return an error code. If the function runs without any error, it must return 0. The functions can assume that given Output Stringlist exists and that it already contains the necessary header information of the .reg file. However, the functions must not assume that the given Output Stringlist is empty. It may (or may not) contain data added there by previous ExportRegistryKey/Entry function calls. You can use Windows [login to view URL]'s File > Export feature for examples how .reg files are generated. If QuitOnError is True, the function quits in a case of error in reading the data. If one would call e.g. ExportRegistryKey on registry key "hkey_local_machine\software\foobar\" and use RegEdit's File > Export ... feature on the same key, the resulting .reg file's content should match the Output StringList generated by the ExportRegistryKey call.
Project ID: 4444826

About the project

2 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $130 USD for this job
User Avatar
I'm a Delphi expert, and can do this project easily.
$110 USD in 5 days
4.9 (41 reviews)
6.2
6.2
User Avatar
Hi! I can make it! I've done a similar project and ready to provide demo.
$150 USD in 3 days
5.0 (15 reviews)
4.7
4.7

About the client

Flag of THAILAND
Turku, Thailand
5.0
591
Payment method verified
Member since Mar 16, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.