Group: Windows Networking - Library: mpr
The WNetDisconnectDialog function starts a general browsing dialog box for disconnecting from network resources. The function requires a handle to the owner window for the dialog box.
Starting a dialog box for connecting to network resources (mapping network drive)
DWORD WNetDisconnectDialog(
HWND hwnd,
DWORD dwType
);
DECLARE INTEGER WNetDisconnectDialog IN mpr;
INTEGER hwnd,;
INTEGER dwType
hwnd [in] Handle to the owner window for the dialog box.
dwType [in] Resource type to disconnect from.
If the function succeeds, the return value is NO_ERROR (0).
If the user chooses OK in the dialog box, the requested network disconnection will have been made when the WNetDisconnectDialog function returns.
dwType -- only RESOURCETYPE_DISK is allowed.