Windows API supports networking capabilities (WNet Functions). WNet functions to add an cancel network connections and to retrieve information about the current configuration of the network. 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 enumerates network resource perform the following steps :
1. Pass the address of a NETRESOURCE structure that represents the resource to the WNetOpenEnum function.
2. Allocate a buffer large enough to hold the array of NETRESOURCE structures that the WNetEnumResource function returns, plus the strings to which their members point.
3. Pass the resource handle returned by WNetOpenEnum to the WNetEnumResource function.
4. Close the resource handle when it is no longer needed by calling the WNetCloseEnum function.