Determining Available Network Resources

The WNet API includes a set of functions to enumerate the available network resources.

    To create a network resource list
  1. Call WNetOpenEnum, which returns an enumeration handle used in step 2.
  2. Call WNetEnumResource to package the information about the resources in the form of an array of NETRESOURCE structures.
  3. Call WNetOpenEnum to enumerate a container's resources. A container is a network resource that contains other resources.
  4. Call WNetCloseEnum to close the enumeration handle.