VB and VBA Users Source Code: Show the Map and Disconnect drive dialogs
[
Home
|
Contents
|
Search
|
Reply
| Previous | Next ]
VB/VBA Source Code
Show the Map and Disconnect drive dialogs
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Friday, February 16, 2001
Hits:
678
Category:
Networks
Article:
The following routines display the map and disconnect network drive dialogs: 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 'Purpose : Shows the Map Drive dialog 'Inputs : N/A 'Outputs : N/A 'Author : Andrew Baker 'Date : 16/02/2001 15:51 'Notes : 'Assumptions : Public Sub MapDriveShow() Call WNetConnectionDialog(0&, RESOURCETYPE_DISK) End Sub 'Purpose : Shows the UnMap Drive dialog 'Inputs : N/A 'Outputs : N/A 'Author : Andrew Baker 'Date : 16/02/2001 15:51 'Notes : 'Assumptions : Public Sub DisconnectDriveShow() Call WNetDisconnectDialog(0&, RESOURCETYPE_DISK) End Sub
Terms and Conditions
Support this site
Download a trial version of the Excel Workbook Rebuilder