VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Map and Unmap network drives using Windows Map Network Drives dialog

by Wes Savage (2 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 22nd November 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Map and Unmap network drives using Windows "Map Network Drives" dialog

API Declarations


(ByVal hwnd As Long, ByVal dwType As Long) As Long
Public Declare Function WNetDisconnectDialog Lib "mpr.dll" _
(ByVal hwnd As Long, ByVal dwType As Long) As Long


Rate Map and Unmap network drives using Windows Map Network Drives dialog



   Call WNetConnectionDialog(Me.hwnd, 1)
End Sub

Private Sub Command2_Click()
   Call WNetDisconnectDialog(Me.hwnd, 1)
End Sub

Download this snippet    Add to My Saved Code

Map and Unmap network drives using Windows Map Network Drives dialog Comments

No comments have been posted about Map and Unmap network drives using Windows Map Network Drives dialog. Why not be the first to post a comment about Map and Unmap network drives using Windows Map Network Drives dialog.

Post your comment

Subject:
Message:
0/1000 characters