public static extern IntPtr OpenCLDevice_GetKernelProfileRecord(IntPtr list, UIntPtr index); [DllImport(NativeLibrary.X86Name, CallingConvention = CallingConvention.Cdecl)]