wireguard-go/tun/wintun/registry
Simon Rozman 6c1b66802f wintun: registry: revise value reading
- Make getStringValueRetry() reusable for reading any value type. This
  merges code from GetIntegerValueWait().
- expandString() >> toString() and extend to support REG_MULTI_SZ
  (to return first value of REG_MULTI_SZ). Furthermore, doing our own
  UTF-16 to UTF-8 conversion works around a bug in windows/registry's
  GetStringValue() non-zero terminated string handling.
- Provide toInteger() analogous to toString()
- GetStringValueWait() tolerates and reads REG_MULTI_SZ too now. It
  returns REG_MULTI_SZ[0], making GetFirstStringValueWait() redundant.

Signed-off-by: Simon Rozman <simon@rozman.si>
2019-05-11 17:14:37 +02:00
..
mksyscall.go wintun: wait for interface registry key on device creation 2019-05-10 16:43:58 +02:00
registry_windows.go wintun: registry: revise value reading 2019-05-11 17:14:37 +02:00
registry_windows_test.go wintun: registry: replace REG_NOTIFY with NOTIFY 2019-05-10 18:09:20 +02:00
zregistry_windows.go wintun: wait for interface registry key on device creation 2019-05-10 16:43:58 +02:00