Closed ghost closed 2 years ago
You are getting this error when compiling for 32 bit arch. The workaround is to use uint
instead of HANDLE
:
https://github.com/miere43/nim-registry/blob/devel/winregistry.nim#L7
Araq is using uint
here, https://github.com/nim-lang/Nim/blob/devel/lib/windows/registry.nim#L15
when i compile, there raises an error:
2147483648
meansHKEY_CLASSES_ROOT
, but I only useHKEY_CURRENT_USER
so, it seems like there are some errors in type
RegHandle
?