Article ID: 243627 - Last Review: February 22, 2007 - Revision: 3.2 INFO: Disconnecting from a NetWare File Server by Using WNetCancelConnection2() APIThis article was previously published under Q243627 SUMMARY
Logging off and detaching from a NetWare file server by using the WNetCancelConnection2 function requires that you pass only the file server name as the resource name. The connection type should be 0 (zero) and the force parameter should be set to True as shown in the following Visual Basic subroutines, Attach_FileServer and Detach_FileServer: MORE INFORMATION
To determine whether NetWare file servers are attached, right-click Network Neighborhood (or My Network Places), and then click Who am I. This action shows the servers that are currently attached. If you perform this action after the WNetAddConnection2function, the server that was attached to is displayed; after the WNetCancelConnection2 function, the server should not be present in the list.
REFERENCESFor additional information on adding/removing connections, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
173011
(http://support.microsoft.com/kb/173011/EN-US/
)
HOWTO: Add and Remove Network Connections
183366
(http://support.microsoft.com/kb/183366/EN-US/
)
INFO: WNetAddConnection2 and Multiple User Credentials
APPLIES TO
| Article Translations
|
Back to the top
