[DllImport("dmcl40.dll",EntryPoint="dmAPIInit", CharSet=CharSet.Ansi, ExactSpelling=true,CallingConvention=CallingConvention.Cdecl)] private static extern int dmAPIInit();
Partially complete... http://workspaces.gotdotnet.com/dm