SimpleDllMain

A simple mixin to provide a DllMain which calls the necessary runtime initialization and termination functions automatically.

Instead of writing a custom DllMain, simply write:

mixin SimpleDllMain;
version(Windows)
mixin template SimpleDllMain () {}

Public Imports

core.sys.windows.windef
public import core.sys.windows.windef : HINSTANCE;
Suggestion Box / Bug Report