Hook Printer

Hello i want to know such thing:
How add ID number(for example time and user name) in every page that
prints in my machine (i am interesting in win nt(2000 and xp), but if
you know about 9x i want to know this also). Do give me some ideas
about this? May be Printer provider or printer driver?
Decision must be hardware independent … And the last thing:
printer may be network or local…

So you want to embed this id into every page that is printed? Or do you
just want to keep track of the time and the user id that generated the
print job? If you are attempting to embed the id into the data stream,
you can write a print processor to achieve this. Basically, you are
given a pointer to the bits within your print processor. You can then
figure out what you want to do with it. The genprint sample in the DDK
will be a good starting point. You can also do this within a print
driver.

If on the other hand, you want to only keep track of the user id and the
time for each print job you can write an app that uses the SDK level
APIs such as EnumJobs, etc.

  • Ashwin

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

-----Original Message-----
From: alex jones [mailto:xxxxx@mail.ru]
Sent: Monday, March 25, 2002 6:45 AM
To: NT Developers Interest List
Subject: [ntdev] Hook Printer

Hello i want to know such thing:
How add ID number(for example time and user name) in every page
that prints in my machine (i am interesting in win nt(2000 and xp), but
if you know about 9x i want to know this also). Do give me some ideas
about this? May be Printer provider or printer driver?
Decision must be hardware independent … And the last thing:
printer may be network or local…


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

>>So you want to embed this id into every page that is printed?
Yes i really want to do this in every page

> If you are attempting to embed the id into the data stream,
>you can write a print processor to achieve this. Basically, you are
>given a pointer to the bits within your print processor. You can then
>figure out what you want to do with it. The genprint sample in the DDK
>will be a good starting point. You can also do this within a print
>driver.

So which decision better: Print processor or print driver?
And do you found anywhere something about it?
Thanks

Sounds like a print processor will be a good idea. You can find more
info on print processors in the DDK docs. The genprint sample source is
almost identical to the print proc that ships with windows…winprint.
So it is a good starting point. Basically, your print processor is given
all the rendered data. What you do with it is entirely upto you.

  • Ashwin

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

-----Original Message-----
From: alex jones [mailto:xxxxx@mail.ru]
Sent: Thursday, April 25, 2002 4:59 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Hook Printer

>So you want to embed this id into every page that is printed?
Yes i really want to do this in every page
> If you are attempting to embed the id into the data stream, you can
>write a print processor to achieve this. Basically, you are given a
>pointer to the bits within your print processor. You can then figure
>out what you want to do with it. The genprint sample in the DDK will
>be a good starting point. You can also do this within a print driver.

So which decision better: Print processor or print driver?
And do you found anywhere something about it?
Thanks


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