Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get printer network name using API for copyfile api
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00883676
Message ID:
00883782
Views:
11
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 printers
http://www.news2news.com/vfp/?example=146

Retrieving information about shared resources on the local computer (WinNT/XP)
http://www.news2news.com/vfp/?example=351
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform