コード例 #1
0
        int IComparer.Compare(object a, object b)
        {
            STATURL staturl  = (STATURL)a;
            STATURL staturl2 = (STATURL)b;

            return(CompareFileTime(ref staturl.ftLastVisited, ref staturl2.ftLastVisited));
        }
コード例 #2
0
 public bool MoveNext()
 {
     this._staturl = new STATURL();
     this._enumerator.Next(1, ref this._staturl, out this._index);
     if (this._index == 0)
     {
         return(false);
     }
     return(true);
 }
コード例 #3
0
        public STATURL QueryUrl(string pocsUrl, STATURL_QUERYFLAGS dwFlags)
        {
            STATURL lpSTATURL = new STATURL();

            try
            {
                this.obj.QueryUrl(pocsUrl, dwFlags, ref lpSTATURL);
                return(lpSTATURL);
            }
            catch (FileNotFoundException)
            {
                return(lpSTATURL);
            }
        }
コード例 #4
0
 public void GetUrlHistory(IList list)
 {
     while (true)
     {
         this._staturl = new STATURL();
         this._enumerator.Next(1, ref this._staturl, out this._index);
         if (this._index == 0)
         {
             this._enumerator.Reset();
             return;
         }
         list.Add(this._staturl);
     }
 }