zenity/internal/zenutil/window_windows.go

19 lines
308 B
Go
Raw Normal View History

2022-06-09 08:35:02 -04:00
package zenutil
2022-06-18 07:37:39 -04:00
import (
"strconv"
"golang.org/x/sys/windows"
)
2022-06-09 08:35:02 -04:00
// ParseWindowId is internal.
2022-06-18 07:37:39 -04:00
func ParseWindowId(id string) windows.HWND {
2022-06-09 08:35:02 -04:00
hwnd, _ := strconv.ParseUint(id, 0, 64)
2022-06-18 07:37:39 -04:00
return windows.HWND(uintptr(hwnd))
2022-06-09 08:35:02 -04:00
}
// GetParentWindowId is internal.
2022-06-16 20:55:02 -04:00
func GetParentWindowId(pid int) int {
2022-06-09 08:35:02 -04:00
return 0
}