validateInstance

Apply validation of an instance

Syntax

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

[DllImport(enginedll, EntryPoint = "validateInstance")]
public static extern Int32 x86_validateInstance(Int32 instance);

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

public static Int32 validateInstance(Int64 instance)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_validateInstance((Int32)instance);
				return _result;
			}
			else
			{
				return x64_validateInstance(instance);
			}
		}    

Property instance

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