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