RE: Print To File Checkbox

I don’t know how to do this. And I doubt that you can.

Even if you do, it does not prevent the user from creating a port
pointing at a file and using that. ie, you can create a local port with
the name “c:\file.prn” and the application’s “print to file” checkbox
will NOT be checked, so you won’t be preventing the user from printing
to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox

Hi Folks,

Does anyone know how to get a callback/notification/etc in a
printer driver to see if the user has checked the “Print To File” box
commonly available in the application?

If not, is there a nice way to use the PrintDlgEx structure
(from within a printer driver) to hide that checkbox from the user?

Thanks

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: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email message has been scanned
by
PineApp Mail-SeCure for the presence of malicious code, vandals
& computer viruses.

************************************************************************
************

Hi Scott,

Thanks for the response - that is what I thought. Needs to be done at
the application layer.

Does anyone have a good guide for intregrating the cpsuisam example into
a printer driver? We are having problems figuring out what code needs to
pulled out and what scripts need to be changed so we can compile the
custom UI into our driver base.

thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

I don’t know how to do this. And I doubt that you can.

Even if you do, it does not prevent the user from creating a port
pointing at a file and using that. ie, you can create a local port with
the name “c:\file.prn” and the application’s “print to file” checkbox
will NOT be checked, so you won’t be preventing the user from printing
to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox

Hi Folks,

Does anyone know how to get a callback/notification/etc in a printer
driver to see if the user has checked the “Print To File” box commonly
available in the application?

If not, is there a nice way to use the PrintDlgEx structure (from within
a printer driver) to hide that checkbox from the user?

Thanks

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: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Why do you want to put the cpusi sample into your driver?

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Scott,

Thanks for the response - that is what I thought. Needs to be
done at the application layer.

Does anyone have a good guide for intregrating the cpsuisam
example into a printer driver? We are having problems figuring out what
code needs to pulled out and what scripts need to be changed so we can
compile the custom UI into our driver base.

thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

I don’t know how to do this. And I doubt that you can.

Even if you do, it does not prevent the user from creating a
port pointing at a file and using that. ie, you can create a local port
with the name “c:\file.prn” and the application’s “print to file”
checkbox will NOT be checked, so you won’t be preventing the user from
printing to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox

Hi Folks,

Does anyone know how to get a callback/notification/etc
in a printer driver to see if the user has checked the “Print To File”
box commonly available in the application?

If not, is there a nice way to use the PrintDlgEx
structure (from within a printer driver) to hide that checkbox from the
user?

Thanks

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: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email message has been
scanned by
PineApp Mail-SeCure for the presence of malicious code,
vandals & computer viruses.

************************************************************************
************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

Hi ScottR,

Actually, I was looking at the msplot example since that seems closer.
It generates the DLL for the printer driver and the printer UI
interface. So this looks like what we need.

I want to have two edit boxes where the user can manually enter an X and
Y dimension for the paper so we can have any paper size they want.

Ideally, we could do this by calling an edit box within the GPD and get
around the whole issue of the printer UI, but I don’t think we can
instantiate an edit box for text entry within the GPD.

Is that true/false? Has anyone added a text edit box within a GPD and
hooked in a callback into the driver to get the text? That would be very
slick.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:51 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Why do you want to put the cpusi sample into your driver?

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Scott,

Thanks for the response - that is what I thought. Needs to be done at
the application layer.

Does anyone have a good guide for intregrating the cpsuisam example into
a printer driver? We are having problems figuring out what code needs to
pulled out and what scripts need to be changed so we can compile the
custom UI into our driver base.

thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

I don’t know how to do this. And I doubt that you can.

Even if you do, it does not prevent the user from creating a port
pointing at a file and using that. ie, you can create a local port with
the name “c:\file.prn” and the application’s “print to file” checkbox
will NOT be checked, so you won’t be preventing the user from printing
to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox

Hi Folks,

Does anyone know how to get a callback/notification/etc in a printer
driver to see if the user has checked the “Print To File” box commonly
available in the application?

If not, is there a nice way to use the PrintDlgEx structure (from within
a printer driver) to hide that checkbox from the user?

Thanks

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: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Well, I guess your question is really, “Can I use GPD files to implement
user-defined paper sizes?”

I can’t answer it, though. I don’t have much experience with
minidrivers.

Sorry,
ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:59 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi ScottR,

Actually, I was looking at the msplot example since that seems
closer. It generates the DLL for the printer driver and the printer UI
interface. So this looks like what we need.

I want to have two edit boxes where the user can manually enter
an X and Y dimension for the paper so we can have any paper size they
want.

Ideally, we could do this by calling an edit box within the GPD
and get around the whole issue of the printer UI, but I don’t think we
can instantiate an edit box for text entry within the GPD.

Is that true/false? Has anyone added a text edit box within a
GPD and hooked in a callback into the driver to get the text? That would
be very slick.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:51 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Why do you want to put the cpusi sample into your driver?

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Scott,

Thanks for the response - that is what I thought. Needs
to be done at the application layer.

Does anyone have a good guide for intregrating the
cpsuisam example into a printer driver? We are having problems figuring
out what code needs to pulled out and what scripts need to be changed so
we can compile the custom UI into our driver base.

thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

I don’t know how to do this. And I doubt that you can.

Even if you do, it does not prevent the user from
creating a port pointing at a file and using that. ie, you can create a
local port with the name “c:\file.prn” and the application’s “print to
file” checkbox will NOT be checked, so you won’t be preventing the user
from printing to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox

Hi Folks,

Does anyone know how to get a
callback/notification/etc in a printer driver to see if the user has
checked the “Print To File” box commonly available in the application?

If not, is there a nice way to use the
PrintDlgEx structure (from within a printer driver) to hide that
checkbox from the user?

Thanks

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:
unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email message
has been scanned by
PineApp Mail-SeCure for the presence of
malicious code, vandals & computer viruses.

************************************************************************
************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

You *can* use GPDs to implement user-defined paper sizes. But the user
will have to create a form whose dimensions fall within the supported
range for the custom paper size. If you wanted to make this process
easier for the user, you can expose this from within your UI plugin as
an additional property sheet. The oemui sample illustrates how to add a
property sheet.

But the approach you outlined below doesn’t sound feasible…hooking a
textbox from the GPD. Also, the plotter driver doesn’t sound like the
right sample for you since it is a monolithic driver. It doesn’t sound
like a monolithic driver is the right approach for your needs.

  • Ashwin

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Well, I guess your question is really, “Can I use GPD files to implement
user-defined paper sizes?”

I can’t answer it, though. I don’t have much experience with
minidrivers.

Sorry,
ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:59 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi ScottR,

Actually, I was looking at the msplot example since that seems
closer. It generates the DLL for the printer driver and the printer UI
interface. So this looks like what we need.

I want to have two edit boxes where the user can manually enter
an X and Y dimension for the paper so we can have any paper size they
want.

Ideally, we could do this by calling an edit box within the GPD
and get around the whole issue of the printer UI, but I don’t think we
can instantiate an edit box for text entry within the GPD.

Is that true/false? Has anyone added a text edit box within a
GPD and hooked in a callback into the driver to get the text? That would
be very slick.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:51 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Why do you want to put the cpusi sample into your driver?

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Scott,

Thanks for the response - that is what I thought. Needs
to be done at the application layer.

Does anyone have a good guide for intregrating the
cpsuisam example into a printer driver? We are having problems figuring
out what code needs to pulled out and what scripts need to be changed so
we can compile the custom UI into our driver base.

thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

I don’t know how to do this. And I doubt that you can.

Even if you do, it does not prevent the user from
creating a port pointing at a file and using that. ie, you can create a
local port with the name “c:\file.prn” and the application’s “print to
file” checkbox will NOT be checked, so you won’t be preventing the user
from printing to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox

Hi Folks,

Does anyone know how to get a
callback/notification/etc in a printer driver to see if the user has
checked the “Print To File” box commonly available in the application?

If not, is there a nice way to use the
PrintDlgEx structure (from within a printer driver) to hide that
checkbox from the user?

Thanks

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:
unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email message
has been scanned by
PineApp Mail-SeCure for the presence of
malicious code, vandals & computer viruses.

************************************************************************
************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi Ashwin,

We compiled in the oemUI to add a property sheet, but it didn’t appear
to add anything. Anyplace you know of that has a little tutorial on how
to do this?

What are some good text references for developing drivers such as
printers, usb, firewire, etc? Do these books exist?

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 1:33 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

You *can* use GPDs to implement user-defined paper sizes. But the user
will have to create a form whose dimensions fall within the supported
range for the custom paper size. If you wanted to make this process
easier for the user, you can expose this from within your UI plugin as
an additional property sheet. The oemui sample illustrates how to add a
property sheet.

But the approach you outlined below doesn’t sound feasible…hooking a
textbox from the GPD. Also, the plotter driver doesn’t sound like the
right sample for you since it is a monolithic driver. It doesn’t sound
like a monolithic driver is the right approach for your needs.

  • Ashwin

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Well, I guess your question is really, “Can I use GPD files to implement
user-defined paper sizes?”

I can’t answer it, though. I don’t have much experience with
minidrivers.

Sorry,

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:59 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi ScottR,

Actually, I was looking at the msplot example since that seems closer.
It generates the DLL for the printer driver and the printer UI
interface. So this looks like what we need.

I want to have two edit boxes where the user can manually enter an X and
Y dimension for the paper so we can have any paper size they want.

Ideally, we could do this by calling an edit box within the GPD and get
around the whole issue of the printer UI, but I don’t think we can
instantiate an edit box for text entry within the GPD.

Is that true/false? Has anyone added a text edit box within a GPD and
hooked in a callback into the driver to get the text? That would be very
slick.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:51 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Why do you want to put the cpusi sample into your driver?

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Scott,

Thanks for the response - that is what I thought. Needs to be done at
the application layer.

Does anyone have a good guide for intregrating the cpsuisam example into
a printer driver? We are having problems figuring out what code needs to
pulled out and what scripts need to be changed so we can compile the
custom UI into our driver base.

thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

I don’t know how to do this. And I doubt that you can.

Even if you do, it does not prevent the user from creating a port
pointing at a file and using that. ie, you can create a local port with
the name “c:\file.prn” and the application’s “print to file” checkbox
will NOT be checked, so you won’t be preventing the user from printing
to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox

Hi Folks,

Does anyone know how to get a callback/notification/etc in a printer
driver to see if the user has checked the “Print To File” box commonly
available in the application?

If not, is there a nice way to use the PrintDlgEx structure (from within
a printer driver) to hide that checkbox from the user?

Thanks

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: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

The oemui sample adds a custom property sheet that has a Calibrate
button on it. You can view this by going to Printer Properties. The best
reference for developing print drivers (apart from newsgroups such as
this one) is the DDK…both samples and docs.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 1:23 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Ashwin,

We compiled in the oemUI to add a property sheet, but it didn’t appear
to add anything. Anyplace you know of that has a little tutorial on how
to do this?

What are some good text references for developing drivers such as
printers, usb, firewire, etc? Do these books exist?

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 1:33 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

You *can* use GPDs to implement user-defined paper sizes. But the user
will have to create a form whose dimensions fall within the supported
range for the custom paper size. If you wanted to make this process
easier for the user, you can expose this from within your UI plugin as
an additional property sheet. The oemui sample illustrates how to add a
property sheet.

But the approach you outlined below doesn’t sound feasible…hooking a
textbox from the GPD. Also, the plotter driver doesn’t sound like the
right sample for you since it is a monolithic driver. It doesn’t sound
like a monolithic driver is the right approach for your needs.

  • Ashwin

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Well, I guess your question is really, “Can I use GPD files to implement
user-defined paper sizes?”

I can’t answer it, though. I don’t have much experience with
minidrivers.

Sorry,

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:59 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi ScottR,

Actually, I was looking at the msplot example since that seems
closer. It generates the DLL for the printer driver and the printer UI
interface. So this looks like what we need.

I want to have two edit boxes where the user can manually enter
an X and Y dimension for the paper so we can have any paper size they
want.

Ideally, we could do this by calling an edit box within the GPD
and get around the whole issue of the printer UI, but I don’t think we
can instantiate an edit box for text entry within the GPD.

Is that true/false? Has anyone added a text edit box within a
GPD and hooked in a callback into the driver to get the text? That would
be very slick.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:51 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Why do you want to put the cpusi sample into your driver?

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Scott,

Thanks for the response - that is what I thought. Needs
to be done at the application layer.

Does anyone have a good guide for intregrating the
cpsuisam example into a printer driver? We are having problems figuring
out what code needs to pulled out and what scripts need to be changed so
we can compile the custom UI into our driver base.

thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

I don’t know how to do this. And I doubt that you can.

Even if you do, it does not prevent the user from
creating a port pointing at a file and using that. ie, you can create a
local port with the name “c:\file.prn” and the application’s “print to
file” checkbox will NOT be checked, so you won’t be preventing the user
from printing to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox

Hi Folks,

Does anyone know how to get a
callback/notification/etc in a printer driver to see if the user has
checked the “Print To File” box commonly available in the application?

If not, is there a nice way to use the
PrintDlgEx structure (from within a printer driver) to hide that
checkbox from the user?

Thanks

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:
unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email message
has been scanned by
PineApp Mail-SeCure for the presence of
malicious code, vandals & computer viruses.

************************************************************************
************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Ashwin,

I saw the dialog with the calibrate button by opening the resource file.
I suspect something isn’t right in our INI file. Perhaps the UI dll
isn’t getting copied or a name/etc is not right.

Too bad there are not more reference books on drivers, lots on
programming. Wonder why none on drivers.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 5:58 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

The oemui sample adds a custom property sheet that has a Calibrate
button on it. You can view this by going to Printer Properties. The best
reference for developing print drivers (apart from newsgroups such as
this one) is the DDK…both samples and docs.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 1:23 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Ashwin,

We compiled in the oemUI to add a property sheet, but it didn’t appear
to add anything. Anyplace you know of that has a little tutorial on how
to do this?

What are some good text references for developing drivers such as
printers, usb, firewire, etc? Do these books exist?

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 1:33 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

You *can* use GPDs to implement user-defined paper sizes. But the user
will have to create a form whose dimensions fall within the supported
range for the custom paper size. If you wanted to make this process
easier for the user, you can expose this from within your UI plugin as
an additional property sheet. The oemui sample illustrates how to add a
property sheet.

But the approach you outlined below doesn’t sound feasible…hooking a
textbox from the GPD. Also, the plotter driver doesn’t sound like the
right sample for you since it is a monolithic driver. It doesn’t sound
like a monolithic driver is the right approach for your needs.

  • Ashwin

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Well, I guess your question is really, “Can I use GPD files to implement
user-defined paper sizes?”

I can’t answer it, though. I don’t have much experience with
minidrivers.

Sorry,

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:59 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi ScottR,

Actually, I was looking at the msplot example since that seems closer.
It generates the DLL for the printer driver and the printer UI
interface. So this looks like what we need.

I want to have two edit boxes where the user can manually enter an X and
Y dimension for the paper so we can have any paper size they want.

Ideally, we could do this by calling an edit box within the GPD and get
around the whole issue of the printer UI, but I don’t think we can
instantiate an edit box for text entry within the GPD.

Is that true/false? Has anyone added a text edit box within a GPD and
hooked in a callback into the driver to get the text? That would be very
slick.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:51 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Why do you want to put the cpusi sample into your driver?

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Scott,

Thanks for the response - that is what I thought. Needs to be done at
the application layer.

Does anyone have a good guide for intregrating the cpsuisam example into
a printer driver? We are having problems figuring out what code needs to
pulled out and what scripts need to be changed so we can compile the
custom UI into our driver base.

thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

I don’t know how to do this. And I doubt that you can.

Even if you do, it does not prevent the user from creating a port
pointing at a file and using that. ie, you can create a local port with
the name “c:\file.prn” and the application’s “print to file” checkbox
will NOT be checked, so you won’t be preventing the user from printing
to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox

Hi Folks,

Does anyone know how to get a callback/notification/etc in a printer
driver to see if the user has checked the “Print To File” box commonly
available in the application?

If not, is there a nice way to use the PrintDlgEx structure (from within
a printer driver) to hide that checkbox from the user?

Thanks

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: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

How are you installing the oemui driver after building? You should use
the oemdll.inf that is also part of the DDK. This should ensure that the
ini file is copied over as expected. I just tested on my system and it
seems to be fine.

  • Ashwin

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 4:45 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Ashwin,

I saw the dialog with the calibrate button by opening the resource file.
I suspect something isn’t right in our INI file. Perhaps the UI dll
isn’t getting copied or a name/etc is not right.

Too bad there are not more reference books on drivers, lots on
programming. Wonder why none on drivers.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 5:58 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

The oemui sample adds a custom property sheet that has a Calibrate
button on it. You can view this by going to Printer Properties. The best
reference for developing print drivers (apart from newsgroups such as
this one) is the DDK…both samples and docs.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 1:23 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Ashwin,

We compiled in the oemUI to add a property sheet, but it didn’t appear
to add anything. Anyplace you know of that has a little tutorial on how
to do this?

What are some good text references for developing drivers such as
printers, usb, firewire, etc? Do these books exist?

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 1:33 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

You *can* use GPDs to implement user-defined paper sizes. But the user
will have to create a form whose dimensions fall within the supported
range for the custom paper size. If you wanted to make this process
easier for the user, you can expose this from within your UI plugin as
an additional property sheet. The oemui sample illustrates how to add a
property sheet.

But the approach you outlined below doesn’t sound feasible…hooking a
textbox from the GPD. Also, the plotter driver doesn’t sound like the
right sample for you since it is a monolithic driver. It doesn’t sound
like a monolithic driver is the right approach for your needs.

  • Ashwin

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Well, I guess your question is really, “Can I use GPD files to implement
user-defined paper sizes?”

I can’t answer it, though. I don’t have much experience with
minidrivers.

Sorry,

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:59 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi ScottR,

Actually, I was looking at the msplot example since that seems
closer. It generates the DLL for the printer driver and the printer UI
interface. So this looks like what we need.

I want to have two edit boxes where the user can manually enter
an X and Y dimension for the paper so we can have any paper size they
want.

Ideally, we could do this by calling an edit box within the GPD
and get around the whole issue of the printer UI, but I don’t think we
can instantiate an edit box for text entry within the GPD.

Is that true/false? Has anyone added a text edit box within a
GPD and hooked in a callback into the driver to get the text? That would
be very slick.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:51 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Why do you want to put the cpusi sample into your driver?

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Scott,

Thanks for the response - that is what I thought. Needs
to be done at the application layer.

Does anyone have a good guide for intregrating the
cpsuisam example into a printer driver? We are having problems figuring
out what code needs to pulled out and what scripts need to be changed so
we can compile the custom UI into our driver base.

thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

I don’t know how to do this. And I doubt that you can.

Even if you do, it does not prevent the user from
creating a port pointing at a file and using that. ie, you can create a
local port with the name “c:\file.prn” and the application’s “print to
file” checkbox will NOT be checked, so you won’t be preventing the user
from printing to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox

Hi Folks,

Does anyone know how to get a
callback/notification/etc in a printer driver to see if the user has
checked the “Print To File” box commonly available in the application?

If not, is there a nice way to use the
PrintDlgEx structure (from within a printer driver) to hide that
checkbox from the user?

Thanks

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:
unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email message
has been scanned by
PineApp Mail-SeCure for the presence of
malicious code, vandals & computer viruses.

************************************************************************
************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi There Ashwin,

Thanks for the tips. I will do some more testing tomorrow and may ping
you again.

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 8:03 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

How are you installing the oemui driver after building? You should use
the oemdll.inf that is also part of the DDK. This should ensure that the
ini file is copied over as expected. I just tested on my system and it
seems to be fine.

  • Ashwin

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 4:45 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Ashwin,

I saw the dialog with the calibrate button by opening the resource file.
I suspect something isn’t right in our INI file. Perhaps the UI dll
isn’t getting copied or a name/etc is not right.

Too bad there are not more reference books on drivers, lots on
programming. Wonder why none on drivers.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 5:58 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

The oemui sample adds a custom property sheet that has a Calibrate
button on it. You can view this by going to Printer Properties. The best
reference for developing print drivers (apart from newsgroups such as
this one) is the DDK…both samples and docs.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 1:23 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Ashwin,

We compiled in the oemUI to add a property sheet, but it didn’t appear
to add anything. Anyplace you know of that has a little tutorial on how
to do this?

What are some good text references for developing drivers such as
printers, usb, firewire, etc? Do these books exist?

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 1:33 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

You *can* use GPDs to implement user-defined paper sizes. But the user
will have to create a form whose dimensions fall within the supported
range for the custom paper size. If you wanted to make this process
easier for the user, you can expose this from within your UI plugin as
an additional property sheet. The oemui sample illustrates how to add a
property sheet.

But the approach you outlined below doesn’t sound feasible…hooking a
textbox from the GPD. Also, the plotter driver doesn’t sound like the
right sample for you since it is a monolithic driver. It doesn’t sound
like a monolithic driver is the right approach for your needs.

  • Ashwin

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Well, I guess your question is really, “Can I use GPD files to implement
user-defined paper sizes?”

I can’t answer it, though. I don’t have much experience with
minidrivers.

Sorry,

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:59 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi ScottR,

Actually, I was looking at the msplot example since that seems closer.
It generates the DLL for the printer driver and the printer UI
interface. So this looks like what we need.

I want to have two edit boxes where the user can manually enter an X and
Y dimension for the paper so we can have any paper size they want.

Ideally, we could do this by calling an edit box within the GPD and get
around the whole issue of the printer UI, but I don’t think we can
instantiate an edit box for text entry within the GPD.

Is that true/false? Has anyone added a text edit box within a GPD and
hooked in a callback into the driver to get the text? That would be very
slick.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:51 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Why do you want to put the cpusi sample into your driver?

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Scott,

Thanks for the response - that is what I thought. Needs to be done at
the application layer.

Does anyone have a good guide for intregrating the cpsuisam example into
a printer driver? We are having problems figuring out what code needs to
pulled out and what scripts need to be changed so we can compile the
custom UI into our driver base.

thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

I don’t know how to do this. And I doubt that you can.

Even if you do, it does not prevent the user from creating a port
pointing at a file and using that. ie, you can create a local port with
the name “c:\file.prn” and the application’s “print to file” checkbox
will NOT be checked, so you won’t be preventing the user from printing
to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox

Hi Folks,

Does anyone know how to get a callback/notification/etc in a printer
driver to see if the user has checked the “Print To File” box commonly
available in the application?

If not, is there a nice way to use the PrintDlgEx structure (from within
a printer driver) to hide that checkbox from the user?

Thanks

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: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

For device drivers (other than printers and video) there are a few
books. They are mentioned on this list frequently, search the archives.

For printer drivers, there really isn’t anything other than the DDK
docs.

Paul Yao (http://www.paulyao.com) teaches a course on printer driver
programming and one on unidrv programming. I took it and it was very
useful. I think it’s probably available only electronically now, not
sure how good that would be.

Feng Yuan’s book “Windows Graphics Programming”
(http://www.amazon.com/gp/product/0130869856/qid=1136550602/104-5192384-
3758312) has some information related to printer drivers in it, but not
really enough to write a driver. It’s a great book anyway.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 4:23 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Ashwin,

We compiled in the oemUI to add a property sheet, but it didn’t
appear to add anything. Anyplace you know of that has a little tutorial
on how to do this?

What are some good text references for developing drivers such
as printers, usb, firewire, etc? Do these books exist?

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 1:33 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

You *can* use GPDs to implement user-defined paper sizes. But
the user will have to create a form whose dimensions fall within the
supported range for the custom paper size. If you wanted to make this
process easier for the user, you can expose this from within your UI
plugin as an additional property sheet. The oemui sample illustrates how
to add a property sheet.

But the approach you outlined below doesn’t sound
feasible…hooking a textbox from the GPD. Also, the plotter driver
doesn’t sound like the right sample for you since it is a monolithic
driver. It doesn’t sound like a monolithic driver is the right approach
for your needs.

  • Ashwin

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Well, I guess your question is really, “Can I use GPD files to
implement user-defined paper sizes?”

I can’t answer it, though. I don’t have much experience with
minidrivers.

Sorry,

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:59 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi ScottR,

Actually, I was looking at the msplot example since that
seems closer. It generates the DLL for the printer driver and the
printer UI interface. So this looks like what we need.

I want to have two edit boxes where the user can
manually enter an X and Y dimension for the paper so we can have any
paper size they want.

Ideally, we could do this by calling an edit box within
the GPD and get around the whole issue of the printer UI, but I don’t
think we can instantiate an edit box for text entry within the GPD.

Is that true/false? Has anyone added a text edit box
within a GPD and hooked in a callback into the driver to get the text?
That would be very slick.

Thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:51 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Why do you want to put the cpusi sample into your
driver?

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

Hi Scott,

Thanks for the response - that is what I
thought. Needs to be done at the application layer.

Does anyone have a good guide for intregrating
the cpsuisam example into a printer driver? We are having problems
figuring out what code needs to pulled out and what scripts need to be
changed so we can compile the custom UI into our driver base.

thanks

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox

I don’t know how to do this. And I doubt that
you can.

Even if you do, it does not prevent the user
from creating a port pointing at a file and using that. ie, you can
create a local port with the name “c:\file.prn” and the application’s
“print to file” checkbox will NOT be checked, so you won’t be preventing
the user from printing to a file.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs
Interest List
Subject: [ntdev] ### Print To File
Checkbox

Hi Folks,

Does anyone know how to get a
callback/notification/etc in a printer driver to see if the user has
checked the “Print To File” box commonly available in the application?

If not, is there a nice way to use the
PrintDlgEx structure (from within a printer driver) to hide that
checkbox from the user?

Thanks

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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

************************************************************************
************
This footnote confirms that this email
message has been scanned by
PineApp Mail-SeCure for the presence of
malicious code, vandals & computer viruses.

************************************************************************
************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

Feng Yuan’s book had gone out of print a while back; this link might
give a better picture from Amazon:

http://www.amazon.com/exec/obidos/ASIN/0130869856/fengyuancom/002-7585278-0868858

Also http://www.fengyuan.com/, for what its worth.

“Robins, Scott” wrote:

> For device drivers (other than printers and video) there are a few
> books. They are mentioned on this list frequently, search the archives.
>
> For printer drivers, there really isn’t anything other than the DDK
> docs.
>
> Paul Yao (http://www.paulyao.com) teaches a course on printer driver
> programming and one on unidrv programming. I took it and it was very
> useful. I think it’s probably available only electronically now, not
> sure how good that would be.
>
> Feng Yuan’s book “Windows Graphics Programming”
> (http://www.amazon.com/gp/product/0130869856/qid=1136550602/104-5192384-
> 3758312) has some information related to printer drivers in it, but not
> really enough to write a driver. It’s a great book anyway.
>
> ScottR
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
> Sent: Thursday, January 05, 2006 4:23 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
>
>
> Hi Ashwin,
>
>
>
> We compiled in the oemUI to add a property sheet, but it didn’t
> appear to add anything. Anyplace you know of that has a little tutorial
> on how to do this?
>
>
>
> What are some good text references for developing drivers such
> as printers, usb, firewire, etc? Do these books exist?
>
>
>
> 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
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
> Needamangala
> Sent: Thursday, January 05, 2006 1:33 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
>
>
> You can use GPDs to implement user-defined paper sizes. But
> the user will have to create a form whose dimensions fall within the
> supported range for the custom paper size. If you wanted to make this
> process easier for the user, you can expose this from within your UI
> plugin as an additional property sheet. The oemui sample illustrates how
> to add a property sheet.
>
>
>
> But the approach you outlined below doesn’t sound
> feasible…hooking a textbox from the GPD. Also, the plotter driver
> doesn’t sound like the right sample for you since it is a monolithic
> driver. It doesn’t sound like a monolithic driver is the right approach
> for your needs.
>
>
>
> - Ashwin
>
>
>
>
>
>
> ________________________________
>
>
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
> Sent: Thursday, January 05, 2006 10:15 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
> Well, I guess your question is really, “Can I use GPD files to
> implement user-defined paper sizes?”
>
>
>
> I can’t answer it, though. I don’t have much experience with
> minidrivers.
>
>
>
> Sorry,
>
> ScottR
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
> Sent: Thursday, January 05, 2006 10:59 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
> Hi ScottR,
>
>
>
> Actually, I was looking at the msplot example since that
> seems closer. It generates the DLL for the printer driver and the
> printer UI interface. So this looks like what we need.
>
>
>
> I want to have two edit boxes where the user can
> manually enter an X and Y dimension for the paper so we can have any
> paper size they want.
>
>
>
> Ideally, we could do this by calling an edit box within
> the GPD and get around the whole issue of the printer UI, but I don’t
> think we can instantiate an edit box for text entry within the GPD.
>
>
>
> Is that true/false? Has anyone added a text edit box
> within a GPD and hooked in a callback into the driver to get the text?
> That would be very slick.
>
>
>
> Thanks
>
>
>
> 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
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
> Sent: Thursday, January 05, 2006 10:51 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
>
>
> Why do you want to put the cpusi sample into your
> driver?
>
>
>
> ScottR
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
> Sent: Thursday, January 05, 2006 10:29 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
> Hi Scott,
>
>
>
> Thanks for the response - that is what I
> thought. Needs to be done at the application layer.
>
>
>
> Does anyone have a good guide for intregrating
> the cpsuisam example into a printer driver? We are having problems
> figuring out what code needs to pulled out and what scripts need to be
> changed so we can compile the custom UI into our driver base.
>
>
>
> thanks
>
>
>
> 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
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
> Sent: Thursday, January 05, 2006 10:16 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
>
>
> I don’t know how to do this. And I doubt that
> you can.
>
>
>
> Even if you do, it does not prevent the user
> from creating a port pointing at a file and using that. ie, you can
> create a local port with the name “c:\file.prn” and the application’s
> “print to file” checkbox will NOT be checked, so you won’t be preventing
> the user from printing to a file.
>
>
>
> ScottR
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
> Sent: Thursday, January 05, 2006 9:12 AM
> To: Windows System Software Devs
> Interest List
> Subject: [ntdev] ### Print To File
> Checkbox
>
> Hi Folks,
>
>
>
> Does anyone know how to get a
> callback/notification/etc in a printer driver to see if the user has
> checked the “Print To File” box commonly available in the application?
>
>
>
> If not, is there a nice way to use the
> PrintDlgEx structure (from within a printer driver) to hide that
> checkbox from the user?
>
>
>
> Thanks
>
>
>
> 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: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> ************************************************************
>

> This footnote confirms that this email
> message has been scanned by
> PineApp Mail-SeCure for the presence of
> malicious code, vandals & computer viruses.
>
> ************************************************************
>

>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown
> lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown
> lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com

Alan Adams

Thanks a lot for the details on the books - I appreciate it

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alan Adams
Sent: Friday, January 06, 2006 7:50 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Print To File Checkbox

Feng Yuan’s book had gone out of print a while back; this link might
give a better picture from Amazon:

http://www.amazon.com/exec/obidos/ASIN/0130869856/fengyuancom/002-758527
8-0868858

Also http://www.fengyuan.com/, for what its worth.

“Robins, Scott” wrote:

> For device drivers (other than printers and video) there are a few
> books. They are mentioned on this list frequently, search the
archives.
>
> For printer drivers, there really isn’t anything other than the DDK
> docs.
>
> Paul Yao (http://www.paulyao.com) teaches a course on printer driver
> programming and one on unidrv programming. I took it and it was very
> useful. I think it’s probably available only electronically now, not
> sure how good that would be.
>
> Feng Yuan’s book “Windows Graphics Programming”
>
(http://www.amazon.com/gp/product/0130869856/qid=1136550602/104-5192384-
> 3758312) has some information related to printer drivers in it, but
not
> really enough to write a driver. It’s a great book anyway.
>
> ScottR
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
> Sent: Thursday, January 05, 2006 4:23 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
>
>
> Hi Ashwin,
>
>
>
> We compiled in the oemUI to add a property sheet, but it didn’t
> appear to add anything. Anyplace you know of that has a little
tutorial
> on how to do this?
>
>
>
> What are some good text references for developing drivers such
> as printers, usb, firewire, etc? Do these books exist?
>
>
>
> 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
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
> Needamangala
> Sent: Thursday, January 05, 2006 1:33 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
>
>
> You can use GPDs to implement user-defined paper sizes. But
> the user will have to create a form whose dimensions fall within the
> supported range for the custom paper size. If you wanted to make this
> process easier for the user, you can expose this from within your UI
> plugin as an additional property sheet. The oemui sample illustrates
how
> to add a property sheet.
>
>
>
> But the approach you outlined below doesn’t sound
> feasible…hooking a textbox from the GPD. Also, the plotter driver
> doesn’t sound like the right sample for you since it is a monolithic
> driver. It doesn’t sound like a monolithic driver is the right
approach
> for your needs.
>
>
>
> - Ashwin
>
>
>
>
>
>
> ________________________________
>
>
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
> Sent: Thursday, January 05, 2006 10:15 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
> Well, I guess your question is really, “Can I use GPD files to
> implement user-defined paper sizes?”
>
>
>
> I can’t answer it, though. I don’t have much experience with
> minidrivers.
>
>
>
> Sorry,
>
> ScottR
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
> Sent: Thursday, January 05, 2006 10:59 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
> Hi ScottR,
>
>
>
> Actually, I was looking at the msplot example since that
> seems closer. It generates the DLL for the printer driver and the
> printer UI interface. So this looks like what we need.
>
>
>
> I want to have two edit boxes where the user can
> manually enter an X and Y dimension for the paper so we can have any
> paper size they want.
>
>
>
> Ideally, we could do this by calling an edit box within
> the GPD and get around the whole issue of the printer UI, but I don’t
> think we can instantiate an edit box for text entry within the GPD.
>
>
>
> Is that true/false? Has anyone added a text edit box
> within a GPD and hooked in a callback into the driver to get the text?
> That would be very slick.
>
>
>
> Thanks
>
>
>
> 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
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
> Sent: Thursday, January 05, 2006 10:51 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
>
>
> Why do you want to put the cpusi sample into your
> driver?
>
>
>
> ScottR
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
> Sent: Thursday, January 05, 2006 10:29 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
> Hi Scott,
>
>
>
> Thanks for the response - that is what I
> thought. Needs to be done at the application layer.
>
>
>
> Does anyone have a good guide for intregrating
> the cpsuisam example into a printer driver? We are having problems
> figuring out what code needs to pulled out and what scripts need to be
> changed so we can compile the custom UI into our driver base.
>
>
>
> thanks
>
>
>
> 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
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
> Sent: Thursday, January 05, 2006 10:16 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Print To File Checkbox
>
>
>
> I don’t know how to do this. And I doubt that
> you can.
>
>
>
> Even if you do, it does not prevent the user
> from creating a port pointing at a file and using that. ie, you can
> create a local port with the name “c:\file.prn” and the application’s
> “print to file” checkbox will NOT be checked, so you won’t be
preventing
> the user from printing to a file.
>
>
>
> ScottR
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
> Sent: Thursday, January 05, 2006 9:12 AM
> To: Windows System Software Devs
> Interest List
> Subject: [ntdev] ### Print To File
> Checkbox
>
> Hi Folks,
>
>
>
> Does anyone know how to get a
> callback/notification/etc in a printer driver to see if the user has
> checked the “Print To File” box commonly available in the application?
>
>
>
> If not, is there a nice way to use the
> PrintDlgEx structure (from within a printer driver) to hide that
> checkbox from the user?
>
>
>
> Thanks
>
>
>
> 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: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
>
************************************************************
>

> This footnote confirms that this email
> message has been scanned by
> PineApp Mail-SeCure for the presence of
> malicious code, vandals & computer viruses.
>
>
************************************************************
>

>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown
> lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown
> lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com

Alan Adams


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@flconsult.com
To unsubscribe send a blank email to xxxxx@lists.osr.com