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

Function FindWindowExW

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

Source from the content-addressed store, hash-verified

758
759
760def 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
773FindWindowEx = GuessStringType(FindWindowExA, FindWindowExW)

Callers

nothing calls this directly

Calls 1

GetLastErrorFunction · 0.90

Tested by

no test coverage detected