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