6c1b66802f
- 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> |
||
---|---|---|
.. | ||
wintun | ||
helper_test.go | ||
operateonfd.go | ||
tun.go | ||
tun_darwin.go | ||
tun_freebsd.go | ||
tun_linux.go | ||
tun_openbsd.go | ||
tun_windows.go |