Function Reference


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 [optional] 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 [optional] 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

Return Value

Success: 1. If the user cancels the dialog box, the return value is –1.
Failure: 0 and sets the @error flag to non-zero.



See Also

Search WNetDisconnectDialog1 in MSDN Library.