RE: UniDrv Printer Driver and The Number of Copies

Well, I can’t say I *know* this will work, because I have never written
a unidrv plugin.

But, for ImageProcessing,

The PDEVOBJ parameter (pdevobj) points to a _DEVOBJ structure.
The _DEVOBJ structure contains a member, pPublicDM, which points to a
devmode.

If the dmCopies field does not contain the same value the user entered
in the UI, it will probably be easier to find out why not and fix that
than to try to find the information some other way.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Friday, December 09, 2005 3:18 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] ### UniDrv Printer Driver and The Number of Copies

Hello Scott,

Ideally I would like to get this information in the rendering DLL code.
We are doing most of the processing work in ImageProcessing. It would be
ideal to get the data here.

We started with the 2003 DDK, but had some compatibility issues with our
test setup; so we went back to the 2K DDK.

Could you please provide some details as to how we could get the
dmCopies in the ImageProcessing function?

Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
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: Friday, December 09, 2005 2:56 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] ### UniDrv Printer Driver and The Number of Copies

Well, you don’t say where you need this information (in the UI DLL, in
the rendering DLL?), but surely, somewhere you can find a pointer to a
devmode? When you do, dmCopies is the field you need.

ScottR
p.s. newer DDKs are much better

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Friday, December 09, 2005 1:19 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### UniDrv Printer Driver and The Number of Copies

Hello Folks,

We are working on a printer driver and have hit a slight snag.

Everything is working fine, but we are writing a driver for a 3 head
printer. We need to know how many copies the user is requesting that the
application produces on the printer.

We found this function “DrvQueryJobAttributes” that looks like it does
exactly what we want; that is finds out what the application is
configuring the print job for.

Unfortunately, we can’t find a place to fit it/hook-it/etc in the
driver. We have based the driver on the unidrv examples. We are using
DDK2000 and the OS targets are W2k and Wxp.

Can anyone please provide an example/guide on how to use this attributes
function; or just a way to get the number of copies that the print job
is supposed to be.

*Thanks*

Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
xxxxx@flconsult.com
www.fl-eng.com


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

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


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: xxxxx@xerox.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

Hi Scott,

Thanks so much! We will give this a try.

Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
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: Friday, December 09, 2005 3:40 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] UniDrv Printer Driver and The Number of Copies

Well, I can’t say I *know* this will work, because I have never written
a unidrv plugin.

But, for ImageProcessing,

The PDEVOBJ parameter (pdevobj) points to a _DEVOBJ structure.
The _DEVOBJ structure contains a member, pPublicDM, which points to a
devmode.

If the dmCopies field does not contain the same value the user entered
in the UI, it will probably be easier to find out why not and fix that
than to try to find the information some other way.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Friday, December 09, 2005 3:18 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] ### UniDrv Printer Driver and The Number of Copies

Hello Scott,

Ideally I would like to get this information in the rendering DLL code.
We are doing most of the processing work in ImageProcessing. It would be
ideal to get the data here.

We started with the 2003 DDK, but had some compatibility issues with our
test setup; so we went back to the 2K DDK.

Could you please provide some details as to how we could get the
dmCopies in the ImageProcessing function?

Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
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: Friday, December 09, 2005 2:56 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] ### UniDrv Printer Driver and The Number of Copies

Well, you don’t say where you need this information (in the UI DLL, in
the rendering DLL?), but surely, somewhere you can find a pointer to a
devmode? When you do, dmCopies is the field you need.

ScottR
p.s. newer DDKs are much better

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Friday, December 09, 2005 1:19 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### UniDrv Printer Driver and The Number of Copies

Hello Folks,

We are working on a printer driver and have hit a slight snag.

Everything is working fine, but we are writing a driver for a 3 head
printer. We need to know how many copies the user is requesting that the
application produces on the printer.

We found this function “DrvQueryJobAttributes” that looks like it does
exactly what we want; that is finds out what the application is
configuring the print job for.

Unfortunately, we can’t find a place to fit it/hook-it/etc in the
driver. We have based the driver on the unidrv examples. We are using
DDK2000 and the OS targets are W2k and Wxp.

Can anyone please provide an example/guide on how to use this attributes
function; or just a way to get the number of copies that the print job
is supposed to be.

*Thanks*

Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
xxxxx@flconsult.com
www.fl-eng.com


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

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


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: xxxxx@xerox.com 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

Hello Scott,

Thank you SO MUCH for pointing us in the right direction, from within
imageprocessing, this code gets us the copies (and lots of other good
data).

HRESULT __stdcall IOemUni::ImageProcessing(
PDEVOBJ pdevobj,
PBYTE pSrcBitmap,
PBITMAPINFOHEADER pBitmapInfoHeader,
PBYTE pColorTable,
DWORD dwCallbackID,
PIPPARAMS pIPParams,
OUT PBYTE *ppbResult)
{

// debug data

char s[100];
DWORD dw;
int x,y;
unsigned char* dest;
int efh;
unsigned char* tmp;
unsigned long copies;

copies=pdevobj->pPublicDM->dmCopies; // get the number of
copies

sprintf(s,“IOemUni::ImageProcessing NumberOfCopies=%ld\n”,copies);
VERBOSE(s);

OTHER STUFF

}

Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
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: Friday, December 09, 2005 3:40 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] UniDrv Printer Driver and The Number of Copies

Well, I can’t say I *know* this will work, because I have never written
a unidrv plugin.

But, for ImageProcessing,

The PDEVOBJ parameter (pdevobj) points to a _DEVOBJ structure.
The _DEVOBJ structure contains a member, pPublicDM, which points to a
devmode.

If the dmCopies field does not contain the same value the user entered
in the UI, it will probably be easier to find out why not and fix that
than to try to find the information some other way.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Friday, December 09, 2005 3:18 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] ### UniDrv Printer Driver and The Number of Copies

Hello Scott,

Ideally I would like to get this information in the rendering DLL code.
We are doing most of the processing work in ImageProcessing. It would be
ideal to get the data here.

We started with the 2003 DDK, but had some compatibility issues with our
test setup; so we went back to the 2K DDK.

Could you please provide some details as to how we could get the
dmCopies in the ImageProcessing function?

Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
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: Friday, December 09, 2005 2:56 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] ### UniDrv Printer Driver and The Number of Copies

Well, you don’t say where you need this information (in the UI DLL, in
the rendering DLL?), but surely, somewhere you can find a pointer to a
devmode? When you do, dmCopies is the field you need.

ScottR
p.s. newer DDKs are much better

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Friday, December 09, 2005 1:19 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### UniDrv Printer Driver and The Number of Copies

Hello Folks,

We are working on a printer driver and have hit a slight snag.

Everything is working fine, but we are writing a driver for a 3 head
printer. We need to know how many copies the user is requesting that the
application produces on the printer.

We found this function “DrvQueryJobAttributes” that looks like it does
exactly what we want; that is finds out what the application is
configuring the print job for.

Unfortunately, we can’t find a place to fit it/hook-it/etc in the
driver. We have based the driver on the unidrv examples. We are using
DDK2000 and the OS targets are W2k and Wxp.

Can anyone please provide an example/guide on how to use this attributes
function; or just a way to get the number of copies that the print job
is supposed to be.

*Thanks*

Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
xxxxx@flconsult.com
www.fl-eng.com


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

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


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: xxxxx@xerox.com 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