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,
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.