Функция _WinNet_RestoreConnection

 ↑  ←  Описание функции


_WinNet_RestoreConnection

Restores the connection to a network resource

#include <WinNet.au3>
_WinNet_RestoreConnection([$sDevice = "" [, $hWnd = 0 [, $fUseUI = True]]])

Параметры

$sDevice [необязательный] The local name of the drive to connect to, such as "Z:". If blank, the function reconnects all
    persistent drives stored in the registry for the current user.
$hWnd [необязательный] Handle to the parent window that the function uses to display the user interface that prompts
    the user for a name and password when making the network connection. If 0, there is no owner window.
$fUseUI [необязательный] If True, display a username/password prompt to the caller

Возвращаемое значение

Успех:Возвращает True
Ошибка:Возвращает False

См. также

Искать WNetRestoreConnection в библиотеке MSDN