Skip to content

Commit 02da0d7

Browse files
committed
more winapi functions
1 parent d9826b4 commit 02da0d7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

helper/WinDialog/win_helper/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
LRESULT = ctypes.c_ssize_t
3636
DIALOGPROC = WINFUNCTYPE(LRESULT, HWND, UINT, WPARAM, LPARAM)
37+
ENUMWINDOWSPROC = WINFUNCTYPE(BOOL, HWND, LPARAM)
3738

3839
SendMessage = user32.SendMessageW
3940
SendMessage.restype = LRESULT
@@ -639,3 +640,15 @@ def __init__(self, guid_string):
639640
SHCreateItemFromParsingName = shell32.SHCreateItemFromParsingName
640641
SHCreateItemFromParsingName.argtypes = [LPCWSTR, ctypes.c_void_p, POINTER(GUID), POINTER(ctypes.c_void_p)]
641642
SHCreateItemFromParsingName.restype = HRESULT
643+
644+
EnumChildWindows = user32.EnumChildWindows
645+
EnumChildWindows.restype = BOOL
646+
EnumChildWindows.argtypes = [HWND, ENUMWINDOWSPROC, LPARAM]
647+
648+
GetClassName = user32.GetClassNameW
649+
GetClassName.restype = INT
650+
GetClassName.argtypes = [HWND, LPCWSTR, INT]
651+
652+
GetParent = user32.GetParent
653+
GetParent.restype = HWND
654+
GetParent.argtypes = [HWND]

0 commit comments

Comments
 (0)