예제 #1
0
        /// <summary>
        /// Parse the RopGetPerUserGuidRequest structure.
        /// </summary>
        /// <param name="s">An stream containing RopGetPerUserGuidRequest structure.</param>
        public override void Parse(Stream s)
        {
            base.Parse(s);

            this.RopId            = (RopIdType)ReadByte();
            this.LogonId          = ReadByte();
            this.InputHandleIndex = ReadByte();
            this.LongTermId       = new LongTermID();
            this.LongTermId.Parse(s);
        }
예제 #2
0
        /// <summary>
        /// Parse the RopReadPerUserInformationRequest structure.
        /// </summary>
        /// <param name="s">An stream containing RopReadPerUserInformationRequest structure.</param>
        public override void Parse(Stream s)
        {
            base.Parse(s);

            this.RopId            = (RopIdType)ReadByte();
            this.LogonId          = ReadByte();
            this.InputHandleIndex = ReadByte();
            this.FolderId         = new LongTermID();
            this.FolderId.Parse(s);
            this.Reserved    = ReadByte();
            this.DataOffset  = ReadUint();
            this.MaxDataSize = ReadUshort();
        }
예제 #3
0
        /// <summary>
        /// Parse the RopLongTermIdFromIdResponse structure.
        /// </summary>
        /// <param name="s">An stream containing RopLongTermIdFromIdResponse structure.</param>
        public override void Parse(Stream s)
        {
            base.Parse(s);

            this.RopId            = (RopIdType)ReadByte();
            this.InputHandleIndex = ReadByte();
            HelpMethod help = new HelpMethod();

            this.ReturnValue = help.FormatErrorCode(ReadUint());
            if ((ErrorCodes)ReturnValue == ErrorCodes.Success)
            {
                this.LongTermId = new LongTermID();
                this.LongTermId.Parse(s);
            }
        }
예제 #4
0
        /// <summary>
        /// Parse the RopWritePerUserInformationRequest structure.
        /// </summary>
        /// <param name="s">An stream containing RopWritePerUserInformationRequest structure.</param>
        public override void Parse(Stream s)
        {
            base.Parse(s);

            this.RopId            = (RopIdType)ReadByte();
            this.LogonId          = ReadByte();
            this.InputHandleIndex = ReadByte();
            this.FolderId         = new LongTermID();
            this.FolderId.Parse(s);
            this.HasFinished = ReadBoolean();
            this.DataOffset  = ReadUint();
            this.DataSize    = ReadUshort();
            this.Data        = ReadBytes((int)this.DataSize);
            if (this.DataOffset == 0 && (((byte)DecodingContext.SessionLogonFlagMapLogId[MapiInspector.MAPIInspector.currentParsingSessionID][LogonId] & (byte)LogonFlags.Private) == (byte)LogonFlags.Private))
            {
                this.ReplGuid = ReadGuid();
            }
        }