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