By the way, here's the code:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private Declare Function WNetConnectionDialog Lib "mpr.dll" (ByVal hwnd As Long, ByVal dwType As Long) As Long | |
Private Declare Function WNetDisconnectDialog Lib "mpr.dll" (ByVal hwnd As Long, ByVal dwType As Long) As Long | |
Private Const RESOURCETYPE_DISK = &H1 | |
Public Sub MapDriveShow() | |
Call WNetConnectionDialog(0&, RESOURCETYPE_DISK) | |
End Sub | |
Public Sub DisconnectDriveShow() | |
Call WNetDisconnectDialog(0&, RESOURCETYPE_DISK) | |
End Sub |
Komentar