Hook the Printer-Api´s

c++ / delphi package - dll injection and api hooking
Post Reply
G-Tech
Posts: 1
Joined: Sun Feb 20, 2005 11:57 pm
Location: Reutlingen - Germany

Hook the Printer-Api´s

Post by G-Tech »

hi there!

I´m writing a programm for an internet-café. my only last but BIG problem is printing.

when a user starts a printjob, the programm´s got to check if the user has enough credits for the whole printjob.

If he has - no problem.

But if not - he may only print as much pages, as it´s credit allows to.

my idea was to catch the "StartPage" and "EndPage" api´s like in the printmonitor demo, and only to pass as much StartPage and EndPage as the credit allows to.

But how do i do this?????

Can somebody help me by this???

Thanks
xHeaps
Posts: 17
Joined: Mon Oct 18, 2004 12:21 am

Post by xHeaps »

Perhaps this thread can be of some help to you: viewtopic.php?t=113

Good luck!
Post Reply