public static void SetSearch(string text) { int res = Is64Bit ? NativeMethods64.Everything_SetSearchW(text) : NativeMethods32.Everything_SetSearchW(text); if (res != (int)Ok) { Throw(res); } }
public static void Query(bool wait) { var res = Is64Bit ? NativeMethods64.Everything_QueryW(wait) : NativeMethods32.Everything_QueryW(wait); if (!res) { var err = GetLastError(); Throw(err); } }
public static void SetOffset(int index) { if (Is64Bit) { NativeMethods64.Everything_SetOffset(index); } else { NativeMethods32.Everything_SetOffset(index); } }
public static void SetMax(int count) { if (Is64Bit) { NativeMethods64.Everything_SetMax(count); } else { NativeMethods32.Everything_SetMax(count); } }
public static void SetMatchPath(bool value) { if (Is64Bit) { NativeMethods64.Everything_SetMatchPath(value); } else { NativeMethods32.Everything_SetMatchPath(value); } }
public static void SetRegEx(bool value) { if (Is64Bit) { NativeMethods64.Everything_SetRegex(value); } else { NativeMethods32.Everything_SetRegex(value); } }
public static void Reset() { if (Is64Bit) { NativeMethods64.Everything_Reset(); } else { NativeMethods32.Everything_Reset(); } }
public static void SortResultsByPath() { if (Is64Bit) { NativeMethods64.Everything_SortResultsByPath(); } else { NativeMethods32.Everything_SortResultsByPath(); } }
public static void Cleanup() { if (Is64Bit) { NativeMethods64.Everything_CleanUp(); } else { NativeMethods32.Everything_CleanUp(); } }
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()); }
public static int GetTotalNumberOfResults() { return(Is64Bit ? NativeMethods64.Everything_GetTotResults() : NativeMethods32.Everything_GetTotResults()); }
public static int GetNumberOfFolderResults() { return(Is64Bit ? NativeMethods64.Everything_GetNumFolderResults() : NativeMethods32.Everything_GetNumFolderResults()); }
public static bool Query(bool wait) { return(Is64Bit ? NativeMethods64.Everything_QueryW(wait) : NativeMethods32.Everything_QueryW(wait)); }
static int GetLastError() { return(Is64Bit ? NativeMethods64.Everything_GetLastError() : NativeMethods32.Everything_GetLastError()); }