Using Windows Networking

The WNet functions enable your application to query and control network connections directly or to give direct control of the network connections to the user. To use these functions, you must link to the multiple-provider router library (MPR.LIB). This section discusses how to use the network functions in your application.

Using the connections dialog box

Enumerating network resources

Adding a network connection

Retrieving the connection name

Retrieving the user name

Canceling a network connection

Retrieving network errors