/// <summary> /// Define a new DOS device. /// </summary> /// <param name="flags">The dos device flags.</param> /// <param name="device_name">The device name to define.</param> /// <param name="target_path">The target path.</param> public static void DefineDosDevice(DefineDosDeviceFlags flags, string device_name, string target_path) { if (!Win32NativeMethods.DefineDosDevice(flags, device_name, target_path)) { throw new SafeWin32Exception(); } }