sdaiGetUpperIndex
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "sdaiGetUpperIndex")] public static extern Int64 x86_sdaiGetUpperIndex(Int32 aggregate); [DllImport(enginedll, EntryPoint = "sdaiGetUpperIndex")] public static extern Int64 x64_sdaiGetUpperIndex(Int64 aggregate); public static Int64 sdaiGetUpperIndex(Int64 aggregate) { if (IntPtr.Size == 4) { var _result = x86_sdaiGetUpperIndex((Int32)aggregate); return _result; } else { return x64_sdaiGetUpperIndex(aggregate); } }