rodrigocfd / windigo

Windows API and GUI in idiomatic Go.
https://pkg.go.dev/github.com/rodrigocfd/windigo
MIT License
417 stars 23 forks source link

Doesn't work in Windows 7 and 8.1 #35

Open lgirma opened 6 months ago

lgirma commented 6 months ago

That is mainly because of these changes:

  1. Go version was upgraded to 1.21 which drops support for Windows versions below 10.
  2. There is a SetUserObjectInformation() call in _FirstMainStuff() function (inside any_globals.go file) which will make RunAsMain() calls panic in:
    • Windows 7 SP1
    • Windows 8.1
    • Wine (tested in Wine v8)

I confirmed this by forking this repository and removing the SetUserObjectInformation() call. Can that SetUserObjectInformation() call optionally be skipped so that win32 apps built with windigo work fine in those platforms?