Exemplo n.º 1
0
        public override void WriteTo(byte[] buffer, int offset)
        {
            byte[] sd = _secDesc.GetSecurityDescriptorBinaryForm();

            Utilities.StringToBytes("sk", buffer, offset, 2);
            Utilities.WriteBytesLittleEndian(_prevIndex, buffer, offset + 0x04);
            Utilities.WriteBytesLittleEndian(_nextIndex, buffer, offset + 0x08);
            Utilities.WriteBytesLittleEndian(_usageCount, buffer, offset + 0x0C);
            Utilities.WriteBytesLittleEndian(sd.Length, buffer, offset + 0x10);
            Array.Copy(sd, 0, buffer, offset + 0x14, sd.Length);
        }