Hi,
I need help! I’m not a professional driver engineer.
I wanna do the Printer Driver for MS Windows’NT4 and NT5 simultaneously
(meaning, at the same time).
Driver must to do:
Print text and graphics to my file (such as PDF (PDF Writer))
I have little experience with Windows’9x but MS Win’NT4/NT5 have is big
differences with my previous work (Printer Driver for Windows’9x)
I’ve start to learn the OEMUI,OEMUNI and Watermark Examples in MS DDK2K but
I can’t understood - what the way is the best for me?
C’d you please answer - could I find driver samples which works on Nt4 and
on Nt5 simultaneously?
I’m confused.
ICQ:94415554
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Hi,
C’d you please answer - could I find driver samples which works on Nt4 and
on Nt5 simultaneously?
I can suggest one way of doing this. I don’t know if it’s the “religious”
one or the most
optimal, but it will work… Anyway, listen to other’s suggestions too…
The printing system under Nt/2000 has several components, one of them being
the print processor
(you can find its sources in DDK/src/print/winprint). It is the same for
both OSs (I think 
If you set the Printer’s datatype to NT EMF nnn, in
PrintDocumentOnPrintProcessor function you
can read the spool file created by Windows (and your Printer Driver -
generated using Minidrv tool).
The spool file contains all your document pages as EMF (enhanced-meta file)
files (an EMF file is
composed of an ENHMETAHEADER and zero, one or more ENHMETARECORDs). The
ENHMETARECORD structure contains data that describes a graphics device
interface
(GDI) function used to create part of a picture in an enhanced-format
metafile. From this point on, you
are free to do whatever you want with it: save data to file, convert it to
PDF file records etc…
Again, this is the way I implemented this… (and it works)
Best regards,
Daniel
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com