C# DLLs are .NET assemblies. To use them inside Excel's VBA (or any other
COM environment), you'll need to use regasm to register your assembly for
COM Interop.
DllImport is for .NET code to invoke the native platform (Platform
Invocation, P/Invoke).