wireguard-go/tun/wintun
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
..
guid wintun: fix GUID leading zero padding 2019-05-09 12:16:21 +02:00
netshell wintun: rename device using undocumented API that netsh.exe uses 2019-04-01 12:04:44 +02:00
registry wintun: registry: revise value reading 2019-05-11 17:14:37 +02:00
setupapi setupapi: safer aliasing of slice types 2019-05-03 09:34:00 +02:00
wintun_windows.go wintun: registry: revise value reading 2019-05-11 17:14:37 +02:00