How to monitor a printer?

Hello all tops,

Now I am thinking a new question.

I want to monitor the data which is sent to a printer.

But I have no exp about this question.

1.Could you tell me by which protocol we send the docs to a printer to
print?
2.Could you introduce something about LDP & IPP to me, such as service
port, protocol?
3. Any others hints about my question.

Thanks a lot!

Anthony

Hello all,

Now I make some progresses. I can monitor LPD packets at its service
port -515. But it is really hard to reorganize the data which are sent to
print. They are words from out of space.

Any hints?

Anthony

“Anthony” дÈëÓʼþ news:xxxxx@ntdev…
>
> Hello all tops,
>
> Now I am thinking a new question.
>
> I want to monitor the data which is sent to a printer.
>
> But I have no exp about this question.
>
> 1.Could you tell me by which protocol we send the docs to a printer to
> print?
> 2.Could you introduce something about LDP & IPP to me, such as service
> port, protocol?
> 3. Any others hints about my question.
>
> Thanks a lot!
>
> Anthony
>
>
>
>

You need to write a port monitor in order to monitor that is being sent to the printer port. The protocol really depends on the port itself. But the data that is sent down to a port monitor is not port-specific. The higher level print drivers do not really care which port you are printing to. Their main concern is the actual rendering of the print job. Once the rendering is done, they just send the data down. It is the responsibility of the port monitor in conjunction with the kernel mode port driver to conver this data into a form suitable for that particular port.

Hope this helps.

  • 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 Anthony
Sent: Tuesday, July 15, 2003 12:28 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: How to monitor a printer?

Hello all,

Now I make some progresses. I can monitor LPD packets at its service port -515. But it is really hard to reorganize the data which are sent to print. They are words from out of space.

Any hints?

Anthony

“Anthony” д???ʼ? news:xxxxx@ntdev…
>
> Hello all tops,
>
> Now I am thinking a new question.
>
> I want to monitor the data which is sent to a printer.
>
> But I have no exp about this question.
>
> 1.Could you tell me by which protocol we send the docs to a printer
> to print?
> 2.Could you introduce something about LDP & IPP to me, such as
> service port, protocol?
> 3. Any others hints about my question.
>
> Thanks a lot!
>
> Anthony
>
>
>
>


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

Hello Ashwin,

Thanks a lot.

Now I build a driver to monitor LPD packets(the default port is 515).

To my surprise, the content of a doc has been changed when my driver
captures it. For example, I write “Hello world” in a doc, but when I
capture it, it has changed to “XXXX*****p1212p121*****” or something like
these.

I know these info can be recognized by printers, but not me. I want to
find a way to reorganize the content which is captured by my driver.

Any more hints?

Anthony

“Ashwin Needamangala” ??? news:xxxxx@ntdev…

You need to write a port monitor in order to monitor that is being sent to
the printer port. The protocol really depends on the port itself. But the
data that is sent down to a port monitor is not port-specific. The higher
level print drivers do not really care which port you are printing to. Their
main concern is the actual rendering of the print job. Once the rendering is
done, they just send the data down. It is the responsibility of the port
monitor in conjunction with the kernel mode port driver to conver this data
into a form suitable for that particular port.

Hope this helps.

- 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 Anthony
Sent: Tuesday, July 15, 2003 12:28 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: How to monitor a printer?

Hello all,

Now I make some progresses. I can monitor LPD packets at its service
port -515. But it is really hard to reorganize the data which are sent to
print. They are words from out of space.

Any hints?

Anthony

“Anthony” дÈëÓʼþ news:xxxxx@ntdev…
>
> Hello all tops,
>
> Now I am thinking a new question.
>
> I want to monitor the data which is sent to a printer.
>
> But I have no exp about this question.
>
> 1.Could you tell me by which protocol we send the docs to a printer
> to print?
> 2.Could you introduce something about LDP & IPP to me, such as
> service port, protocol?
> 3. Any others hints about my question.
>
> Thanks a lot!
>
> Anthony
>
>
>
>


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