Creating a hidden local port in Vista



Hi,

I'm trying to create a hidden local port, similar to XPSPort: used by
Microsoft's XPS Document Writer.

The print driver I am working on/with creates it's own named local
port upon install. This has been fine for Windows 2000 and XP, but in
Vista, creating a local port has the unfortunate (and annoying) side
effect of also creating a file of the same name in the user's My
Documents folder.

We orignally got around this by using a port name of NUL. The problem
with this is multiple copies of the printer all use the same port and
print jobs between the printers will block on the port name ( only one
print job running per port name) and you cannot easily do parallel
printing.

I was able to create a local port that was "hidden" using XcvData and
appending a colon (:) to the end of the port name, similar to how
Microsoft has named the port associated with their XPS Document
Writer.

With the : on the name, the driver cannot use the port, it throws an
error 123 - "The filename, directory name, or volume label syntax is
incorrect." every time I print. I'm assuming that this is from the :
on the port name.

Is this even possible? How does Microsoft's XPS driver do this?

Thanks.
Geekgrrl.
.



Relevant Pages

  • Re: proxy class - xml
    ... Local Port: ... Remote Host: bizt.somedomain.com ... Remote Port: 443 ... we also need to modify our webservice client proxy. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: "Microsoft Office Word has stopped working"
    ... But Word must have a locally installed printer driver set as the Windows default to work correctly. ... Xerox printer port is TCP/IP. ... Third one is Microsoft Imaging Writer and it’s on local port> too. ... >>> OK I do not have any global template or any COM add-ins. ...
    (microsoft.public.word.application.errors)
  • Re: Cant Print From Vista Laptop to Printer on XP Desktop
    ... I am performing the instructions on my Vista computer as you have written. ... I am entering my computer name as my Local Port. ... I can access files on the Desktop from my Laptop and access files on my ...
    (microsoft.public.windows.vista.networking_sharing)
  • Re: Port number query - help needed
    ... I use Outlook Express on my desktop and it ... >> this port. ... The only difference is the firewall used. ... >It appears to me that you may have a Local Port firewall rule problem ...
    (comp.security.firewalls)
  • Re: kerio: (1) Former freeness, & (2) Filter rules precedence
    ... a rule for SSH for a client should look something like ... > Local Port: 22 ... > Remote Port: ANY ...
    (comp.security.firewalls)

Loading