_DllMainCRTStartup calls DllMain via __DllMainCRTStartup (of which a dummy version is provided in dllmain.c. _DllMainCRTStartup returns an int` (long?) that is interpreted as a boolean) and is declared as stdcall which is hidden behind the WINAPI macro) : BOOL WINAPI _DllMainCRTStartup(
HANDLE hDllHandle,
DWORD dwReason,
LPVOID lpreserved
) {
…
}
vcruntime/dll_dllmain.cpp.