engiGetAttrIndex

This call works for non-complex entities and entities without multiple inheritance, it is advised not to use this call for other schemas.

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);
			}
		}    

Property attribute

Size: 64 bit / 8 byte (reference)
...