[DllImport("winspool.Drv", EntryPoint = "ReadPrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
static extern bool ReadPrinter(IntPtr hPrinter, IntPtr pBuf, int cbBuf, out int pNoBytesRead);
Declare Function ReadPrinter Lib "winspool.dll" (TODO) As TODO
None.
Do you know one? Please contribute it!
When reading a print job a maximum of 262144 (256k) bytes are returned per read. So if the print job is larger than 256k multiple reads will be required.
Please add some!
Please add some!