MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / FindWindowExA

Function FindWindowExA

pydevd_attach_to_process/winappdbg/win32/user32.py:747–757  ·  view source on GitHub ↗
(hwndParent=None, hwndChildAfter=None, lpClassName=None, lpWindowName=None)

Source from the content-addressed store, hash-verified

745# __in_opt LPCTSTR lpszWindow
746# );
747def FindWindowExA(hwndParent=None, hwndChildAfter=None, lpClassName=None, lpWindowName=None):
748 _FindWindowExA = windll.user32.FindWindowExA
749 _FindWindowExA.argtypes = [HWND, HWND, LPSTR, LPSTR]
750 _FindWindowExA.restype = HWND
751
752 hWnd = _FindWindowExA(hwndParent, hwndChildAfter, lpClassName, lpWindowName)
753 if not hWnd:
754 errcode = GetLastError()
755 if errcode != ERROR_SUCCESS:
756 raise ctypes.WinError(errcode)
757 return hWnd
758
759
760def FindWindowExW(hwndParent=None, hwndChildAfter=None, lpClassName=None, lpWindowName=None):

Callers

nothing calls this directly

Calls 1

GetLastErrorFunction · 0.90

Tested by

no test coverage detected