Dazu noch in der Remarkssection:
Zitat:
If the target window is owned by the current process, GetWindowText causes a WM_GETTEXT message to be sent to the specified window or control. If the target window is owned by another process and has a caption, GetWindowText retrieves the window caption text. If the window does not have a caption, the return value is a null string. This behavior is by design.
Es mag sein, dass es funktioniert, aber man sollte sich nicht darauf verlassen.