GetTitleBarInfo function (winuser.h) - Win32 apps

Retrieves information about the specified title bar.