Disable print fuctionality

c++ / delphi package - dll injection and api hooking
Post Reply
Jetli
Posts: 5
Joined: Mon Nov 01, 2004 10:42 am
Contact:

Disable print fuctionality

Post by Jetli »

Is there any way either by hook or else To disallow user to print???

I want to prevent user print. I am looking for security of document. And dont want to allow printing it. I am able to disable copy,paste by hooking WM* clipboard messages.

Can u suggest me which message i need to Hook for printing,

How windows do things for print a document.

Any idea how can i move further.


regards
Jelti
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

There are multiple possibilities. You could hook/manipulate the printer enumeration APIs and hide the printers that way. Or you could hook CreateDCA/W or some other printer related APIs. Check out the PrintMonitor demo. That one shows you which APIs are usually called for printing.
Post Reply