Windows 2000 Terminal Services Printer Redirection Whitepaper




Download 486,5 Kb.
bet39/43
Sana21.03.2017
Hajmi486,5 Kb.
#828
1   ...   35   36   37   38   39   40   41   42   43

Printer I/O Sequence


The Printer I/O sequence is shown in Figure 7.





Figure 7 Printer I/O sequence




Details of Printer I/O Sequence


    1. An application calls the Spooler API to print.

    2. The Spooler checks its internal printer port table and determines that RDPDR.SYS is the handler for this request. The Spooler generates a CreateFile on the printer port.

    3. KERNEL-mode RDPDR.SYS sends a Create IRP via Virtual Channel to the RDPDR.LIB module of the TS client. This IRP contains the device ID, device name, and other data.

    4. The RDPDR.LIB module of the TS client calls OpenPrinter using the device ID on the printer.

    5. The Spooler sends a Write IRP to RDPDR.SYS.

    6. KERNEL-mode RDPDR.SYS sends a Write IRP via Virtual Channel to the RDPDR.LIB module of the TS client. This IRP contains the device ID, device name, and other data.



    7-10. The RDPDR.LIB module of the TS client calls WritePrinter, using the device ID on the printer. Similar operations take place for the Close IRP from the Spooler.



Download 486,5 Kb.
1   ...   35   36   37   38   39   40   41   42   43




Download 486,5 Kb.

Bosh sahifa
Aloqalar

    Bosh sahifa



Windows 2000 Terminal Services Printer Redirection Whitepaper

Download 486,5 Kb.