Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

FindExSearchOps.cs 3.2 KiB

před 7 roky
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* Copyright (C) 2008-2016 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov
  2. *
  3. * Permission is hereby granted, free of charge, to any person obtaining a copy
  4. * of this software and associated documentation files (the "Software"), to deal
  5. * in the Software without restriction, including without limitation the rights
  6. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. * copies of the Software, and to permit persons to whom the Software is
  8. * furnished to do so, subject to the following conditions:
  9. *
  10. * The above copyright notice and this permission notice shall be included in
  11. * all copies or substantial portions of the Software.
  12. *
  13. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. * THE SOFTWARE.
  20. */
  21. namespace Alphaleonis.Win32.Filesystem
  22. {
  23. internal static partial class NativeMethods
  24. {
  25. /// <summary>FINDEX_SEARCH_OPS Enumeration - Defines values that are used with the FindFirstFileEx function to specify the type of filtering to perform.</summary>
  26. /// <remarks>
  27. /// <para>Minimum supported client: Windows XP [desktop apps | Windows Store apps]</para>
  28. /// <para>Minimum supported server: Windows Server 2003 [desktop apps | Windows Store apps]</para>
  29. /// </remarks>
  30. internal enum FINDEX_SEARCH_OPS
  31. {
  32. /// <summary>The search for a file that matches a specified file name.
  33. /// <para>The lpSearchFilter parameter of FindFirstFileEx must be NULL when this search operation is used.</para>
  34. /// </summary>
  35. SearchNameMatch = 0,
  36. /// <summary>This is an advisory flag. If the file system supports directory filtering,
  37. /// <para>the function searches for a file that matches the specified name and is also a directory.</para>
  38. /// <para>If the file system does not support directory filtering, this flag is silently ignored.</para>
  39. /// <para>&#160;</para>
  40. /// <remarks>
  41. /// <para>The lpSearchFilter parameter of the FindFirstFileEx function must be NULL when this search value is used.</para>
  42. /// <para>If directory filtering is desired, this flag can be used on all file systems,</para>
  43. /// <para>but because it is an advisory flag and only affects file systems that support it,</para>
  44. /// <para>the application must examine the file attribute data stored in the lpFindFileData parameter</para>
  45. /// <para>of the FindFirstFileEx function to determine whether the function has returned a handle to a directory.</para>
  46. /// </remarks>
  47. /// </summary>
  48. SearchLimitToDirectories = 1,
  49. /// <summary>This filtering type is not available.</summary>
  50. /// <remarks>For more information, see Device Interface Classes.</remarks>
  51. SearchLimitToDevices = 2
  52. }
  53. }
  54. }