(hwndParent=None, hwndChildAfter=None, lpClassName=None, lpWindowName=None)
| 758 | |
| 759 | |
| 760 | def FindWindowExW(hwndParent=None, hwndChildAfter=None, lpClassName=None, lpWindowName=None): |
| 761 | _FindWindowExW = windll.user32.FindWindowExW |
| 762 | _FindWindowExW.argtypes = [HWND, HWND, LPWSTR, LPWSTR] |
| 763 | _FindWindowExW.restype = HWND |
| 764 | |
| 765 | hWnd = _FindWindowExW(hwndParent, hwndChildAfter, lpClassName, lpWindowName) |
| 766 | if not hWnd: |
| 767 | errcode = GetLastError() |
| 768 | if errcode != ERROR_SUCCESS: |
| 769 | raise ctypes.WinError(errcode) |
| 770 | return hWnd |
| 771 | |
| 772 | |
| 773 | FindWindowEx = GuessStringType(FindWindowExA, FindWindowExW) |
nothing calls this directly
no test coverage detected