using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using Biff8Excel.Interfaces; namespace Biff8Excel.Records { [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 1)] struct RecordProtect { public ushort opcode; public ushort length; public ushort protect; } internal class Protect : IRecords { RecordProtect protect; public Protect() { protect.opcode = 0x12; protect.length = 0x2; } public ushort SetProtect { set { protect.protect = value; } } #region IRecords ³ΙΤ± public byte[] GetByte() { return Globals.GetStructToBytes(protect); } #endregion } }