🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: be.comp.programming
1 messages
1 total messages Started by Ivan Van den Bossche Sun, 17 Nov 2002 12:16
Virtual Printer Driver
#6633
Author: Ivan Van den Bossche
Date: Sun, 17 Nov 2002 12:16
32 lines
2317 bytes
Hi,

I'm new at Windows driver development and I am trying to develop a Virtual
Printer driver which must produce a bitmap file.  My driver must do the
following:

A user prints to the virtual printer from any possible Windows application.
When a user gives the command to print:  A dialog box must appear.  These
dialog box gives the user the opportunity to select a bmp file, color
settings, quality (DPI), etc, ...  Afterwards the BMP will be produced.

I would like to change each scanline received in pBuf in the following
function: FilterGraphics.  The reason why I need this is because I would
like to add a tag at the beginning of the scanline and at the end.  I will
use these tags to recognize each scanline in the portmonitor so I can write
these scanlines to a file without printercommands(PCL/POSTSCRIPT).  The
portmonitor produces the BMP file.

STDMETHOD
  (FilterGraphics) (
    THIS_
    PDEVOBJ pdevobj,
    PBYTE pBuf,
    DWORD dwLen
    )PURE;

Occording to me I think I need the following components:

A modified version of OEMUNI.DLL (this component must modify the scanlines
in FilterGraphics)
A modified version of LOCALMON (this component must write the BMP to a file)
A modified version of LOCALUI (this component must display a dialog box).
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads