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