// Token: 0x060000E3 RID: 227 RVA: 0x00002820 File Offset: 0x00000A20
        public void Refresh()
        {
            this.m_WinInetPass.Clear();
            CItems citems = this.m_PStore.get_Items(this.guidWinInet, this.subguidWinInet);

            checked
            {
                if (citems != null)
                {
                    int num = 0;
                    try
                    {
                        foreach (object obj in citems)
                        {
                            CItem citem = (CItem)obj;
                            this.AddPasswdInfo(citem.Name);
                            num++;
                        }
                    }
                    finally
                    {
                        IEnumerator enumerator;
                        if (enumerator is IDisposable)
                        {
                            (enumerator as IDisposable).Dispose();
                        }
                    }
                }
            }
        }
Exemple #2
0
        // Token: 0x060001A1 RID: 417 RVA: 0x00006138 File Offset: 0x00004338
        public bool MoveNext()
        {
            bool result;

            if (this.m_IEnumItem == null)
            {
                result = false;
            }
            else
            {
                int num2;
                int num3;
                int num = this.m_IEnumItem.Next(1, ref num2, ref num3);
                if (num != 0)
                {
                    result = false;
                }
                else
                {
                    if (num2 != 0)
                    {
                        this.m_Current = new CItem();
                        CItem   current = this.m_Current;
                        IPStore ipstore = this.m_IPStore;
                        PST_KEY keyType = this.m_KeyType;
                        IntPtr  ptr     = new IntPtr(num2);
                        current.Init(ipstore, keyType, ref this.m_TypeGuid, ref this.m_SubTypeGuid, this.CopyString(ptr));
                        ptr = new IntPtr(num2);
                        Marshal.FreeCoTaskMem(ptr);
                    }
                    result = true;
                }
            }
            return(result);
        }
        // Token: 0x06000125 RID: 293 RVA: 0x0000412C File Offset: 0x0000232C
        public void Refresh()
        {
            this.m_IEPass.Clear();
            CItems citems = this.m_PStore.get_Items(this.guidIE, this.guidIE);

            checked
            {
                if (citems != null)
                {
                    int num = 0;
                    try
                    {
                        foreach (object obj in citems)
                        {
                            CItem citem = (CItem)obj;
                            if (num % 2 == 0)
                            {
                                this.AddPasswdInfo(Strings.Mid(citem.Name, 1, Strings.InStr(citem.Name, ":String", CompareMethod.Binary) - 1));
                            }
                            num++;
                        }
                    }
                    finally
                    {
                        IEnumerator enumerator;
                        if (enumerator is IDisposable)
                        {
                            (enumerator as IDisposable).Dispose();
                        }
                    }
                }
            }
        }