func utf16FromString(str string) []uint16 {
	res, err := syscall.UTF16FromString(str)
	if err != nil {
		return []uint16{}
	}
	return res
}
utf16FromString creates a UTF16 char array from a string.
package wincred
import (
	"encoding/binary"
	"reflect"
	"time"
	"unsafe"
	syscall "golang.org/x/sys/windows"
)
func utf16ToByte(wstr []uint16) (result []byte) {
	result = make([]byte, len(wstr)*2)
	for i := range wstr {
		binary.LittleEndian.PutUint16(result[(i*2):(i*2)+2], wstr[i])
	}
	return
}