sdaiIsInstanceOf

This call checks if an instance is an exact instance of a given entity.

Syntax

public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "sdaiIsInstanceOf")]
public static extern Int32 x86_sdaiIsInstanceOf(Int32 instance, Int32 entity);

[DllImport(enginedll, EntryPoint = "sdaiIsInstanceOf")]
public static extern Int32 x64_sdaiIsInstanceOf(Int64 instance, Int64 entity);

public static Int32 sdaiIsInstanceOf(Int64 instance, Int64 entity)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiIsInstanceOf((Int32)instance, (Int32)entity);
				return _result;
			}
			else
			{
				return x64_sdaiIsInstanceOf(instance, entity);
			}
		}    

Property instance

Size: 32 bit / 4 byte (value)
...

Property entity

Size: 32 bit / 4 byte (value)
...