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