Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi,

I would like to capture the contents of a document which was sent for the printing, before it gets printed. Do I need to write any DLLs which would intercept the print system call when any printing event is triggered and then capture the data? or this could be achieved leveraging any existing DLLs? or is there any other simple way doing this.

I was thinking to make this work on any platform, intercepting the print system call is the only way capturing the data.

Kindly provide your suggestions on how to achieve this. It would be grateful if you could provide some sample code.

Thank you,
Sid

What I have tried:

I thought of using WMI to pause the printer and get the PrintJobs before they get printed. But it seems its not a feasible solution.
Posted
Updated 19-Jul-17 22:36pm

1 solution

You probably need a filter driver which intercepts the data as it is being sent to the device. See Getting Started with the Windows Driver Kit | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900