Example #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);
            }
        }
Example #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);
            }
        }
Example #3
0
 public static void SetOffset(int index)
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_SetOffset(index);
     }
     else
     {
         NativeMethods32.Everything_SetOffset(index);
     }
 }
Example #4
0
 public static void SetMax(int count)
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_SetMax(count);
     }
     else
     {
         NativeMethods32.Everything_SetMax(count);
     }
 }
Example #5
0
 public static void SetMatchPath(bool value)
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_SetMatchPath(value);
     }
     else
     {
         NativeMethods32.Everything_SetMatchPath(value);
     }
 }
Example #6
0
 public static void SetRegEx(bool value)
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_SetRegex(value);
     }
     else
     {
         NativeMethods32.Everything_SetRegex(value);
     }
 }
Example #7
0
 public static void Reset()
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_Reset();
     }
     else
     {
         NativeMethods32.Everything_Reset();
     }
 }
Example #8
0
 public static void SortResultsByPath()
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_SortResultsByPath();
     }
     else
     {
         NativeMethods32.Everything_SortResultsByPath();
     }
 }
Example #9
0
 public static void Cleanup()
 {
     if (Is64Bit)
     {
         NativeMethods64.Everything_CleanUp();
     }
     else
     {
         NativeMethods32.Everything_CleanUp();
     }
 }
Example #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());
        }
Example #11
0
 public static int GetTotalNumberOfResults()
 {
     return(Is64Bit ? NativeMethods64.Everything_GetTotResults() : NativeMethods32.Everything_GetTotResults());
 }
Example #12
0
 public static int GetNumberOfFolderResults()
 {
     return(Is64Bit ? NativeMethods64.Everything_GetNumFolderResults() : NativeMethods32.Everything_GetNumFolderResults());
 }
Example #13
0
 public static bool Query(bool wait)
 {
     return(Is64Bit ? NativeMethods64.Everything_QueryW(wait) : NativeMethods32.Everything_QueryW(wait));
 }
Example #14
0
 static int GetLastError()
 {
     return(Is64Bit ? NativeMethods64.Everything_GetLastError() : NativeMethods32.Everything_GetLastError());
 }