Disconnecting a Network Drive

I understand how to connect a network drive using the WnetAddConnection API function; however, I do not know how to disconnect the network drive. How do I go about doing this?

The API function WNetCancelConnection will do this for you. The declare statement is in the Windows 3.1 API declaration help file, and the documentation on how to use the function is in the Windows 3.1 SDK help file.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: