(lpClassName=None, lpWindowName=None)
| 710 | # LPCTSTR lpWindowName |
| 711 | # ); |
| 712 | def FindWindowA(lpClassName=None, lpWindowName=None): |
| 713 | _FindWindowA = windll.user32.FindWindowA |
| 714 | _FindWindowA.argtypes = [LPSTR, LPSTR] |
| 715 | _FindWindowA.restype = HWND |
| 716 | |
| 717 | hWnd = _FindWindowA(lpClassName, lpWindowName) |
| 718 | if not hWnd: |
| 719 | errcode = GetLastError() |
| 720 | if errcode != ERROR_SUCCESS: |
| 721 | raise ctypes.WinError(errcode) |
| 722 | return hWnd |
| 723 | |
| 724 | |
| 725 | def FindWindowW(lpClassName=None, lpWindowName=None): |
nothing calls this directly
no test coverage detected