How to Connect to a Network Drive by Using WNetAddConnection (141757)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
This article was previously published under Q141757 SUMMARY
Windows version 3.1 provides a new API Call, WNetAddConnection, which
redirects a local device to a shared resource or network server.
WNetAddConnection requires the name of the local device, the name of the
network resource, and the password necessary to use that resource.
This article explains in detail the arguments and potential error messages
for the Windows version 3.1 WNetAddConnection function call.
REFERENCES
MSDN/VB Starter Kit, (contained with the Professional and Enterprise
versions of Visual Basic 4.0), Product Documentation, SDKs, "Windows
3.1 SDK," Programmers Reference Volume 2, and the WIN31API.HLP file
(also shipped with the Microsoft Visual Basic version 2.0, 3.0
Professional Version).
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbnetwork KB141757 |
---|
|