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