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

Function FindWindowA

pydevd_attach_to_process/winappdbg/win32/user32.py:712–722  ·  view source on GitHub ↗
(lpClassName=None, lpWindowName=None)

Source from the content-addressed store, hash-verified

710# LPCTSTR lpWindowName
711# );
712def 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
725def FindWindowW(lpClassName=None, lpWindowName=None):

Callers

nothing calls this directly

Calls 1

GetLastErrorFunction · 0.90

Tested by

no test coverage detected