I just discovered that Slicer is using int __stdcall WinMain(…) on Windows (basically since forever, as far as I can tell).
From what I can tell, WinMain is just a wrapper making it easier for Windows-targeted development; one could just as well use the standard int main(…)instead, such as the official Qt examples do. Since this would simplify code quite a bit - basically all Windows-specific code in qSlicerApplicationMainWrapper.cxx could be removed - is there a specific reason why WinMain should be kept?