Exemple #1
0
        public PSTFile(string path)
        {
            this.Path   = path;
            this.PSTMMF = MemoryMappedFile.CreateFromFile(path, FileMode.Open);

            this.Header = new PSTHeader(this);

            /*var messageStoreData = BlockBO.GetNodeData(SpecialNIDs.NID_MESSAGE_STORE);
             * var temp = BlockBO.GetNodeData(SpecialNIDs.NID_ROOT_FOLDER);*/
            this.MailStore = new MailStore(this);

            this.TopOfPST            = new MailFolder(this.MailStore.RootFolder.NID, new List <string>(), this);
            this.NamedPropertyLookup = new NamedToPropertyLookup(this);
            //var temp = new TableContext(rootEntryID.NID);
            //PasswordReset.ResetPassword();
        }
Exemple #2
0
        public PSTFile(string path)
        {
            Path   = path;
            PSTMMF = MemoryMappedFile.CreateFromFile(path, FileMode.Open);
            try
            {
                Header = new PSTHeader(this);

                /*var messageStoreData = BlockBO.GetNodeData(SpecialNIDs.NID_MESSAGE_STORE);
                 * var temp = BlockBO.GetNodeData(SpecialNIDs.NID_ROOT_FOLDER);*/
                MailStore = new MailStore(this);

                TopOfPST            = new MailFolder(MailStore.RootFolder.NID, new List <string>(), this);
                NamedPropertyLookup = new NamedToPropertyLookup(this);
                //var temp = new TableContext(rootEntryID.NID);
                //PasswordReset.ResetPassword();
            }
            catch (Exception)
            {
                // don't hold the MMF open if something failed here.
                PSTMMF.Dispose();
                throw;
            }
        }