3 ms·
> I'd love Microsoft to be a bit more open about what their C runtime actually does before a program linked to it loads. Of course, perhaps they are, and I've m
by asveikau 11y ago
> I'd love Microsoft to be a bit more open about what their C runtime actually does before a program linked to it loads. Of course, perhaps they are, and I've missed it.
The source code to the CRT ships with Visual Studio.
> Basically, the entrypoint for Win32 isn't actually WinMain, but WinMainCRTStartup.
The entry point is whatever appears in the PE header and you can name it whatever you want. It just so happens that the default linker settings point it at CRT, which calls into you. You can change this with linker settings.
- chris_wot 11y agoYa, I didn't explain that as well as I might have. That is correct :-)