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