convertInstance
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "convertInstance")] public static extern void x86_convertInstance(Int32 instance); [DllImport(enginedll, EntryPoint = "convertInstance")] public static extern void x64_convertInstance(Int64 instance); public static void convertInstance(Int64 instance) { if (IntPtr.Size == 4) { x86_convertInstance((Int32)instance); } else { x64_convertInstance(instance); } }