validateInstance

Apply validation of an instance

Syntax

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

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

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

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

Property instance

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