>is there a command or API call i can use that will display a dialog box of all the shared folders and/or printers on the network?
>
Download my NETRESOURCE class from the Files section (you'll also need CLSHeap, also in the Files section.) It contains example code that will iterate all shared resources available on a network. It does not create a dialog; you'll need to collect the desired shares into a cursor or array and create a form with a listbox or combo or TreeView to display the results.
You can also grab the files from my Web Site (
http://www.esolserv.com - Craig finally fixed up what I frobbed in converting to an Active Directory environment.)
You can also call the Win32 API WNetConnectionDialog(), which fires up a dialog box to map a UNC to a drive letter (see the Windows API section), or use Shell.Application's BrowseForFolder method (see the FAQ entry on an Enhanced GetDir()) or use Bela Bodec's bbGetDir, also available in the Files section.