hi all
i have a printer driver in windows NT 4.0 capable of drawing 1-4-8-24 images. Now if i want to reduce its functionality to be able to draw only B/W output there are two things to be done:one limit the printer UI so that user is not able to set dmBitsPerPel to anything other than 1.
two in kernel mode set the cBitsPixel member of GDIINFO structure to 1 ( this means the surface will be created as black and white surface )
now i write an application that sets the dmBitsPerPel = 24 and set this property using SetPrinter(). (printer UI is not invoked the app does itself.)
Now when i am writing some colored text to this printer dc, the output image is being generated as black and white but text written in few particular colors is absent…
is there any way to check from inside the driver when the application tries to set dmBitsPerPel field of the DEVMODE using SetPrinter() so that this change can be invalidated at that point itself.
thankx in advance!
regards
vaibhav
Daring ideas are like chessmen moved forward. They may be beaten, but they may start a winning game.