如题
------解决方案--------------------
声明API
- C/C++ code
FUNCTION ulong FindWindow(ref string lpClassName,ref string lpWindowName) LIBRARY "user32.dll" ALIAS FOR "FindWindowA" FUNCTION ulong GetClientRect(ulong hwnd,ref RECT lpRect) LIBRARY "user32.dll"
------解决方案--------------------
在 Getwnd = FindWindow( ls_classname, ls)
前加上 SetNull(ls) 试试