A Host for your DLLs?

Author: Amlal El Mahrouss (amlal@ne-app.eu)

Published September 16, 2026

Contents

The Host Pattern I talked about extensively in this blog would be useful for DLLs that need some information/runtime before executing.

This is where you’d make a dllhost.exe and then dllcontents.dll to load the contents.

Example: the host loads any necessary variables, config, and code before running the main DLL.

In Theoretical Computer Science terms ...

Per a controller Thread one, where the second child thread from two to n would be forked out of thread one and then run with thread one’s context.

Thread A gives context --> Thread B...N runs with A's context. If Thread A exists then Thread B...N exits.

A fun image to illustrate!

The code is ultra portable, so we’ve been able to run it everywhere so far.