`CoInitializeEx` is essential to setting the threading model to multi-threaded. Multi-threaded COM is ideal in D where threading is safer and synchronization easier.