PATCH: winspool ordinal export

Marcus Meissner marcus at jet.franken.de
Wed Jan 4 08:49:19 CST 2006


On Wed, Jan 04, 2006 at 09:56:19PM +0800, Dmitry Timoshkov wrote:
> "Marcus Meissner" <marcus at jet.franken.de> wrote:
> 
> >SecureCRT from bug 4225 imports GetDefaultPrinterA() by
> >using the ordinal 201.
> >
> >Not sure if this fix is correct or if this is even the
> >correct approach. But it helps SecureCRT. The other
> >winspool functions are imported by name.
> 
> This time I ran 'dumpbin /exports' on winspool.lib provided with PSDK
> and got interesting result: only some APIs are exported by ordinal,
> here they are sorted by ordinal, I skipped all APIs without ordinals:

Then lets try this patch:

Ciao, Marcus

Changelog:
	Some winspool functions are exported by ordinal.

Index: dlls/winspool/winspool.drv.spec
===================================================================
RCS file: /home/wine/wine/dlls/winspool/winspool.drv.spec,v
retrieving revision 1.29
diff -u -r1.29 winspool.drv.spec
--- dlls/winspool/winspool.drv.spec	22 Jul 2005 18:28:12 -0000	1.29
+++ dlls/winspool/winspool.drv.spec	4 Jan 2006 14:48:12 -0000
@@ -1,4 +1,39 @@
-100 stub @
+100 stub EnumPrinterPropertySheets at 16
+# 101 ClusterSplOpen at 20
+# 102 ClusterSplClose at 4
+# 103 ClusterSplIsAlive at 4
+201 stdcall GetDefaultPrinterA(ptr ptr)
+# 202 _SetDefaultPrinterA at 4
+203 stdcall GetDefaultPrinterW(ptr ptr)
+# 204 _SetDefaultPrinterW at 4
+# 205 _SplReadPrinter at 12
+# 206 _AddPerMachineConnectionA at 16
+# 207 _AddPerMachineConnectionW at 16
+# 208 _DeletePerMachineConnectionA at 8
+# 209 _DeletePerMachineConnectionW at 8
+# 210 _EnumPerMachineConnectionsA at 20
+# 211 _EnumPerMachineConnectionsW at 20
+# 212 _LoadPrinterDriver at 4
+# 213 _RefCntLoadDriver at 16
+# 214 _RefCntUnloadDriver at 8
+# 215 _ForceUnloadDriver at 4
+# 216 _PublishPrinterA at 24
+# 217 _PublishPrinterW at 24
+# 218 _CallCommonPropertySheetUI at 16
+# 219 _PrintUIQueueCreate at 16
+# 220 _PrintUIPrinterPropPages at 16
+# 221 _PrintUIDocumentDefaults at 16
+# 222 _SendRecvBidiData at 16
+# 223 _RouterFreeBidiResponseContainer at 4
+# 224 _ExternalConnectToLd64In32Server at 4
+# 226 _PrintUIWebPnpEntry at 4
+# 227 _PrintUIWebPnpPostEntry at 16
+# 228 _PrintUICreateInstance at 8
+# 229 _PrintUIDocumentPropertiesWrap at 28
+# 230 _PrintUIPrinterSetup at 24
+# 231 _PrintUIServerPropPages at 16
+# 232 _AddDriverCatalog at 16
+
 @ stub ADVANCEDSETUPDIALOG
 @ stdcall AbortPrinter(long)
 @ stdcall AddFormA(long long ptr)
@@ -89,8 +124,6 @@
 @ stdcall FindFirstPrinterChangeNotification(long long long ptr)
 @ stdcall FindNextPrinterChangeNotification(long ptr ptr ptr)
 @ stdcall FreePrinterNotifyInfo(ptr)
-@ stdcall GetDefaultPrinterA(ptr ptr)
-@ stdcall GetDefaultPrinterW(ptr ptr)
 @ stdcall GetFormA(long str long ptr long ptr)
 @ stdcall GetFormW(long wstr long ptr long ptr)
 @ stdcall GetJobA(long long long ptr long ptr)



More information about the wine-patches mailing list