GetClassName(hwnd) { VarSetCapacity(classname, 256) ; the most a classname can *ever* be is 256 chars DllCall("GetClassName", "UInt", hwnd, "Str", classname, "UInt", 256) return classname }