tregistry.nim 382 B

12345678910111213141516
  1. discard """
  2. disabled: "unix"
  3. matrix: "--gc:refc; --gc:arc"
  4. """
  5. when defined(windows):
  6. import std/registry
  7. block: # bug #14010
  8. let path = "Environment"
  9. let key = "D20210328T202842_key"
  10. let val = "D20210328T202842_val"
  11. let handle = HKEY_CURRENT_USER
  12. setUnicodeValue("Environment", key, val, handle)
  13. doAssert getUnicodeValue(path, key, handle) == val