//go:build windows package runtimeprep import "golang.org/x/sys/windows" func replaceRuntimeAuthFile(source, destination string) error { sourcePath, err := windows.UTF16PtrFromString(source) if err != nil { return err } destinationPath, err := windows.UTF16PtrFromString(destination) if err != nil { return err } return windows.MoveFileEx( sourcePath, destinationPath, windows.MOVEFILE_REPLACE_EXISTING|windows.MOVEFILE_WRITE_THROUGH, ) }