Пример #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);
            }
        }