Retrieving Registry Settings
Posted: Fri Aug 07, 2009 12:05 pm
by ConvertFromOldNGs
by MichaelHill >> Tue, 5 Feb 2002 2:44:37 GMT
Afternoon All,
Has anyone retrieved values from the registry? If so how?
Thanks for the help.
Michael Hill
Gallagher Group Ltd
Re: Retrieving Registry Settings
Posted: Fri Aug 07, 2009 12:05 pm
by ConvertFromOldNGs
by cnwdad1 >> Tue, 5 Feb 2002 3:15:06 GMT
Michael,
Set up the following External Functions for te advapi32 library:
a) cnEcRegCloseKey(hKey : Integer) : Integer is RegCloseKey in advapi32;
b) cnEcRegOpenKeyA(hKey:Integer; sKey:String[256]; result:Integer output):Integer is RegOpenKeyA in advapi32;
c) cnEcRegOpenKeyW(hKey:Integer; sKey:String[256]; result:Integer output):Integer is RegOpenKeyW in advapi32;
d) cnEcRegQueryValueExA(hKey:Integer; sKey:String[256] io; reserved:Integer; type:Integer; data:Binary[256] io; length:Integer io):Integer is RegQueryValueExA in advapi32;
e) cnEcWinRegQueryValueExW(hKey:Integer; sKey:String[256] io; reserved:Integer; type:Integer; data:Binary[256] io; length:Integer io):Integer is RegQueryValueExW in advapi32;
Once you've done this, take a look at the attached method to see how they're used.
regards,
darrell.