Пример #1
0
func main() {
	chave := `BDS.PasFile\shell\Calcular métricas\Command`
	v, err := gowin.GetReg("HKCR", chave, "")
	//err := gowin.WriteStringReg("HKCR", `BDS.PasFile\shell\Metric\Command`, "", `c:\projetos\go\auditoria-e-metricas\client\clientAudit.exe -arquivo=%1 -browser`)
	if err != nil {
		gowin.WriteStringReg("HKCR", chave, "", `c:\projetos\go\auditoria-e-metricas\client\clientAudit.exe -arquivo=%1 -browser`)
	}
}
Пример #2
0
func GetPageSetup(regName string) (val string) {
	val, err := gowin.GetReg("HKCU", `Software\Microsoft\Internet Explorer\PageSetup`, regName)

	if err != nil {
		log.Println(err)
	}
	return
}
Пример #3
0
func getWInstalDate() string {
	val, _ := gowin.GetReg("HKLM", `Software\Microsoft\Windows NT\CurrentVersion`, "InstallDate")
	return val
}
Пример #4
0
func getOS() string {
	val, _ := gowin.GetReg("HKLM", `Software\Microsoft\Windows NT\CurrentVersion`, "ProductName")
	return val
}