The driver communicates with an application three different ways.
Method 1: Through the WM_COPYDATA Windows message
Method 2: Through a registered window message
Method 3: Through a pipe interface (for Terminal Server printer drivers)
The printer driver will send messages when the following events happen during the printing process:
Source code for the Message Capture Sample is available in C++, VB, Delphi, C#, J#, VB .NET. Using the Start Application feature of the Black Ice printer drivers along with the messaging interface provides a straightforward method of monitoring the printing process.