Skip to Content
0
Former Member
Jul 11, 2016 at 12:56 PM

Can't use RegistryGet and RegistryKeys to access 64 bit registry

999 Views

I'm using PB 12.5.2 and since it's a 32 bit application, I imagine I can't use RegistryKeys and RegistryGet to read the 64 bit registry -- as also noted in this thread...

RegistryGet return -1 ? | SCN

I'm trying to use RegOpenKeyEx as described in this article, but with KEY_WOW64_64KEY (256) as the samDesired parameter, and I can't seen to get it to work...

SAP Sybase Forums - PowerBuilder - General Discussion - How do I determine type of Registry value

Here MSDN says that the KEY_WOW64_64KEY flag needs to be combined using the OR operator with the other flags in this table that either query or access registry values. Is it possible to pass KEY_WOW64_64KEY | KEY_QUERY_VALUE (256 OR 1)?

Registry Key Security and Access Rights (Windows)