func OpenRegKey(key registry.Key, path string, access uint32) (registry.Key, error) {
	fmt.Print("Opening key ")
	color.New(color.FgYellow).Printf("%s", path)
	fmt.Print("...")
	key, err := registry.OpenKey(registry.LOCAL_MACHINE, path, access)
	if err != nil {
		print.Error(err)
		return key, err
	}
	print.Ok()
	return key, nil
}
OpenRegKey opens a registry key
package windows
import (
	"fmt"
	"os"
	"strings"
	"syscall"
	"unsafe"
	"github.com/akyoto/color"
	"github.com/crazy-max/WindowsSpyBlocker/app/utils/print"
	"golang.org/x/sys/windows"
	"golang.org/x/sys/windows/registry"
)