User32GetWindowText Method

Overload List

GetWindowText(IntPtr, StringBuilder, Int32) Copies the text of the specified window's title bar (if it has one) into a buffer.

If the specified window is a control, the text of the control is copied.

GetWindowText(IntPtr, StringBuilder, Int32) cannot retrieve the text of a control in another application than the calling application.

GetWindowText(SafeHandle, StringBuilder, Int32) Copies the text of the specified window's title bar (if it has one) into a buffer.

If the specified window is a control, the text of the control is copied.

GetWindowText(IntPtr, StringBuilder, Int32) cannot retrieve the text of a control in another application than the calling application.

See Also