using System; using System.Runtime.InteropServices; namespace Lskj.AttachStart.Service { [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); } } }