The answer is DEVMODE.
The supported way to communicate between the UI dll and the rendering
dll is through the DEVMODE. Unidrv provides a method of extending the
devmode. You should add an extension to the devmode and put your extra
data there.
I think most of the examples do this; watermarkuni certainly does. See
\WINDDK\3790.1830\src\print\oemdll\watermarkuni\common\devmode.h.
Or, if your paper sizes will all fit in a short (width & length), just
use DMPAPER_USER[+n] in the dmPaperSize field, and set dmPaperLength and
dmPaperWidth.
How your renderer communicates this information to the printer is up to
you, and is most likely propietary.
ScottR
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Sunday, January 22, 2006 10:42 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Printer Driver Custom Size for Pages
Hi Folks,
We have written a UI plug-in to go along with our printer driver (unidrv
based).
The UI allows two edit-boxes to enter a customizable length and width.
We can get these values from the UI and store them in the
registry/local-variables.
What is the best place to transfer these into the renderer (i.e. unidrv
section of codes) to make the physical paper size match what the user
has entered into the edit boxes?
Thanks so much for the insight.
Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
(C) 607-342-1150
xxxxx@flconsult.com
www.fl-eng.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@xerox.com To
unsubscribe send a blank email to xxxxx@lists.osr.com