Tsuji, it WILL retrieve the window text, however, the specified return value in "i=lrl" of r, which is to pass by reference, seems to be limited to 48 characters. I disagree that the implementation is incorrect. There is only one other similar function that I know of; InternalGetWindowText does...