Retrieving Registry Settings

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Retrieving Registry Settings

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:05 pm

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Retrieving Registry Settings

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:05 pm

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.
Attachments
2118_1.mth
(3.6 KiB) Downloaded 120 times


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 28 guests