Uses of the different forms of the gdiPlaySpoolStream and ReadPrinter functions are shown in the following pseudo code version of the WinprintPrintDocumentOnPrintProcessor function.
The WinprintPrintDocumentOnPrintProcessor function is supplied two parameters: