Yes, you can write DLLs in D that use or implement the C API.
You must ensure that the function signatures and conventions match. On the page you linked, the calling convention is indicated as stdcall , so your D functions must be annotated using extern(Windows) or extern(System) .
source share