namespace LSServerService { using System; using System.Runtime.InteropServices; [StructLayout(LayoutKind.Sequential, Pack=1)] public struct S2C_AddFile { public const uint ID = 18; public MsgHeader header; public int dwErrId; public StructFileInfo fi; public S2C_AddFile(bool autoSet) { this.dwErrId = 0; this.fi = new StructFileInfo(true); this.header = new MsgHeader(); this.header.dwType = 18; this.header.dwLen = (uint) Marshal.SizeOf(this); } } }