Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

8 роки тому
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.Network
  22. {
  23. internal static partial class NativeMethods
  24. {
  25. /// <summary>NETRESOURCE structure.
  26. /// <para>ResourceScope: The scope of the enumeration.</para>
  27. /// </summary>
  28. internal enum ResourceScope
  29. {
  30. /// <summary>RESOURCE_CONNECTED
  31. /// <para>Enumerate all currently connected resources.</para>
  32. /// <para>The function ignores the <see cref="ResourceUsage"/> parameter.</para>
  33. /// </summary>
  34. Connected = 1,
  35. /// <summary>RESOURCE_GLOBALNET
  36. /// <para>Enumerate all resources on the network.</para>
  37. /// </summary>
  38. GlobalNet = 2,
  39. /// <summary>RESOURCE_REMEMBERED
  40. /// <para>Enumerate all remembered (persistent) connections.</para>
  41. /// <para>The function ignores the <see cref="ResourceUsage"/> parameter.</para>
  42. /// </summary>
  43. Remembered = 3,
  44. /// <summary>RESOURCE_RECENT</summary>
  45. Recent = 4,
  46. /// <summary>RESOURCE_CONTEXT
  47. /// <para>Enumerate only resources in the network context of the caller. Specify this value for a Network Neighborhood view.</para>
  48. /// <para>The function ignores the <see cref="ResourceUsage"/> parameter.</para>
  49. /// </summary>
  50. Context = 5
  51. }
  52. }
  53. }