GetDeviceCaps() for printer drivers

OK, it must be that today is my first day at work after 2 weeks off. My
brain is clearly not functioning at 100%.

I have a monolithic printer driver and I can’t find where it implements
the driver’s side of GetDeviceCaps(). Specifically, RC_DIBTODEV and the
other RC_xxx values. I can’t even find where those flags are stored.
Can someone give me a hint? But make it pretty obvious.

Thanks,
ScottR

It’s because Windows just assumes that all raster printers support all
those flags, isn’t it? Windows doesn’t check with the driver at all.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Wednesday, January 02, 2008 11:14 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] GetDeviceCaps() for printer drivers

OK, it must be that today is my first day at work after 2 weeks off. My
brain is clearly not functioning at 100%.

I have a monolithic printer driver and I can’t find where it implements
the driver’s side of GetDeviceCaps(). Specifically, RC_DIBTODEV and the
other RC_xxx values. I can’t even find where those flags are stored.
Can someone give me a hint? But make it pretty obvious.

Thanks,
ScottR


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

GetDeviceCaps is implemented by GDI and the information it returns is based on the GDIINFO structure that the driver sends back to GDI from its DrvEnablePDEV call.

  • Ashwin

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Wednesday, January 02, 2008 10:05 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] GetDeviceCaps() for printer drivers

It’s because Windows just assumes that all raster printers support all
those flags, isn’t it? Windows doesn’t check with the driver at all.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Wednesday, January 02, 2008 11:14 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] GetDeviceCaps() for printer drivers

OK, it must be that today is my first day at work after 2 weeks off. My
brain is clearly not functioning at 100%.

I have a monolithic printer driver and I can’t find where it implements
the driver’s side of GetDeviceCaps(). Specifically, RC_DIBTODEV and the
other RC_xxx values. I can’t even find where those flags are stored.
Can someone give me a hint? But make it pretty obvious.

Thanks,
ScottR


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Yes, but these flags in particular (RC_xxx) are not part of the GDIINFO
struct as far as I can tell.

Thanks,
ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Wednesday, January 02, 2008 1:24 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] GetDeviceCaps() for printer drivers

GetDeviceCaps is implemented by GDI and the information it returns is
based on the GDIINFO structure that the driver sends back to GDI from
its DrvEnablePDEV call.

  • Ashwin

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Wednesday, January 02, 2008 10:05 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] GetDeviceCaps() for printer drivers

It’s because Windows just assumes that all raster printers support all
those flags, isn’t it? Windows doesn’t check with the driver at all.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Wednesday, January 02, 2008 11:14 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] GetDeviceCaps() for printer drivers

OK, it must be that today is my first day at work after 2 weeks off. My
brain is clearly not functioning at 100%.

I have a monolithic printer driver and I can’t find where it implements
the driver’s side of GetDeviceCaps(). Specifically, RC_DIBTODEV and the
other RC_xxx values. I can’t even find where those flags are stored.
Can someone give me a hint? But make it pretty obvious.

Thanks,
ScottR


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

what about gdiinfo->flRaster?

“Robins, Scott” wrote in message
news:xxxxx@ntdev…
Yes, but these flags in particular (RC_xxx) are not part of the GDIINFO
struct as far as I can tell.

Thanks,
ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Wednesday, January 02, 2008 1:24 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] GetDeviceCaps() for printer drivers

GetDeviceCaps is implemented by GDI and the information it returns is
based on the GDIINFO structure that the driver sends back to GDI from
its DrvEnablePDEV call.

- Ashwin

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Wednesday, January 02, 2008 10:05 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] GetDeviceCaps() for printer drivers

It’s because Windows just assumes that all raster printers support all
those flags, isn’t it? Windows doesn’t check with the driver at all.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Wednesday, January 02, 2008 11:14 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] GetDeviceCaps() for printer drivers

OK, it must be that today is my first day at work after 2 weeks off. My
brain is clearly not functioning at 100%.

I have a monolithic printer driver and I can’t find where it implements
the driver’s side of GetDeviceCaps(). Specifically, RC_DIBTODEV and the
other RC_xxx values. I can’t even find where those flags are stored.
Can someone give me a hint? But make it pretty obvious.

Thanks,
ScottR


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer