Hi Nils,

I tested this in DataFlex 20.0 and I get the same results as in 19.1 when I compile in 32 bit. When I compile in 64 bit, just using KEY_READ works fine.

This is due to how Windows handles the Registry when running 32 vs 64 bit programs. Windows uses Registry Redirection when running 32 bit programs on 64 bit operating systems.

"The registry redirector isolates 32-bit and 64-bit applications by providing separate logical views of certain portions of the registry on WOW64. The registry redirector intercepts 32-bit and 64-bit registry calls to their respective logical registry views and maps them to the corresponding physical registry location. The redirection process is transparent to the application. Therefore, a 32-bit application can access registry data as if it were running on 32-bit Windows even if the data is stored in a different location on 64-bit Windows."

Source: https://docs.microsoft.com/en-us/win...try-redirector

We are also going to improve DataFlex by defining the missing constants and explaining this in the documentation.