Skip to content

Instantly share code, notes, and snippets.

@bear256
bear256 / win_registry_query.go
Last active October 19, 2022 18:47
[Windows Registry Query & Find Chrome Path] Query value by key from Windows Registry Table, and find the path of Chrome installed on local Windows machine #Golang
package main
import (
"fmt"
"golang.org/x/sys/windows/registry"
)
// QueryRegistry to query the value by registry key, path and name
func QueryRegistry(key registry.Key, path, name string) (string, uint32, error) {
import base64
import hmac
import hashlib
import time
import requests
import urllib
class D2CMsgSender:
API_VERSION = '2016-02-03'