I've customized a pscript driver and implemented the
IPrintOemPS2::WritePrinter method. From there, I collect postscript
data, process it and then call the spooler's WritePrinter API as
if(::WritePrinter(pdevobj->hPrinter,pBuf,cbBuffer,pcbWritten) == FALSE)
// error processing
// normal case
The problem is that the spooler's WritePrinter call above always fails
with system error ERROR_INVALID_HANDLE.
So, where's is the error and which handle should I use?