Notice Of Closure

Please note that this website is due to close down on 15th June 2020.

In the interim I will try to move as much content as possible over to my GitHub account. Thanks to everyone who has supported the site over the years.

» 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 »