Hi Tracy,
API function
EnumPrinters allows to enumerate various groups of printers: PRINTER_ENUM_REMOTE, PRINTER_ENUM_SHARED, PRINTER_ENUM_NETWORK, PRINTER_ENUM_LOCAL...
On return it populates
PRINTER_INFO_2 structure, which has member
pShareName.
Another candidate is the
NetShareEnum that retrieves information about each shared resource on a server or the local computer.
There should be something similar in Shell functionality too.
Code samples on news2news:
Using EnumPrinters function to enumerate locally installed printershttp://www.news2news.com/vfp/?example=146Retrieving information about shared resources on the local computer (WinNT/XP)http://www.news2news.com/vfp/?example=351