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 RecordPasswod { public ushort opcode; public ushort length; public ushort password; } internal class Password : IRecords { RecordPasswod password; public Password() { password.opcode = 0x13; password.length = 0x2; } public ushort PasswordHash { set { password.password = value; } } #region IRecords ³ΙΤ± public byte[] GetByte() { return Globals.GetStructToBytes(password); } #endregion } }