ReadPrinter (winspool)
Last changed: -24.11.248.86

.
Summary
TODO - a short description

C# Signature:

    [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);

VB Signature:

Declare Function ReadPrinter Lib "winspool.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

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.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation
ReadPrinter on MSDN