On Monday, 19 April 2021 at 14:55:03 UTC, cc wrote:
https://wiki.dlang.org/Win32_DLLs_in_D
I'm starting to think half that page should just be deleted... the version up top with the druntime dll_process_attach etc versions should really be used in all cases.
And that gets even simpler too, use import core.sys.windows.dll; mixin SimpleDllMain; and you get that boilerplate for free.