advapi32 regCloseKey on 64-bit

Forums for specific tips, techniques and example code
concord
Posts: 47
Joined: Wed Mar 23, 2011 2:07 pm

advapi32 regCloseKey on 64-bit

Postby concord » Fri Sep 08, 2017 9:01 am

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?

concord
Posts: 47
Joined: Wed Mar 23, 2011 2:07 pm

Re: advapi32 regCloseKey on 64-bit

Postby concord » Fri Sep 08, 2017 11:46 am

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.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 16 guests