"Marcus Meissner" marcus@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:
100 _EnumPrinterPropertySheets@16 101 _ClusterSplOpen@20 102 _ClusterSplClose@4 103 _ClusterSplIsAlive@4 201 _GetDefaultPrinterA@8 202 _SetDefaultPrinterA@4 203 _GetDefaultPrinterW@8 204 _SetDefaultPrinterW@4 205 _SplReadPrinter@12 206 _AddPerMachineConnectionA@16 207 _AddPerMachineConnectionW@16 208 _DeletePerMachineConnectionA@8 209 _DeletePerMachineConnectionW@8 210 _EnumPerMachineConnectionsA@20 211 _EnumPerMachineConnectionsW@20 212 _LoadPrinterDriver@4 213 _RefCntLoadDriver@16 214 _RefCntUnloadDriver@8 215 _ForceUnloadDriver@4 216 _PublishPrinterA@24 217 _PublishPrinterW@24 218 _CallCommonPropertySheetUI@16 219 _PrintUIQueueCreate@16 220 _PrintUIPrinterPropPages@16 221 _PrintUIDocumentDefaults@16 222 _SendRecvBidiData@16 223 _RouterFreeBidiResponseContainer@4 224 _ExternalConnectToLd64In32Server@4 226 _PrintUIWebPnpEntry@4 227 _PrintUIWebPnpPostEntry@16 228 _PrintUICreateInstance@8 229 _PrintUIDocumentPropertiesWrap@28 230 _PrintUIPrinterSetup@24 231 _PrintUIServerPropPages@16 232 _AddDriverCatalog@16