You can use the SendMessage() API function and send the WM_GETTEXT to the window to retrieve the string.