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