Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Language monitor can not read data from some port monitors...

0 views
Skip to first unread message

Justin Huang

unread,
May 20, 2008, 6:13:01 AM5/20/08
to
Hi,
I'm developing a printer driver that should communicate with the printer
bi-directionally. I do this in my language monitor by calling ReadPort API of
the port monitor like this:
ret = (*pIniPort->fn.pfnReadPort)(pIniPort->hPort, pBuffer, cbBuf,
&cbRead);

It works normally when the port is USB port (USB001, USB002, ...). But it
fails if the port is a Standard TCP/IP or a "redirected port" (TS001, TS002,
...).
Any ideas?

Justin Huang.

Justin Huang

unread,
May 20, 2008, 11:36:01 PM5/20/08
to
Some more information...
I added GetLastError() after calling pfnReadPort.
For redirected ports, I always got a ERROR_SHARING_VIOLATION error code.
For 9100 ports, I got ERROR_NOT_SUPPORTED.
Anyone helps me?
0 new messages