>Is there a way and how do you do it, to rturn the shared name for a printer mapped to the local lpt1: port?
>
>I can get the shared names for devices mapped to the current PC but I cannot get the shared name of the local device.
DOS Tip: Rogaine.
You can enumerate the shares on a network using my NETRESOURCE class, and look for the printer shares associqted with a given server, but that doesn't solve the problems of possibly associating more than one name with a device, or the shared device being indirectly shared as a pooled resource in a domain.