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