switch from win32 api to Qt or someting cross platform