» Help

Display the Windows Disconnect Network Drive dialog box


This code shows how to displays the Windows Disconnect Network Drives dialog box.

If the user clicks OK the selected network drive is disconnected and True is returned. If the user cancels or there is an error False is returned. OwnerHandle is the handle of the window that owns the dialog box.

function DisconnectNetworkDriveDialog(const OwnerHandle: THandle): Boolean;
  Result := WNetDisconnectDialog(
  ) = NO_ERROR;
Author: Unknown
Contributor: Shlomo Abuisak
Added: 2010-12-17
Last updated: 2010-12-17

« Return to contents »