getDisplayInformation(display,visual,colormap);
Application app(display,(Qt::HANDLE)visual,(Qt::HANDLE)colormap);
app.setAttribute(Qt::AA_NativeWindows, true);
restoreSession(app);
return app.exec();
}