Skip to content

File tree

3 files changed

+97
-0
lines changed

3 files changed

+97
-0
lines changed

windows/syscall_windows.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,15 @@ func NewCallbackCDecl(fn interface{}) uintptr {
364364
//sys SetCommTimeouts(handle Handle, timeouts *CommTimeouts) (err error)
365365
//sys GetActiveProcessorCount(groupNumber uint16) (ret uint32)
366366
//sys GetMaximumProcessorCount(groupNumber uint16) (ret uint32)
367+
//sys EnumWindows(enumFunc uintptr, param unsafe.Pointer) (err error) = user32.EnumWindows
368+
//sys EnumChildWindows(hwnd HWND, enumFunc uintptr, param unsafe.Pointer) = user32.EnumChildWindows
369+
//sys GetClassName(hwnd HWND, className *uint16, maxCount int32) (copied int32, err error) = user32.GetClassNameW
370+
//sys GetDesktopWindow() (hwnd HWND) = user32.GetDesktopWindow
371+
//sys GetForegroundWindow() (hwnd HWND) = user32.GetForegroundWindow
372+
//sys IsWindow(hwnd HWND) (isWindow bool) = user32.IsWindow
373+
//sys IsWindowUnicode(hwnd HWND) (isUnicode bool) = user32.IsWindowUnicode
374+
//sys IsWindowVisible(hwnd HWND) (isVisible bool) = user32.IsWindowVisible
375+
//sys GetGUIThreadInfo(thread uint32, info *GUIThreadInfo) (err error) = user32.GetGUIThreadInfo
367376

368377
// Volume Management Functions
369378
//sys DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) = DefineDosDeviceW

windows/types_windows.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3213,3 +3213,22 @@ type ModuleInfo struct {
32133213
}
32143214

32153215
const ALL_PROCESSOR_GROUPS = 0xFFFF
3216+
3217+
type Rect struct {
3218+
Left int32
3219+
Top int32
3220+
Right int32
3221+
Bottom int32
3222+
}
3223+
3224+
type GUIThreadInfo struct {
3225+
Size uint32
3226+
Flags uint32
3227+
Active HWND
3228+
Focus HWND
3229+
Capture HWND
3230+
MenuOwner HWND
3231+
MoveSize HWND
3232+
CaretHandle HWND
3233+
CaretRect Rect
3234+
}

windows/zsyscall_windows.go

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)