(lpClassName=None, lpWindowName=None)
| 723 | |
| 724 | |
| 725 | def FindWindowW(lpClassName=None, lpWindowName=None): |
| 726 | _FindWindowW = windll.user32.FindWindowW |
| 727 | _FindWindowW.argtypes = [LPWSTR, LPWSTR] |
| 728 | _FindWindowW.restype = HWND |
| 729 | |
| 730 | hWnd = _FindWindowW(lpClassName, lpWindowName) |
| 731 | if not hWnd: |
| 732 | errcode = GetLastError() |
| 733 | if errcode != ERROR_SUCCESS: |
| 734 | raise ctypes.WinError(errcode) |
| 735 | return hWnd |
| 736 | |
| 737 | |
| 738 | FindWindow = GuessStringType(FindWindowA, FindWindowW) |
nothing calls this directly
no test coverage detected