/* Copyright (C) 2008-2016 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ using System; namespace Alphaleonis.Win32.Filesystem { /// Defines the controllable aspects of the Volume.DefineDosDevice() method. [Flags] public enum DosDeviceAttributes { /// DDD_EXACT_MATCH_ON_REMOVE /// Default. /// None = 0, /// DDD_RAW_TARGET_PATH /// Uses the targetPath string as is. Otherwise, it is converted from an MS-DOS path to a path. /// RawTargetPath = 1, /// DDD_REMOVE_DEFINITION /// Removes the specified definition for the specified device. /// 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. /// The first mapping that matches is the one removed, and then the function returns. /// 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. /// If this value is not specified, the string pointed to by the targetPath parameter will become the new mapping for this device. /// RemoveDefinition = 2, /// DDD_EXACT_MATCH_ON_REMOVE /// If this value is specified along with , the function will use an exact match to determine which mapping to remove. /// Use this value to ensure that you do not delete something that you did not define. /// ExactMatchOnRemove = 4, /// DDD_NO_BROADCAST_SYSTEM /// Do not broadcast the WM_SETTINGCHANGE message. /// By default, this message is broadcast to notify the shell and applications of the change. /// NoBroadcastSystem = 8 } }