コード例 #1
0
        public override int ReadFrom(byte[] buffer, int offset)
        {
            PreviousIndex = Utilities.ToInt32LittleEndian(buffer, offset + 0x04);
            NextIndex     = Utilities.ToInt32LittleEndian(buffer, offset + 0x08);
            UsageCount    = Utilities.ToInt32LittleEndian(buffer, offset + 0x0C);
            int secDescSize = Utilities.ToInt32LittleEndian(buffer, offset + 0x10);

            byte[] secDesc = new byte[secDescSize];
            Array.Copy(buffer, offset + 0x14, secDesc, 0, secDescSize);
            SecurityDescriptor = new RegistrySecurity();
            SecurityDescriptor.SetSecurityDescriptorBinaryForm(secDesc);

            return(0x14 + secDescSize);
        }