Skip to content

Instantly share code, notes, and snippets.

@ryrun
ryrun / main.go
Last active February 4, 2023 14:21 — forked from zergon321/main.go
Change the display resolution in Golang on Windows for Shadow PC (60hz bandwidth bug)
//big thx to https://gist.github.com/zergon321/4914a1af6c3573df47d959b064811f11
//use it for changing the refresh on a shadow pc to get high bandwidth on high refrehrate (60hz bandwidth bug)
package main
import (
"bufio"
"fmt"
"os"
"syscall"
"unsafe"