R: RE: TCP/IP printing: How read info back form the printer

Thank you for the answer Ashwin.
But since TCPMON does not support the ReadPort function, does it make available for the language monitor some other way to retrieve info from the printer? or I have to (can) implement a reading on a socket at Lang Mon level? or I must write a my own port monitor for TCP communication?

I am sorry to seem so dummy, but at the very first time of driver developing, is very hard to find documentation and resource in order to make not only a driver that works, but a driver with the best choice for the Microsoft world.

Thank you again,

GG.

-----Messaggio originale-----
Da: Ashwin Needamangala [mailto:xxxxx@windows.microsoft.com]
Inviato: luned? 1 dicembre 2003 19.24
A: Windows System Software Devs Interest List
Oggetto: [ntdev] RE: TCP/IP printing: How read info back form the printer

Tcpmon does not support the ReadPort function. That is the reason for
your getting the unsupported message. So I guess the answer to your
question is that you cannot use your language monitor with tcpmon.

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@cimitaly.it
Sent: Monday, December 01, 2003 3:51 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] TCP/IP printing: How read info back form the printer

Hi all,

I must customize my printer driver (based on UNIDRV architecture) for
printing over a standard TCP/IP port. I would like to use the tcpmon.dll
and works only in my language monitor dll. Can I do that?
CUrrently I can send data to the printer and print correctly, but I am
not able to receive back any info. When I call the ReadPort() function,
it works fine for LPT and USB printing, it return with “The request is
not supported” error.
Any ideas?

Thank you very much in advance for any suggestion,

GG.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@cimitaly.it
To unsubscribe send a blank email to xxxxx@lists.osr.com

As I mentioned in my post to your same question on the ddk newsgrp, the only workaround I can think of is to use GetPrinter with level 2. But this approach will work only if your printer supports SNMP.

You had mentioned that it was very hard for you to find the right docs/resources. If you have any input on specific areas in the DDK docs/samples that can be improved, I would like to hear that. Thanks for your feedback!

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no rights.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Giacomo Giacobbi
Sent: Monday, December 01, 2003 11:49 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] R: RE: TCP/IP printing: How read info back form the printer

Thank you for the answer Ashwin.
But since TCPMON does not support the ReadPort function, does it make available for the language monitor some other way to retrieve info from the printer? or I have to (can) implement a reading on a socket at Lang Mon level? or I must write a my own port monitor for TCP communication?

I am sorry to seem so dummy, but at the very first time of driver developing, is very hard to find documentation and resource in order to make not only a driver that works, but a driver with the best choice for the Microsoft world.

Thank you again,

GG.

-----Messaggio originale-----
Da: Ashwin Needamangala [mailto:xxxxx@windows.microsoft.com]
Inviato: luned? 1 dicembre 2003 19.24
A: Windows System Software Devs Interest List
Oggetto: [ntdev] RE: TCP/IP printing: How read info back form the printer

Tcpmon does not support the ReadPort function. That is the reason for your getting the unsupported message. So I guess the answer to your question is that you cannot use your language monitor with tcpmon.

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@cimitaly.it
Sent: Monday, December 01, 2003 3:51 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] TCP/IP printing: How read info back form the printer

Hi all,

I must customize my printer driver (based on UNIDRV architecture) for printing over a standard TCP/IP port. I would like to use the tcpmon.dll and works only in my language monitor dll. Can I do that?
CUrrently I can send data to the printer and print correctly, but I am not able to receive back any info. When I call the ReadPort() function, it works fine for LPT and USB printing, it return with “The request is not supported” error.
Any ideas?

Thank you very much in advance for any suggestion,

GG.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@cimitaly.it To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com To unsubscribe send a blank email to xxxxx@lists.osr.com