sdaiGetInstanceModel

Returns the model based on an instance.

Syntax

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

[DllImport(enginedll, EntryPoint = "sdaiGetInstanceModel")]
public static extern Int64 x86_sdaiGetInstanceModel(Int32 instance);

[DllImport(enginedll, EntryPoint = "sdaiGetInstanceModel")]
public static extern Int64 x64_sdaiGetInstanceModel(Int64 instance);

public static Int64 sdaiGetInstanceModel(Int64 instance)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiGetInstanceModel((Int32)instance);
				return _result;
			}
			else
			{
				return x64_sdaiGetInstanceModel(instance);
			}
		}    

Property instance

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