From: SourceForge.net <no...@so...> - 2006-03-09 15:33:33
|
Bugs item #1445609, was opened at 2006-03-08 13:13 Message generated for change (Comment added) made by rolandschwingel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1445609&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: w32api Group: Known bugs Status: Open Resolution: None Priority: 5 Submitted By: Roland Schwingel (rolandschwingel) Assigned to: Nobody/Anonymous (nobody) Summary: winspool.h:Missing declaration of DRIVER_INFO_3 (with patch) Initial Comment: Hi... In winspool.h DRIVER_INFO_1 and DRIVER_INFO_3 are declared as Ascii and Widecharacter version but there is no version that autodetects Ascii oder Widecharacter version depending on the definition of _UNICODE (as defined in MSDN). Attached you find a patch containing a fix for this. I also added DRIVER_INFO_[4-6] and PRINTER_INFO_[7-9] structures (along with some needed defines) which are available with Win2000 and up but where missing in w32api. Hope you can apply it, Roland ---------------------------------------------------------------------- >Comment By: Roland Schwingel (rolandschwingel) Date: 2006-03-09 16:33 Message: Logged In: YES user_id=710704 Hi... If you look into CVS you will find declarations of DRIVER_INFO_1A, DRIVER_INFO_1A, DRIVER_INFO_3Aand DRIVER_INFO_3W. But no declaration of DRIVER_INFO_1 and DRIVER_INFO3 like it is done for DRIVER_INFO_2 as ASCII/Unicode variant in line 682 and 747. My patch fixes that. Additionally in current winspool.h DRIVER_INFO_4,DRIVER_INFO_5,DRIVER_INFO_6 and PRINTER_INFO_7, PRINTER_INFO_8 and PRINTER_INFO_9 are completely missing. My patch also adds these. DRIVER_KERNELMODE and DRIVER_USERMODE are used in DRIVER_INFO_5 (as argument called dwDriverAttributes). See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_66lu.asp There DRIVER_KERNELMODE and DRIVER_USERMODE is described as KMPD (KernelModePrinterDriver) and UMPD (UserModePrinterDriver). In Microsofts winspool.h these are defined as DRIVER_KERNELMODE and DRIVER_USERMODE. Maybe the download of my patch was broken and you were just seeing the first lines? I downloaded it some minutes ago and it was ok. The patch file in the tarball should be 6876 bytes. Roland ---------------------------------------------------------------------- Comment By: Dimitri Papadopoulos (papadopo) Date: 2006-03-09 14:53 Message: Logged In: YES user_id=52414 The DSPRINT_* macros are documented here as included on Windows 2000 and better: http://msdn.microsoft.com/library/en-us/gdi/prntspol_7nqq.asp Fixed in CVS. But what about the DRIVER_KERNELMODE and DRIVER_USERMODE macros? Where do they come from? Otherwise I see no version that autodetects Ascii or Widecharacter version depending on the definition of _UNICODE in this patch. Am I missing something? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1445609&group_id=2435 |