UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); AllocConsole(); freopen("CONIN$","r",stdin); freopen("CONOUT$","w",stdout); freopen("CONOUT$",stderr); auto simulator = SimulatorWin::getInstance(); int ret = simulator->run(); FreeConsole(); return ret;