Point to the windows

Подключение диска в папке Mount a drive in a folder

Относится к: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012. Applies To: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Вы можете использовать оснастку «Управление дисками» для подключения диска (предоставления доступа к нему) в папке, а не путем назначения ему буквы диска. You can use Disk Management to mount (make a drive accessible) in a folder rather than a drive letter if you want. В таком случае диск будет отображаться как обычная папка. This makes the drive appear as just another folder. Диски можно подключать только в пустых папках в базовых или динамических томах NTFS. You can mount drives only in empty folders on basic or dynamic NTFS volumes.

Подключение диска в пустой папке Mounting a drive in an empty folder

Для выполнения следующих шагов необходимо как минимум состоять в группе Операторы архива или Администраторы. You must be a member of the Backup Operators or Administrators group, at minimum, to complete these steps.

Подключение диска в пустой папке с помощью интерфейса Windows To mount a drive in an empty folder by using the Windows interface

  1. В диспетчере дисков щелкните правой кнопкой мыши раздел или том, который содержит папку для подключения диска. In Disk Manager, right-click the partition or volume that has the folder in which you want to mount the drive.
  2. Щелкните Изменить букву диска или путь к диску, а затем нажмите Добавить. Click Change Drive Letter and Paths and then click Add.
  3. Щелкните Подключить к следующей пустой папке NTFS. Click Mount in the following empty NTFS folder.
  4. Введите путь к пустой папке в томе NTFS или нажмите кнопку Обзор, чтобы найти ее. Type the path to an empty folder on an NTFS volume, or click Browse to locate it.
Читайте также:  Windows 10 немецкий языковой пакет

Подключение диска в пустой папке с помощью командной строки To mount a drive in an empty folder using a command line

Откройте командную строку и введите: diskpart . Open a command prompt and type diskpart .

В командной строке DISKPART введите list volume и запомните номер тома, которому требуется назначить путь. At the DISKPART prompt, type list volume , making note of the volume number you want to assign the path to.

В командной строке DISKPART введите select volume и укажите номер тома, которому требуется назначить путь. At the DISKPART prompt, type select volume , specifying the volume number that you want to assign the path to.

В командной строке DISKPART введите assign [mount=

] . At the DISKPART prompt, type assign [mount=

Удаление точки подключения To remove a mount point

Если вы хотите удалить точку подключения, чтобы доступ к диску нельзя было получить через папку, сделайте следующее: To remove the mount point so that the drive is no longer accessible via a folder:

MapWindowPoints function (winuser.h)

The MapWindowPoints function converts (maps) a set of points from a coordinate space relative to one window to a coordinate space relative to another window.

Syntax

Parameters

A handle to the window from which points are converted. If this parameter is NULL or HWND_DESKTOP, the points are presumed to be in screen coordinates.

A handle to the window to which points are converted. If this parameter is NULL or HWND_DESKTOP, the points are converted to screen coordinates.

A pointer to an array of POINT structures that contain the set of points to be converted. The points are in device units. This parameter can also point to a RECT structure, in which case the cPoints parameter should be set to 2.

Читайте также:  Steam files in linux

The number of POINT structures in the array pointed to by the lpPoints parameter.

Return value

If the function succeeds, the low-order word of the return value is the number of pixels added to the horizontal coordinate of each source point in order to compute the horizontal coordinate of each destination point. (In addition to that, if precisely one of hWndFrom and hWndTo is mirrored, then each resulting horizontal coordinate is multiplied by -1.) The high-order word is the number of pixels added to the vertical coordinate of each source point in order to compute the vertical coordinate of each destination point.

If the function fails, the return value is zero. Call SetLastError prior to calling this method to differentiate an error return value from a legitimate «0» return value.

Remarks

If hWndFrom or hWndTo (or both) are mirrored windows (that is, have WS_EX_LAYOUTRTL extended style) and precisely two points are passed in lpPoints, MapWindowPoints will interpret those two points as a RECT and possibly automatically swap the left and right fields of that rectangle to ensure that left is not greater than right. If any number of points other than 2 is passed in lpPoints, then MapWindowPoints will correctly map the coordinates of each of those points separately, so if you pass in a pointer to an array of more than one rectangle in lpPoints, the new rectangles may get their left field greater than right. Thus, to guarantee the correct transformation of rectangle coordinates, you must call MapWindowPoints with one RECT pointer at a time, as shown in the following example:

Читайте также:  Виджеты для windows 10 8gadgetpack

Also, if you need to map precisely two independent points and don’t want the RECT logic applied to them by MapWindowPoints, to guarantee the correct result you must call MapWindowPoints with one POINT pointer at a time, as shown in the following example:

Оцените статью
Adblock
detector