Ejemplo n.º 1
0
        public static void SetSearch(string text)
        {
            int res = Is64Bit ? NativeMethods64.Everything_SetSearchW(text) : NativeMethods32.Everything_SetSearchW(text);

            if (res != (int)Ok)
            {
                Throw(res);
            }
        }
Ejemplo n.º 2
0
        public static void Query(bool wait)
        {
            var res = Is64Bit ? NativeMethods64.Everything_QueryW(wait) : NativeMethods32.Everything_QueryW(wait);

            if (!res)
            {
                var err = GetLastError();
                Throw(err);
            }
        }
Ejemplo n.º 3
0
 public static void SetOffset(int index)
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_SetOffset(index);
     }
     else
     {
         NativeMethods32.Everything_SetOffset(index);
     }
 }
Ejemplo n.º 4
0
 public static void SetMax(int count)
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_SetMax(count);
     }
     else
     {
         NativeMethods32.Everything_SetMax(count);
     }
 }
Ejemplo n.º 5
0
 public static void SetMatchPath(bool value)
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_SetMatchPath(value);
     }
     else
     {
         NativeMethods32.Everything_SetMatchPath(value);
     }
 }
Ejemplo n.º 6
0
 public static void SetRegEx(bool value)
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_SetRegex(value);
     }
     else
     {
         NativeMethods32.Everything_SetRegex(value);
     }
 }
Ejemplo n.º 7
0
 public static void Reset()
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_Reset();
     }
     else
     {
         NativeMethods32.Everything_Reset();
     }
 }
Ejemplo n.º 8
0
 public static void SortResultsByPath()
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_SortResultsByPath();
     }
     else
     {
         NativeMethods32.Everything_SortResultsByPath();
     }
 }
Ejemplo n.º 9
0
 public static void Cleanup()
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_CleanUp();
     }
     else
     {
         NativeMethods32.Everything_CleanUp();
     }
 }
Ejemplo n.º 10
0
        public static string GetFullPathName(int index, StringBuilder buf)
        {
            if (Is64Bit)
            {
                NativeMethods64.Everything_GetResultFullPathNameW(index, buf, buf.Capacity);
            }
            else
            {
                NativeMethods32.Everything_GetResultFullPathNameW(index, buf, buf.Capacity);
            }

            return(buf.ToString());
        }
Ejemplo n.º 11
0
 public static int GetTotalNumberOfResults()
 {
     return(Is64Bit ? NativeMethods64.Everything_GetTotResults() : NativeMethods32.Everything_GetTotResults());
 }
Ejemplo n.º 12
0
 public static int GetNumberOfFolderResults()
 {
     return(Is64Bit ? NativeMethods64.Everything_GetNumFolderResults() : NativeMethods32.Everything_GetNumFolderResults());
 }
Ejemplo n.º 13
0
 public static bool Query(bool wait)
 {
     return(Is64Bit ? NativeMethods64.Everything_QueryW(wait) : NativeMethods32.Everything_QueryW(wait));
 }
Ejemplo n.º 14
0
 static int GetLastError()
 {
     return(Is64Bit ? NativeMethods64.Everything_GetLastError() : NativeMethods32.Everything_GetLastError());
 }