public static extern IntPtr OpenCLDevice_GetKernelProfileRecords(IntPtr Instance, out UIntPtr length); [DllImport(NativeLibrary.X64Name, CallingConvention = CallingConvention.Cdecl)]