🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #6633

Virtual Printer Driver

#6633
From: 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).
Technical Details
Message-ID: <KMLB9.5648$Ti2.1102@afrodite.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newsfeed.online.be!syros.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,e6e3716448d4f392,start
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-11-17 04:28:01 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newsfeed.online.be!syros.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
From: "Ivan Van den Bossche" <ivan.van.den.bossche@pandora.be>
Newsgroups: be.comp.programming
Subject: Virtual Printer Driver
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <KMLB9.5648$Ti2.1102@afrodite.telenet-ops.be>
Date: Sun, 17 Nov 2002 12:16:42 GMT
NNTP-Posting-Host: 213.119.173.212
X-Complaints-To: abuse@telenet.be
X-Trace: afrodite.telenet-ops.be 1037535402 213.119.173.212 (Sun, 17 Nov 2002 13:16:42 MET)
NNTP-Posting-Date: Sun, 17 Nov 2002 13:16:42 MET
Organization: Telenet Internet