namespace LSServerService { using System; using System.Runtime.InteropServices; [StructLayout(LayoutKind.Sequential, Pack=1)] public struct C2S_ReqestFileList { public const uint ID = 33; public MsgHeader header; public int dwParentId; public int dwReqType; public int dwFileId; public C2S_ReqestFileList(bool autoSet) { this.header = new MsgHeader(); this.dwParentId = -1; this.dwReqType = this.dwFileId = 0; this.header.dwType = 33; this.header.dwLen = (uint) Marshal.SizeOf(this); } } }