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
@@ -3174,3 +3174,22 @@ type ModuleInfo struct {
31743174
}
31753175

31763176
const ALL_PROCESSOR_GROUPS = 0xFFFF
3177+
3178+
type Rect struct {
3179+
Left int32
3180+
Top int32
3181+
Right int32
3182+
Bottom int32
3183+
}
3184+
3185+
type GUIThreadInfo struct {
3186+
Size uint32
3187+
Flags uint32
3188+
Active HWND
3189+
Focus HWND
3190+
Capture HWND
3191+
MenuOwner HWND
3192+
MoveSize HWND
3193+
CaretHandle HWND
3194+
CaretRect Rect
3195+
}

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)