It's funny today I've asked two questions and 5 minutes after I've found a solution myself 
But I suppose that hardcoding window name is not the best idea...
I've done it like this
wchar_t *str = new wchar_t[16];
mbstowcs(str,"My Window Title", 16 );
qDebug()<<"------------------------------------";
qDebug()<<FindWindow(0, str);
qDebug()<<"------------------------------------";
wchar_t *str = new wchar_t[16];
mbstowcs(str,"My Window Title", 16 );
qDebug()<<"------------------------------------";
qDebug()<<FindWindow(0, str);
qDebug()<<"------------------------------------";
To copy to clipboard, switch view to plain text mode
But anyway thanks jpn
Bookmarks