std::string title;
title.resize(GetWindowTextLength(mWindowHandle) + 1); // +1 for null terminator
if(GetWindowText(mWindowHandle, &title[0], title.size()) < 0) {
// Error, GetWindowText returned less than 0, do something (TODO)
} else {
return title;
};