«« Site Rescued »»

While the site is still going to move from its current host, a new site will now take its place. More Info.

The new site may have less content, but the core will now remain. And it will now play nicely with phones! Keep an eye on the DelphiDabbler Blog for news.

» 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;
begin
  Result := WNetDisconnectDialog(
    OwnerHandle, RESOURCETYPE_DISK
  ) = NO_ERROR;
end;
Author: Unknown
Contributor: Shlomo Abuisak
Added: 2010-12-17
Last updated: 2010-12-17

« Return to contents »