예제 #1
0
        int IComparer.Compare(object a, object b)
        {
            STATURL c1 = (STATURL)a;
            STATURL c2 = (STATURL)b;

            return(CompareFileTime(ref c1.ftLastVisited, ref c2.ftLastVisited));
        }
예제 #2
0
 public bool MoveNext()
 {
     staturl = new STATURL();
     enumrator.Next(1, ref staturl, out index);
     if (index == 0)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
예제 #3
0
 public void GetUrlHistory(IList list)
 {
     while (true)
     {
         staturl = new STATURL();
         enumrator.Next(1, ref staturl, out index);
         if (index == 0)
         {
             break;
         }
         list.Add(staturl);
     }
     enumrator.Reset();
 }
예제 #4
0
        public STATURL QueryUrl(string pocsUrl, STATURL_QUERYFLAGS dwFlags)
        {
            STATURL lpSTATURL = new STATURL();

            try
            {
                obj.QueryUrl(pocsUrl, dwFlags, ref lpSTATURL);
                return(lpSTATURL);
            }
            catch (FileNotFoundException)
            {
                return(lpSTATURL);
            }
        }