WinSpool Ordinal Addition

Mark G. Adams mgadams at sympatico.ca
Mon Jan 7 00:33:35 CST 2002


On January 6, 2002 03:26 pm, Alexandre Julliard wrote:
> None of the winspool.drv I checked have
> PrinterProperties at ordinal 201, so I don't see how this could work.
> Or does it just want to have something there?  does it work if you put
> a stub at 201 instead of PrinterProperties?

No idea why it was working; mind you, I didn't test printing - only tried to 
get it to start up. I guess this is what happens when I look at someone's 
patch instead of checking the .dll directly. :>

In Windows 2000 (and I presume later), winspool.drv has some new functions. 
The one this application is looking for turns out to be GetDefaultPrinter() 
(ASCII version is ordinal 201, Unicode is 203). I've added the ASCII and 
Unicode implementations of that function to winspool in the attached patch. 
The ASCII version has been tested; I'd appreciate it if you could take a 
glance at the Unicode version and see if I got the conversions correct.

The application will now open the 'printer setup' dialog, instead of 
returning an error.

//Mark

ChangeLog:
Mark G. Adams <mgadams at sympatico.ca>
Add GetDefaultPrinter() functions to winspool.drv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winspool.diff
Type: text/x-diff
Size: 3509 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20020107/9888c06e/winspool.bin


More information about the wine-patches mailing list