PortName = Func(PrinterName);
There are any function into the windows Api for do this?.
Thanks in advance!
Salvador Huertas.
"Salvador Huertas" <shue...@ghuertasauto.com> wrote:
>I need get the printer port name giving the windows printer name. More or
>less:
>
>PortName = Func(PrinterName);
>
>There are any function into the windows Api for do this?.
>
First OpenPrinter
in : printer name
out : printer handle
tnen GetPrinter with level=2
in: printer handle, level
out: PRINTER_INFO_2 member pPortName
and ClosePrinter
in: printer handle
All function Win32 API
Vladimir.