Page 1 of 1

advapi32 regCloseKey on 64-bit

Posted: Fri Sep 08, 2017 9:01 am
by concord
Just starting to play with 64bit Jade, I'm killing my client with a getRegValue method, it uses advapi32 calls.

All actually looks OK until I hit the epilog:

call regCloseKey(openKey)

Do I need a function from a different dll?
Or a 64 version of the call perhaps with Integer64 params instead of Integer?

Re: advapi32 regCloseKey on 64-bit

Posted: Fri Sep 08, 2017 11:46 am
by concord
Looks to have been an simple as just creating three new 64-bit versions of the external function calls:

regOpenKeyA64
regQueryValueExA64
regCloseKey64(iKey : Integer64):Integer64 is "RegCloseKey" in advapi32;

Swapping out the Integer for Integer64, then detecting the architecture and using these for 64bit.