$setting working on Windows registry
Author: gianni.sandigliano@unifacesolutions.com (gianni)
I am trying to use $setting to write the Windows registry (Topic=REGDATA) to adapt a connection between a Uniface application and another piece of software but I feel I am lost into the reign of 32bit into 64bit near the VirtualStore. :-) :-) :-) My Windows machine is 64bit while Uniface installed is 32bit; the other software I should interface with is 64bit because on a 64bit machine could only be installed the 64bit version. While trying to read the 64bit part of the registry with my 32bit Uniface application everything is OK. The tricky part is: I would like to change a registry key used from the 64bit application while executing the 32bit application but I only get back $procerror = -1118. I've dived into Microsoft docs and googled a lot but I did not reached a definitive answer. My gotfeel tell me "It is not possible!" but before giving up looking for other options I would like to ask to Unifacers: is this update possible? If NO, which is the issue? could it become possible: - using Uniface 64bit? - having admin rights? ...or it is simply not possible! One side question: examples into Uniface documentation (current ULibrary or UnifaceInfo online doc) about $setting usage with Topic=REGDATA sometimes uses the syntax: $setting("", "HKEY_LOCAL_MACHINE\\TheFullPath\\keyName", "REGDATA") = value while in other cases I've seen used square brackets, like this: $setting("", "[HKEY_LOCAL_MACHINE\\TheFullPath]keyName", "REGDATA") = value Are both syntaxes correct? Thanks in advance for any input. Best Regards, Gianni




