Changeset 21898 for branches/gcc-kmk/src
- Timestamp:
- Dec 15, 2011, 4:37:08 PM (14 years ago)
- Location:
- branches/gcc-kmk/src
- Files:
-
- 4 added
- 4 deleted
- 10 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/Makefile.kmk
r21897 r21898 69 69 include $(PATH_SUB_CURRENT)/shdocvw/Makefile.kmk 70 70 include $(PATH_SUB_CURRENT)/shfolder/Makefile.kmk 71 include $(PATH_SUB_CURRENT)/tapi32/Makefile.kmk 72 include $(PATH_SUB_CURRENT)/testdrv/Makefile.kmk 73 include $(PATH_SUB_CURRENT)/twain_32/Makefile.kmk 74 include $(PATH_SUB_CURRENT)/urlmon/Makefile.kmk 71 75 72 76 include $(FILE_KBUILD_SUB_FOOTER) -
branches/gcc-kmk/src/tapi32/tapi32.def
r4809 r21898 41 41 ; internalRemoveLocation @31 42 42 ; internalRenameLocationW @32 43 lineAccept = _lineAccept@12@3344 lineAddProvider = _lineAddProvider@12@3443 lineAccept = "_lineAccept@12" @33 44 lineAddProvider = "_lineAddProvider@12" @34 45 45 ; lineAddProviderA @35 46 46 ; lineAddProviderW @36 47 lineAddToConference = _lineAddToConference@8@3747 lineAddToConference = "_lineAddToConference@8" @37 48 48 ; lineAgentSpecific @38 49 lineAnswer = _lineAnswer@12@3950 lineBlindTransfer = _lineBlindTransfer@12@4049 lineAnswer = "_lineAnswer@12" @39 50 lineBlindTransfer = "_lineBlindTransfer@12" @40 51 51 ; lineBlindTransferA @41 52 52 ; lineBlindTransferW @42 53 lineClose = _lineClose@4@4354 lineCompleteCall = _lineCompleteCall@16@4455 lineCompleteTransfer = _lineCompleteTransfer@16@4556 lineConfigDialog = _lineConfigDialog@12@4653 lineClose = "_lineClose@4" @43 54 lineCompleteCall = "_lineCompleteCall@16" @44 55 lineCompleteTransfer = "_lineCompleteTransfer@16" @45 56 lineConfigDialog = "_lineConfigDialog@12" @46 57 57 ; lineConfigDialogA @47 58 lineConfigDialogEdit = _lineConfigDialogEdit@24@4858 lineConfigDialogEdit = "_lineConfigDialogEdit@24" @48 59 59 ; lineConfigDialogEditA @49 60 60 ; lineConfigDialogEditW @50 61 61 ; lineConfigDialogW @51 62 lineConfigProvider = _lineConfigProvider@8@5263 lineDeallocateCall = _lineDeallocateCall@4@5364 lineDevSpecific = _lineDevSpecific@20@5465 lineDevSpecificFeature = _lineDevSpecificFeature@16@5566 lineDial = _lineDial@12@5662 lineConfigProvider = "_lineConfigProvider@8" @52 63 lineDeallocateCall = "_lineDeallocateCall@4" @53 64 lineDevSpecific = "_lineDevSpecific@20" @54 65 lineDevSpecificFeature = "_lineDevSpecificFeature@16" @55 66 lineDial = "_lineDial@12" @56 67 67 ; lineDialA @57 68 68 ; lineDialW @58 69 lineDrop = _lineDrop@12@5970 lineForward = _lineForward@28@6069 lineDrop = "_lineDrop@12" @59 70 lineForward = "_lineForward@28" @60 71 71 ; lineForwardA @61 72 72 ; lineForwardW @62 73 lineGatherDigits = _lineGatherDigits@28@6373 lineGatherDigits = "_lineGatherDigits@28" @63 74 74 ; lineGatherDigitsA @64 75 75 ; lineGatherDigitsW @65 76 lineGenerateDigits = _lineGenerateDigits@16@6676 lineGenerateDigits = "_lineGenerateDigits@16" @66 77 77 ; lineGenerateDigitsA @67 78 78 ; lineGenerateDigitsW @68 79 lineGenerateTone = _lineGenerateTone@20@6980 lineGetAddressCaps = _lineGetAddressCaps@24@7079 lineGenerateTone = "_lineGenerateTone@20" @69 80 lineGetAddressCaps = "_lineGetAddressCaps@24" @70 81 81 ; lineGetAddressCapsA @71 82 82 ; lineGetAddressCapsW @72 83 lineGetAddressID = _lineGetAddressID@20@7383 lineGetAddressID = "_lineGetAddressID@20" @73 84 84 ; lineGetAddressIDA @74 85 85 ; lineGetAddressIDW @75 86 lineGetAddressStatus = _lineGetAddressStatus@12@7686 lineGetAddressStatus = "_lineGetAddressStatus@12" @76 87 87 ; lineGetAddressStatusA @77 88 88 ; lineGetAddressStatusW @78 … … 95 95 ; lineGetAgentStatusA @85 96 96 ; lineGetAgentStatusW @86 97 lineGetAppPriority = _lineGetAppPriority@24@8797 lineGetAppPriority = "_lineGetAppPriority@24" @87 98 98 ; lineGetAppPriorityA @88 99 99 ; lineGetAppPriorityW @89 100 lineGetCallInfo = _lineGetCallInfo@8@90100 lineGetCallInfo = "_lineGetCallInfo@8" @90 101 101 ; lineGetCallInfoA @91 102 102 ; lineGetCallInfoW @92 103 lineGetCallStatus = _lineGetCallStatus@8@93104 lineGetConfRelatedCalls = _lineGetConfRelatedCalls@8@94105 lineGetCountry = _lineGetCountry@12@95103 lineGetCallStatus = "_lineGetCallStatus@8" @93 104 lineGetConfRelatedCalls = "_lineGetConfRelatedCalls@8" @94 105 lineGetCountry = "_lineGetCountry@12" @95 106 106 ; lineGetCountryA @96 107 107 ; lineGetCountryW @97 108 lineGetDevCaps = _lineGetDevCaps@20@98108 lineGetDevCaps = "_lineGetDevCaps@20" @98 109 109 ; lineGetDevCapsA @99 110 110 ; lineGetDevCapsW @100 111 111 112 lineGetDevConfig = _lineGetDevConfig@12@101112 lineGetDevConfig = "_lineGetDevConfig@12" @101 113 113 ; lineGetDevConfigA @102 114 114 ; lineGetDevConfigW @103 115 lineGetID = _lineGetID@24@104115 lineGetID = "_lineGetID@24" @104 116 116 ; lineGetIDA @105 117 117 ; lineGetIDW @106 118 lineGetIcon = _lineGetIcon@12@107118 lineGetIcon = "_lineGetIcon@12" @107 119 119 ; lineGetIconA @108 120 120 ; lineGetIconW @109 121 lineGetLineDevStatus = _lineGetLineDevStatus@8@110121 lineGetLineDevStatus = "_lineGetLineDevStatus@8" @110 122 122 ; lineGetLineDevStatusA @111 123 123 ; lineGetLineDevStatusW @112 124 124 ; lineGetMessage @113 125 lineGetNewCalls = _lineGetNewCalls@16@114126 lineGetNumRings = _lineGetNumRings@12@115127 lineGetProviderList = _lineGetProviderList@8@116125 lineGetNewCalls = "_lineGetNewCalls@16" @114 126 lineGetNumRings = "_lineGetNumRings@12" @115 127 lineGetProviderList = "_lineGetProviderList@8" @116 128 128 ; lineGetProviderListA @117 129 129 ; lineGetProviderListW @118 130 lineGetRequest = _lineGetRequest@12@119130 lineGetRequest = "_lineGetRequest@12" @119 131 131 ; lineGetRequestA @120 132 132 ; lineGetRequestW @121 133 lineGetStatusMessages = _lineGetStatusMessages@12@122134 lineGetTranslateCaps = _lineGetTranslateCaps@12@123133 lineGetStatusMessages = "_lineGetStatusMessages@12" @122 134 lineGetTranslateCaps = "_lineGetTranslateCaps@12" @123 135 135 ; lineGetTranslateCapsA @124 136 136 ; lineGetTranslateCapsW @125 137 lineHandoff = _lineHandoff@12@126137 lineHandoff = "_lineHandoff@12" @126 138 138 ; lineHandoffA @127 139 139 ; lineHandoffW @128 140 lineHold = _lineHold@4@129141 lineInitialize = _lineInitialize@20@130140 lineHold = "_lineHold@4" @129 141 lineInitialize = "_lineInitialize@20" @130 142 142 ; lineInitializeExA @131 143 143 ; lineInitializeExW @132 144 lineMakeCall = _lineMakeCall@20@133144 lineMakeCall = "_lineMakeCall@20" @133 145 145 ; lineMakeCallA @134 146 146 ; lineMakeCallW @135 147 lineMonitorDigits = _lineMonitorDigits@8@136148 lineMonitorMedia = _lineMonitorMedia@8@137149 lineMonitorTones = _lineMonitorTones@12@138150 lineNegotiateAPIVersion = _lineNegotiateAPIVersion@24@139151 lineNegotiateExtVersion = _lineNegotiateExtVersion@24@140152 lineOpen = _lineOpen@36@141147 lineMonitorDigits = "_lineMonitorDigits@8" @136 148 lineMonitorMedia = "_lineMonitorMedia@8" @137 149 lineMonitorTones = "_lineMonitorTones@12" @138 150 lineNegotiateAPIVersion = "_lineNegotiateAPIVersion@24" @139 151 lineNegotiateExtVersion = "_lineNegotiateExtVersion@24" @140 152 lineOpen = "_lineOpen@36" @141 153 153 ; lineOpenA @142 154 154 ; lineOpenW @143 155 linePark = _linePark@16@144155 linePark = "_linePark@16" @144 156 156 ; lineParkA @145 157 157 ; lineParkW @146 158 linePickup = _linePickup@20@147158 linePickup = "_linePickup@20" @147 159 159 ; linePickupA @148 160 160 ; linePickupW @149 161 linePrepareAddToConference = _linePrepareAddToConference@12@150161 linePrepareAddToConference = "_linePrepareAddToConference@12" @150 162 162 ; linePrepareAddToConferenceA @151 163 163 ; linePrepareAddToConferenceW @152 164 164 ; lineProxyMessage @153 165 165 ; lineProxyResponse @154 166 lineRedirect = _lineRedirect@12@155166 lineRedirect = "_lineRedirect@12" @155 167 167 ; lineRedirectA @156 168 168 ; lineRedirectW @157 169 lineRegisterRequestRecipient = _lineRegisterRequestRecipient@16@158170 lineReleaseUserUserInfo = _lineReleaseUserUserInfo@4@159171 lineRemoveFromConference = _lineRemoveFromConference@4@160172 lineRemoveProvider = _lineRemoveProvider@8@161173 lineSecureCall = _lineSecureCall@4@162174 lineSendUserUserInfo = _lineSendUserUserInfo@12@163169 lineRegisterRequestRecipient = "_lineRegisterRequestRecipient@16" @158 170 lineReleaseUserUserInfo = "_lineReleaseUserUserInfo@4" @159 171 lineRemoveFromConference = "_lineRemoveFromConference@4" @160 172 lineRemoveProvider = "_lineRemoveProvider@8" @161 173 lineSecureCall = "_lineSecureCall@4" @162 174 lineSendUserUserInfo = "_lineSendUserUserInfo@12" @163 175 175 ; lineSetAgentActivity @164 176 176 ; lineSetAgentGroup @165 177 177 ; lineSetAgentState @166 178 lineSetAppPriority = _lineSetAppPriority@24@167178 lineSetAppPriority = "_lineSetAppPriority@24" @167 179 179 ; lineSetAppPriorityA @168 180 180 ; lineSetAppPriorityW @169 181 lineSetAppSpecific = _lineSetAppSpecific@8@170181 lineSetAppSpecific = "_lineSetAppSpecific@8" @170 182 182 ; lineSetCallData @171 183 lineSetCallParams = _lineSetCallParams@20@172184 lineSetCallPrivilege = _lineSetCallPrivilege@8@173183 lineSetCallParams = "_lineSetCallParams@20" @172 184 lineSetCallPrivilege = "_lineSetCallPrivilege@8" @173 185 185 ; lineSetCallQualityOfService @174 186 186 ; lineSetCallTreatment @175 187 lineSetCurrentLocation = _lineSetCurrentLocation@8@176188 lineSetDevConfig = _lineSetDevConfig@16@177187 lineSetCurrentLocation = "_lineSetCurrentLocation@8" @176 188 lineSetDevConfig = "_lineSetDevConfig@16" @177 189 189 ; lineSetDevConfigA @178 190 190 ; lineSetDevConfigW @179 191 191 ; lineSetLineDevStatus @180 192 lineSetMediaControl = _lineSetMediaControl@48@181193 lineSetMediaMode = _lineSetMediaMode@8@182194 lineSetNumRings = _lineSetNumRings@12@183195 lineSetStatusMessages = _lineSetStatusMessages@12@184196 lineSetTerminal = _lineSetTerminal@28@185197 lineSetTollList = _lineSetTollList@16@186192 lineSetMediaControl = "_lineSetMediaControl@48" @181 193 lineSetMediaMode = "_lineSetMediaMode@8" @182 194 lineSetNumRings = "_lineSetNumRings@12" @183 195 lineSetStatusMessages = "_lineSetStatusMessages@12" @184 196 lineSetTerminal = "_lineSetTerminal@28" @185 197 lineSetTollList = "_lineSetTollList@16" @186 198 198 ; lineSetTollListA @187 199 199 ; lineSetTollListW @188 200 lineSetupConference = _lineSetupConference@24@189200 lineSetupConference = "_lineSetupConference@24" @189 201 201 ; lineSetupConferenceA @190 202 202 ; lineSetupConferenceW @191 203 lineSetupTransfer = _lineSetupTransfer@12@192203 lineSetupTransfer = "_lineSetupTransfer@12" @192 204 204 ; lineSetupTransferA @193 205 205 ; lineSetupTransferW @194 206 lineShutdown = _lineShutdown@4@195207 lineSwapHold = _lineSwapHold@8@196208 lineTranslateAddress = _lineTranslateAddress@28@197206 lineShutdown = "_lineShutdown@4" @195 207 lineSwapHold = "_lineSwapHold@8" @196 208 lineTranslateAddress = "_lineTranslateAddress@28" @197 209 209 ; lineTranslateAddressA @198 210 210 ; lineTranslateAddressW @199 211 lineTranslateDialog = _lineTranslateDialog@20@200211 lineTranslateDialog = "_lineTranslateDialog@20" @200 212 212 213 213 ; lineTranslateDialogA @201 214 214 ; lineTranslateDialogW @202 215 lineUncompleteCall = _lineUncompleteCall@8@203216 lineUnhold = _lineUnhold@4@204217 lineUnpark = _lineUnpark@16@205215 lineUncompleteCall = "_lineUncompleteCall@8" @203 216 lineUnhold = "_lineUnhold@4" @204 217 lineUnpark = "_lineUnpark@16" @205 218 218 ; lineUnparkA @206 219 219 ; lineUnparkW @207 220 phoneClose = _phoneClose@4@208221 phoneConfigDialog = _phoneConfigDialog@12@209220 phoneClose = "_phoneClose@4" @208 221 phoneConfigDialog = "_phoneConfigDialog@12" @209 222 222 ; phoneConfigDialogA @210 223 223 ; phoneConfigDialogW @211 224 phoneDevSpecific = _phoneDevSpecific@12@212225 phoneGetButtonInfo = _phoneGetButtonInfo@12@213224 phoneDevSpecific = "_phoneDevSpecific@12" @212 225 phoneGetButtonInfo = "_phoneGetButtonInfo@12" @213 226 226 ; phoneGetButtonInfoA @214 227 227 ; phoneGetButtonInfoW @215 228 phoneGetData = _phoneGetData@16@216229 phoneGetDevCaps = _phoneGetDevCaps@20@217228 phoneGetData = "_phoneGetData@16" @216 229 phoneGetDevCaps = "_phoneGetDevCaps@20" @217 230 230 ; phoneGetDevCapsA @218 231 231 ; phoneGetDevCapsW @219 232 phoneGetDisplay = _phoneGetDisplay@8@220233 phoneGetGain = _phoneGetGain@12@221234 phoneGetHookSwitch = _phoneGetHookSwitch@8@222235 phoneGetID = _phoneGetID@12@223232 phoneGetDisplay = "_phoneGetDisplay@8" @220 233 phoneGetGain = "_phoneGetGain@12" @221 234 phoneGetHookSwitch = "_phoneGetHookSwitch@8" @222 235 phoneGetID = "_phoneGetID@12" @223 236 236 ; phoneGetIDA @224 237 237 ; phoneGetIDW @225 238 phoneGetIcon = _phoneGetIcon@12@226238 phoneGetIcon = "_phoneGetIcon@12" @226 239 239 ; phoneGetIconA @227 240 240 ; phoneGetIconW @228 241 phoneGetLamp = _phoneGetLamp@12@229241 phoneGetLamp = "_phoneGetLamp@12" @229 242 242 ; phoneGetMessage @230 243 phoneGetRing = _phoneGetRing@12@231244 phoneGetStatus = _phoneGetStatus@8@232243 phoneGetRing = "_phoneGetRing@12" @231 244 phoneGetStatus = "_phoneGetStatus@8" @232 245 245 ; phoneGetStatusA @233 246 phoneGetStatusMessages = _phoneGetStatusMessages@16@234246 phoneGetStatusMessages = "_phoneGetStatusMessages@16" @234 247 247 ; phoneGetStatusW @235 248 phoneGetVolume = _phoneGetVolume@12@236249 phoneInitialize = _phoneInitialize@20@237248 phoneGetVolume = "_phoneGetVolume@12" @236 249 phoneInitialize = "_phoneInitialize@20" @237 250 250 ; phoneInitializeExA @238 251 251 ; phoneInitializeExW @239 252 phoneNegotiateAPIVersion = _phoneNegotiateAPIVersion@24@240253 phoneNegotiateExtVersion = _phoneNegotiateExtVersion@24@241254 phoneOpen = _phoneOpen@28@242255 phoneSetButtonInfo = _phoneSetButtonInfo@12@243252 phoneNegotiateAPIVersion = "_phoneNegotiateAPIVersion@24" @240 253 phoneNegotiateExtVersion = "_phoneNegotiateExtVersion@24" @241 254 phoneOpen = "_phoneOpen@28" @242 255 phoneSetButtonInfo = "_phoneSetButtonInfo@12" @243 256 256 ; phoneSetButtonInfoA @244 257 257 ; phoneSetButtonInfoW @245 258 phoneSetData = _phoneSetData@16@246259 phoneSetDisplay = _phoneSetDisplay@20@247260 phoneSetGain = _phoneSetGain@12@248261 phoneSetHookSwitch = _phoneSetHookSwitch@12@249262 phoneSetLamp = _phoneSetLamp@12@250263 phoneSetRing = _phoneSetRing@12@251264 phoneSetStatusMessages = _phoneSetStatusMessages@16@252265 phoneSetVolume = _phoneSetVolume@12@253266 phoneShutdown = _phoneShutdown@4@254267 tapiGetLocationInfo = _tapiGetLocationInfo@8@255258 phoneSetData = "_phoneSetData@16" @246 259 phoneSetDisplay = "_phoneSetDisplay@20" @247 260 phoneSetGain = "_phoneSetGain@12" @248 261 phoneSetHookSwitch = "_phoneSetHookSwitch@12" @249 262 phoneSetLamp = "_phoneSetLamp@12" @250 263 phoneSetRing = "_phoneSetRing@12" @251 264 phoneSetStatusMessages = "_phoneSetStatusMessages@16" @252 265 phoneSetVolume = "_phoneSetVolume@12" @253 266 phoneShutdown = "_phoneShutdown@4" @254 267 tapiGetLocationInfo = "_tapiGetLocationInfo@8" @255 268 268 ; tapiGetLocationInfoA @256 269 269 ; tapiGetLocationInfoW @257 270 tapiRequestDrop = _tapiRequestDrop@8@258271 tapiRequestMakeCall = _tapiRequestMakeCall@16@259270 tapiRequestDrop = "_tapiRequestDrop@8" @258 271 tapiRequestMakeCall = "_tapiRequestMakeCall@16" @259 272 272 ; tapiRequestMakeCallA @260 273 273 ; tapiRequestMakeCallW @261 274 tapiRequestMediaCall = _tapiRequestMediaCall@40@262274 tapiRequestMediaCall = "_tapiRequestMediaCall@40" @262 275 275 ; tapiRequestMediaCallA @263 276 276 ; tapiRequestMediaCallW @264 -
branches/gcc-kmk/src/testdrv/testdrv.def
r6455 r21898 1 1 LIBRARY TESTDRV INITINSTANCE TERMINSTANCE 2 2 3 PROTMODE4 3 DATA MULTIPLE NONSHARED READWRITE LOADONCALL 5 4 CODE LOADONCALL 6 5 7 6 EXPORTS 8 DrvOpen = _DrvOpen@8@19 DrvClose = _DrvClose@4@210 DrvIOCtl = _DrvIOCtl@32@37 DrvOpen = "_DrvOpen@8" @1 8 DrvClose = "_DrvClose@4" @2 9 DrvIOCtl = "_DrvIOCtl@32" @3 -
branches/gcc-kmk/src/twain_32/initterm.cpp
r21582 r21898 1 1 /* $Id: initterm.cpp,v 1.13 2001-09-05 13:52:13 bird Exp $ 2 2 * 3 * DLL entry point3 * TWAIN_32 DLL entry point 4 4 * 5 5 * Copyright 1998 Sander van Leeuwen 6 6 * Copyright 1998 Peter Fitzsimmons 7 7 * 8 *9 8 * Project Odin Software License can be found in LICENSE.TXT 10 *11 9 */ 12 10 13 /*-------------------------------------------------------------*/14 /* INITERM.C -- Source for a custom dynamic link library */15 /* initialization and termination (_DLL_InitTerm) */16 /* function. */17 /* */18 /* When called to perform initialization, this sample function */19 /* gets storage for an array of integers, and initializes its */20 /* elements with random integers. At termination time, it */21 /* frees the array. Substitute your own special processing. */22 /*-------------------------------------------------------------*/23 24 25 /* Include files */26 11 #define INCL_DOSMODULEMGR 27 12 #define INCL_DOSPROCESS … … 38 23 #include <initdll.h> 39 24 40 extern "C" { 41 //Win32 resource table (produced by wrc) 42 extern DWORD _Resource_PEResTab; 25 // Win32 resource table (produced by wrc) 26 extern DWORD twain_32_PEResTab; 43 27 44 28 #if 0 … … 49 33 extern int WINAPI PROFILE_GetOdinIniInt(LPCSTR section,LPCSTR key_name,int def); 50 34 TW_UINT16 (APIENTRY *TWAINOS2_DSM_Entry)( pTW_IDENTITY, pTW_IDENTITY, 51 TW_UINT32, TW_UINT16, TW_UINT16, TW_MEMREF) = 0;35 TW_UINT32, TW_UINT16, TW_UINT16, TW_MEMREF) = 0; 52 36 #if 0 53 37 static HINSTANCE hTWAIN = 0; … … 56 40 char szLoadError[256]; 57 41 #endif 58 } 42 59 43 static HMODULE dllHandle = 0; 60 44 61 //******************************************************************************62 //******************************************************************************63 45 BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) 64 46 { 65 switch (fdwReason)66 {67 case DLL_PROCESS_ATTACH:68 return TRUE;47 switch (fdwReason) 48 { 49 case DLL_PROCESS_ATTACH: 50 return TRUE; 69 51 70 case DLL_THREAD_ATTACH:71 case DLL_THREAD_DETACH:72 return TRUE;52 case DLL_THREAD_ATTACH: 53 case DLL_THREAD_DETACH: 54 return TRUE; 73 55 74 case DLL_PROCESS_DETACH: 75 ctordtorTerm(); 76 return TRUE; 77 } 78 return FALSE; 56 case DLL_PROCESS_DETACH: 57 #ifdef __IBMC__ 58 ctordtorTerm(); 59 #endif 60 return TRUE; 61 } 62 return FALSE; 79 63 } 80 /****************************************************************************/ 81 /* _DLL_InitTerm is the function that gets called by the operating system */ 82 /* loader when it loads and frees this DLL for each process that accesses */ 83 /* this DLL. However, it only gets called the first time the DLL is loaded */ 84 /* and the last time it is freed for a particular process. The system */ 85 /* linkage convention MUST be used because the operating system loader is */ 86 /* calling this function. */ 87 /****************************************************************************/ 88 unsigned long SYSTEM _DLL_InitTerm(unsigned long hModule, unsigned long 89 ulFlag) 64 65 ULONG SYSTEM DLL_InitTwain32(ULONG hModule) 90 66 { 91 size_t i; 92 APIRET rc; 93 ULONG twaintype; 67 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 94 68 95 /*-------------------------------------------------------------------------*/ 96 /* If ulFlag is zero then the DLL is being loaded so initialization should */ 97 /* be performed. If ulFlag is 1 then the DLL is being freed so */ 98 /* termination should be performed. */ 99 /*-------------------------------------------------------------------------*/ 69 ULONG twaintype = PROFILE_GetOdinIniInt("TWAIN","TwainIF",1); 70 switch(twaintype) 71 { 72 case 1: 73 default: 74 { 75 dprintf(("TWAIN_32: Using CFM-Twain as Twain Source.\n\n")); 76 #if 0 77 hTWAIN = LoadLibraryA("TWAINOS2.DLL"); 78 if (hTWAIN) 79 { 80 *(VOID **)&TWAINOS2_DSM_Entry=(void*)GetProcAddress(hTWAIN, (LPCSTR)"DSM_Entry"); 81 } 82 else 83 { 84 return -1; 85 } 86 #else 87 APIRET rc = DosLoadModule( szLoadError, sizeof(szLoadError), "TWAINOS2", &hTWAIN); 88 if (rc == 0) 89 { 90 rc = DosQueryProcAddr(hTWAIN, 0, "DSM_Entry",(PFN*)&TWAINOS2_DSM_Entry); 91 } 92 else 93 { 94 dprintf(("TWAIN_32: Error Loading DLL: %s",szLoadError)); 95 } 96 if (rc != 0) 97 { 98 return -1; 99 } 100 #endif 101 break; 102 } 103 case 2: 104 { 105 dprintf(("TWAIN_32: Using STI-Twain as Twain Source.\n\n")); 106 #if 0 107 hTWAIN = LoadLibraryA("TWAIN.DLL"); 108 if (hTWAIN) 109 { 110 *(VOID **)&TWAINOS2_DSM_Entry=(void*)GetProcAddress(hTWAIN, (LPCSTR)"DSM_ENTRY"); 111 } 112 else 113 { 114 return -1; 115 } 116 #else 117 APIRET rc = DosLoadModule( szLoadError, sizeof(szLoadError), "TWAIN", &hTWAIN); 118 if (rc == 0) 119 { 120 rc = DosQueryProcAddr(hTWAIN, 0, "DSM_Entry",(PFN*)&TWAINOS2_DSM_Entry); 121 } 122 else 123 { 124 dprintf(("TWAIN_32: Error Loading DLL: %s",szLoadError)); 125 } 126 if (rc != 0) 127 { 128 return -1; 129 } 130 #endif 131 break; 132 } 133 case 3: 134 { 135 dprintf(("TWAIN_32: Using SANE as Twain Source (currently not supported).\n\n")); 136 return -1; 137 } 138 } 100 139 101 switch (ulFlag) {102 case 0 :103 ctordtorInit();140 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&twain_32_PEResTab); 141 if(dllHandle == 0) 142 return -1; 104 143 105 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 144 return 0; 145 } 106 146 107 twaintype = PROFILE_GetOdinIniInt("TWAIN","TwainIF",1); 108 switch(twaintype) 109 { 110 case 1: 111 default: 112 { 113 dprintf(("TWAIN_32: Using CFM-Twain as Twain Source.\n\n")); 147 void SYSTEM DLL_TermTwain32(ULONG hModule) 148 { 149 if (hTWAIN) 150 { 114 151 #if 0 115 hTWAIN = LoadLibraryA("TWAINOS2.DLL"); 116 if(hTWAIN) 117 { 118 *(VOID **)&TWAINOS2_DSM_Entry=(void*)GetProcAddress(hTWAIN, (LPCSTR)"DSM_Entry"); 119 } 120 else 121 { 122 return 0UL; 123 } 152 FreeLibrary(hTWAIN); 124 153 #else 125 rc = DosLoadModule( szLoadError, sizeof(szLoadError), "TWAINOS2", &hTWAIN); 126 if(rc==0) 127 { 128 rc = DosQueryProcAddr(hTWAIN, 0, "DSM_Entry",(PFN*)&TWAINOS2_DSM_Entry); 129 } 130 else 131 { 132 dprintf(("TWAIN_32: Error Loading DLL: %s",szLoadError)); 133 } 134 if(rc!=0) 135 { 136 return 0UL; 137 } 154 DosFreeModule(hTWAIN); 138 155 #endif 139 break; 140 } 141 case 2: 142 { 143 dprintf(("TWAIN_32: Using STI-Twain as Twain Source.\n\n")); 144 #if 0 145 hTWAIN = LoadLibraryA("TWAIN.DLL"); 146 if(hTWAIN) 147 { 148 *(VOID **)&TWAINOS2_DSM_Entry=(void*)GetProcAddress(hTWAIN, (LPCSTR)"DSM_ENTRY"); 149 } 150 else 151 { 152 return 0UL; 153 } 154 #else 155 rc = DosLoadModule( szLoadError, sizeof(szLoadError), "TWAIN", &hTWAIN); 156 if(rc==0) 157 { 158 rc = DosQueryProcAddr(hTWAIN, 0, "DSM_Entry",(PFN*)&TWAINOS2_DSM_Entry); 159 } 160 else 161 { 162 dprintf(("TWAIN_32: Error Loading DLL: %s",szLoadError)); 163 } 164 if(rc!=0) 165 { 166 return 0UL; 167 } 168 #endif 169 break; 170 } 171 case 3: 172 { 173 dprintf(("TWAIN_32: Using SANE as Twain Source (currently not supported).\n\n")); 174 return 0UL; 175 } 176 } 156 hTWAIN = 0; 157 } 177 158 178 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);179 if(dllHandle == 0)180 return 0UL; 159 if (dllHandle) 160 UnregisterLxDll(dllHandle); 161 } 181 162 182 break; 183 case 1 : 184 if(hTWAIN) 185 #if 0 186 FreeLibrary(hTWAIN); 187 #else 188 DosFreeModule(hTWAIN); 189 #endif 190 hTWAIN = 0; 191 if(dllHandle) { 192 UnregisterLxDll(dllHandle); 193 } 194 break; 195 default : 196 return 0UL; 197 } 163 ULONG SYSTEM DLL_Init(ULONG hModule) 164 { 165 if (DLL_InitDefault(hModule) == -1) 166 return -1; 167 return DLL_InitTwain32(hModule); 168 } 198 169 199 /***********************************************************/ 200 /* A non-zero value must be returned to indicate success. */ 201 /***********************************************************/202 return 1UL;170 void SYSTEM DLL_Term(ULONG hModule) 171 { 172 DLL_TermTwain32(hModule); 173 DLL_TermDefault(hModule); 203 174 } 204 //******************************************************************************205 //****************************************************************************** -
branches/gcc-kmk/src/twain_32/twain_32.def
r4809 r21898 6 6 7 7 EXPORTS 8 DSM_Entry = _DSM_Entry@24@18 DSM_Entry = "_DSM_Entry@24" @1 9 9 ChooseDlgProc = _ODIN_ChooseDlgProc @3 10 10 AboutDlgProc = _ODIN_AboutDlgProc @4 -
branches/gcc-kmk/src/urlmon/stubs.cpp
r21333 r21898 15 15 #include <windows.h> 16 16 #include <objbase.h> 17 #include <urlmon.h>18 17 #include <debugtools.h> 19 18 19 #include "urlmon.h" 20 20 21 21 /******************************************************************************* -
branches/gcc-kmk/src/urlmon/umon.cpp
r3925 r21898 37 37 * 38 38 */ 39 extern "C" 39 40 HRESULT CreateURLMoniker(IMoniker *pmkContext, LPWSTR szURL, IMoniker **ppmk) 40 41 { -
branches/gcc-kmk/src/urlmon/urlmon.cpp
r21333 r21898 9 9 #include <os2win.h> 10 10 #include <odinwrap.h> 11 #include <heapstring.h>12 11 #include "wtypes.h" 13 12 // #include "urlmon.h" 13 14 #include <heapstring.h> 14 15 15 16 /*********************************************************************** -
branches/gcc-kmk/src/urlmon/urlmon.def
r21333 r21898 8 8 ; BindAsyncMoniker @1 9 9 ; CoGetClassObjectFromURL @2 10 CreateAsyncBindCtx = _CreateAsyncBindCtx@16@310 CreateAsyncBindCtx = "_CreateAsyncBindCtx@16" @3 11 11 ; CreateBindProtocol @4 12 12 ; CreateFormatEnumerator @5 13 CreateURLMoniker = CreateURLMoniker__FP8IMonikerPUsPP8IMoniker @614 DllCanUnloadNow = _URLMON_DllCanUnloadNow@0@715 DllGetClassObject = _URLMON_DllGetClassObject@12@816 DllRegisterServer = _URLMON_DllRegisterServer@0@917 DllRegisterServerEx = _URLMON_DllRegisterServerEx@0@1018 DllUnregisterServer = _URLMON_DllUnregisterServer@0@1113 CreateURLMoniker = _CreateURLMoniker @6 14 DllCanUnloadNow = "_URLMON_DllCanUnloadNow@0" @7 15 DllGetClassObject = "_URLMON_DllGetClassObject@12" @8 16 DllRegisterServer = "_URLMON_DllRegisterServer@0" @9 17 DllRegisterServerEx = "_URLMON_DllRegisterServerEx@0" @10 18 DllUnregisterServer = "_URLMON_DllUnregisterServer@0" @11 19 19 ; Extract @12 20 20 ; FindMediaType @13 … … 25 25 ; HlinkGoForward @18 26 26 ; HlinkNavigateMoniker @19 27 HlinkNavigateString = _HlinkNavigateString@8@2027 HlinkNavigateString = "_HlinkNavigateString@8" @20 28 28 ; HlinkSimpleNavigateToMoniker @21 29 HlinkSimpleNavigateToString = _HlinkSimpleNavigateToString@32@2230 IsAsyncMoniker = _IsAsyncMoniker@4@2329 HlinkSimpleNavigateToString = "_HlinkSimpleNavigateToString@32" @22 30 IsAsyncMoniker = "_IsAsyncMoniker@4" @23 31 31 ; IsValidURL @24 32 32 ; MkParseDisplayNameEx @25 33 RegisterBindStatusCallback = _RegisterBindStatusCallback@16@2633 RegisterBindStatusCallback = "_RegisterBindStatusCallback@16" @26 34 34 ; RegisterFormatEnumerator @27 35 35 ; RegisterMediaTypeClass @28 … … 51 51 ; UrlMkBuildVersion @44 52 52 ; UrlMkSetSessionOption @45 53 CoInternetCreateSecurityManager = _CoInternetCreateSecurityManager@12@4654 CoInternetCreateZoneManager = _CoInternetCreateZoneManager@12@4755 CopyStgMedium = _CopyStgMedium@8@4853 CoInternetCreateSecurityManager = "_CoInternetCreateSecurityManager@12" @46 54 CoInternetCreateZoneManager = "_CoInternetCreateZoneManager@12" @47 55 CopyStgMedium = "_CopyStgMedium@8" @48 -
branches/gcc-kmk/src/urlmon/urlmon.h
r3633 r21898 6 6 #define __WINE_URLMON_H 7 7 8 extern "C" 8 9 HRESULT CreateURLMoniker(IMoniker *pmkContext, LPWSTR szURL, IMoniker **ppmk); 9 10
Note:
See TracChangeset
for help on using the changeset viewer.