Ummm... GetTitleBarInfo does NOT get the text of the title bar of a window.
It returns a RECT structure that describes the bound of the title bar, and array of 6 integers indicating the state of certain title bar elements.
Did you not read the documentation on the
TITLEBARINFO structure[
^]?