using System; using System.Runtime.InteropServices; namespace FFTTest { class Program { static void Main(string[] args) { Console.WriteLine("Start"); var descriptorHandle = new IntPtr(); DftiCreateDescriptor(ref descriptorHandle, DFTI_DOUBLE, DFTI_COMPLEX, 1, 100); Console.WriteLine("Complete"); Console.ReadLine(); } [DllImport("libmkl_rt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = false)] private static extern int DftiCreateDescriptor(ref IntPtr desc, int precision, int domain, int dimention, int length); private static int DFTI_DOUBLE = 36; private static int DFTI_COMPLEX = 32; } }