Search notes:

Windows CRT: dllcrt0.c

_DllMainCRTStartup

dlcrt0.c contains _DllMainCRTStartup which is the default entry point for DLLs.
_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
        ) {
        …
}

TODO

In newer versions of Visual Studio, the role of this file seems to gone to vcruntime/dll_dllmain.cpp.

See also

Some CRT sources

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1759398181, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/development/CRT/source/dllcrt0_c(57): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78