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

Function FindWindowW

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

Source from the content-addressed store, hash-verified

723
724
725def 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
738FindWindow = GuessStringType(FindWindowA, FindWindowW)

Callers

nothing calls this directly

Calls 1

GetLastErrorFunction · 0.90

Tested by

no test coverage detected