zenity/internal/win/win32.go

27 lines
604 B
Go
Raw Normal View History

2022-06-18 07:37:39 -04:00
//go:build windows
// Package win is internal. DO NOT USE.
package win
import "golang.org/x/sys/windows"
type Handle = windows.Handle
type HWND = windows.HWND
2022-06-22 10:14:52 -04:00
type Pointer = windows.Pointer
2022-06-18 11:12:03 -04:00
2022-06-21 19:58:14 -04:00
// https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-systemtime
type SYSTEMTIME struct {
Year uint16
Month uint16
DayOfWeek uint16
Day uint16
Hour uint16
Minute uint16
Second uint16
Milliseconds uint16
}
2022-06-20 11:05:11 -04:00
func RtlGetNtVersionNumbers() (majorVersion, minorVersion, buildNumber uint32) {
return windows.RtlGetNtVersionNumbers()
}