The printer driver will send messages when the following events happen during the printing process:
- Start of Document (StartDoc)
- Start of Page (StartPage)
- End of Page (EndPage)
- End of Document (EndDoc)
- Printer Settings changed
- Image passed in Memory
- Abort
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)