Determining Available Network Resources
The WNet API includes a set of functions to enumerate the available network resources.
To create a network resource list
- Call WNetOpenEnum, which returns an enumeration handle used in step 2.
- Call WNetEnumResource to package the information about the resources in the form of an array of NETRESOURCE structures.
- Call WNetOpenEnum to enumerate a container's resources. A container is a network resource that contains other resources.
- Call WNetCloseEnum to close the enumeration handle.