none
Printer Ports: what is "Local Port" type for? RRS feed

  • Question

  • Printer Ports: what is "Local Port" type for?

    And what's the difference between this type and other types? I conceptually understand how other types (e.g. serial/parallel/tcp/file/printer specific types) work but not "Local Port" because the name is not very descriptive.

    What would happen if I attach a PS driver to the "Local Port"? I saw XPS uses "Local Port" on my computer and it seems "Local Port" is an advanced version of "Print to File".

    Thanks!

    Sunday, January 5, 2014 9:02 PM

Answers

  • Not really a question on writing device drivers which is what this forum is about.  Local port is mainly for virtual printers, such as XPS, so yes in a sense it represents print to file capabilities, or other things that do not directly connect to a physical or network port.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Sunday, January 5, 2014 9:08 PM

All replies

  • Not really a question on writing device drivers which is what this forum is about.  Local port is mainly for virtual printers, such as XPS, so yes in a sense it represents print to file capabilities, or other things that do not directly connect to a physical or network port.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Sunday, January 5, 2014 9:08 PM
  • Thanks for answering my question. I posted the question here because I thought  only device driver developers can answer this specific question.

    What would happen if I attach a PS driver or any other drivers to the local port? Does the local port have any special requirement for the printer drivers?

    Sunday, January 5, 2014 9:15 PM
  • Would this help explain my problem with my UNIDRV based driver:

    http://social.msdn.microsoft.com/Forums/en-US/0c372b60-b7f3-43d5-8ba4-0820019377b6/why-is-my-unidrv-based-driver-writing-the-port-name-as-a-file-in-the-users-documents-folder?forum=wdk

    My driver is using a custom, specially named Port, which is set up as a 'Local Port'. Does the UNIDRV DLL always write a file out named the same as the port's name for a 'Local Port'?

    Should I be configuring my port not as a 'local port'? (By the way, my driver does not actually talk to a physical device, so I would think a 'Local Port' would be the correct way to configure it, wouldn't it?)

    Tuesday, January 7, 2014 10:56 PM