No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

60 líneas
3.2 KiB

  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. using System;
  22. namespace Alphaleonis.Win32.Filesystem
  23. {
  24. /// <summary>Defines the controllable aspects of the Volume.DefineDosDevice() method.</summary>
  25. [Flags]
  26. public enum DosDeviceAttributes
  27. {
  28. /// <summary>DDD_EXACT_MATCH_ON_REMOVE
  29. /// <para>Default.</para>
  30. /// </summary>
  31. None = 0,
  32. /// <summary>DDD_RAW_TARGET_PATH
  33. /// <para>Uses the targetPath string as is. Otherwise, it is converted from an MS-DOS path to a path.</para>
  34. /// </summary>
  35. RawTargetPath = 1,
  36. /// <summary>DDD_REMOVE_DEFINITION
  37. /// <para>Removes the specified definition for the specified device.</para>
  38. /// <para>To determine which definition to remove, the function walks the list of mappings for the device, looking for a match of targetPath against a prefix of each mapping associated with this device.</para>
  39. /// <para>The first mapping that matches is the one removed, and then the function returns.</para>
  40. /// <para>If targetPath is null or a pointer to a null string, the function will remove the first mapping associated with the device and pop the most recent one pushed.If there is nothing left to pop, the device name will be removed.</para>
  41. /// <para>If this value is not specified, the string pointed to by the targetPath parameter will become the new mapping for this device.</para>
  42. /// </summary>
  43. RemoveDefinition = 2,
  44. /// <summary>DDD_EXACT_MATCH_ON_REMOVE
  45. /// <para>If this value is specified along with <see cref="RemoveDefinition"/>, the function will use an exact match to determine which mapping to remove.</para>
  46. /// <para>Use this value to ensure that you do not delete something that you did not define.</para>
  47. /// </summary>
  48. ExactMatchOnRemove = 4,
  49. /// <summary>DDD_NO_BROADCAST_SYSTEM
  50. /// <para>Do not broadcast the WM_SETTINGCHANGE message.</para>
  51. /// <para>By default, this message is broadcast to notify the shell and applications of the change.</para>
  52. /// </summary>
  53. NoBroadcastSystem = 8
  54. }
  55. }