Функция _WinNet_DisconnectDialog1

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


_WinNet_DisconnectDialog1

Starts a general browsing dialog box for disconnecting from network resources

#include <WinNet.au3>
_WinNet_DisconnectDialog1($hWnd, $sLocalName [, $sRemoteName = "" [, $iFlags = 1]])

Параметры

$hWnd Handle to the owner window for the dialog box
$sLocalName Name of a local device, such as "F:" or "LPT1"
$sRemoteName [необязательный] Name of the network resource to disconnect. This member can be 0 if $LocalName is specified.
    When sLocalName is specified, the connection to the network resource redirected from sLocalName is
    disconnected.
$iFlags [необязательный] Flags describing the connection. Can be a combination of:
    1 - If this value is set, the specified connection is no longer a persistent one. This flag is valid only if
    sLocalName specifies a local device.
    2 - If this value is NOT set, the system applies force when disconnecting

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

Успех:Возвращает 1. If the user cancels the dialog box, the return value is –1.
Ошибка:Возвращает 0 и устанавливает @error.

См. также

_WinNet_DisconnectDialog

См. также

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