Changeset 6401 for trunk/src/custombuild


Ignore:
Timestamp:
Jul 29, 2001, 9:02:35 PM (24 years ago)
Author:
sandervl
Message:

custom build updates

Location:
trunk/src/custombuild
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/custombuild/guid.c

    r6374 r6401  
    1 /* $Id: guid.c,v 1.1 2001-07-20 15:41:43 sandervl Exp $ */
     1/* $Id: guid.c,v 1.2 2001-07-29 19:02:35 sandervl Exp $ */
    22#define ICOM_CINTERFACE 1
    33#include <odin.h>
     
    5151    return towupper(*str1) - towupper(*str2);
    5252}
     53
     54/*********************************************************************
     55 *           wcstombs    (NTDLL.@)
     56 */
     57INT __cdecl NTDLL_wcstombs( LPSTR dst, LPCWSTR src, INT n )
     58{
     59    INT ret;
     60    if (n <= 0) return 0;
     61    ret = WideCharToMultiByte( CP_ACP, 0, src, -1, dst, dst ? n : 0, NULL, NULL );
     62    if (!ret) return n;  /* overflow */
     63    return ret - 1;  /* do not count terminating NULL */
     64}
     65
     66/*********************************************************************
     67 *           _wtol    (NTDLL.@)
     68 * Like atol, but for wide character strings.
     69 */
     70LONG __cdecl _wtol(LPWSTR string)
     71{
     72    char buffer[30];
     73    NTDLL_wcstombs( buffer, string, sizeof(buffer) );
     74    return atol( buffer );
     75}
     76
     77/*********************************************************************
     78 *           _wtoi    (NTDLL.@)
     79 */
     80INT __cdecl _wtoi(LPWSTR string)
     81{
     82    return _wtol(string);
     83}
  • trunk/src/custombuild/initterm.cpp

    r6374 r6401  
    3131#include <string.h>
    3232#include <odin.h>
     33#include <win32api.h>
    3334#include <win32type.h>
     35#include <odinapi.h>
    3436#include <winconst.h>
    3537#include <odinlx.h>
     
    3941
    4042BOOL  fVersionWarp3 = FALSE;
     43static HKEY hKeyClassesRoot  = 0;
     44static HKEY hKeyCurrentUser  = 0;
     45static HKEY hKeyLocalMachine = 0;
     46static HKEY hKeyUsers        = 0;
    4147
    4248#ifdef __IBMCPP__
     
    5157static void APIENTRY cleanup(ULONG reason);
    5258}
     59
    5360/****************************************************************************/
    5461/* _DLL_InitTerm is the function that gets called by the operating system   */
     
    100107         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    101108
     109         if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_ClassesRoot",&hKeyClassesRoot)!=ERROR_SUCCESS_W) {
     110             return 0;
     111         }
     112         if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_CurrentUser",&hKeyCurrentUser)!=ERROR_SUCCESS_W) {
     113             return 0;
     114         }
     115         if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_LocalMachine",&hKeyLocalMachine)!=ERROR_SUCCESS_W) {
     116             return 0;
     117         }
     118         if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_Users",&hKeyUsers)!=ERROR_SUCCESS_W) {
     119             return 0;
     120         }
     121         SetRegistryRootKey(HKEY_CLASSES_ROOT, hKeyClassesRoot);
     122         SetRegistryRootKey(HKEY_CURRENT_USER, hKeyCurrentUser);
     123         SetRegistryRootKey(HKEY_LOCAL_MACHINE, hKeyLocalMachine);
     124         SetRegistryRootKey(HKEY_USERS, hKeyUsers);
     125
     126         SetCustomBuildName("KERNEL32.DLL");
    102127         rc = inittermKernel32(hModule, ulFlag);
    103128         if(rc == 0)
    104                 return 0UL;
    105 
     129             return 0UL;
     130
     131         SetCustomBuildName("USER32.DLL");
    106132         rc = inittermUser32(hModule, ulFlag);
    107133         if(rc == 0)
    108134                return 0UL;
    109135
     136         SetCustomBuildName("WSOCK32.DLL");
     137         rc = inittermWsock32(hModule, ulFlag);
     138         if(rc == 0)
     139                return 0UL;
     140
     141         SetCustomBuildName("WINMM.DLL");
    110142         rc = inittermWinmm(hModule, ulFlag);
    111143         if(rc == 0)
    112144                return 0UL;
    113145
     146         SetCustomBuildName("RPCRT4.DLL");
    114147         rc = inittermRpcrt4(hModule, ulFlag);
    115148         if(rc == 0)
    116149                return 0UL;
    117150
     151         SetCustomBuildName("OLE32.DLL");
    118152         rc = inittermOle32(hModule, ulFlag);
    119153         if(rc == 0)
    120154                return 0UL;
    121155
     156         SetCustomBuildName("COMCTL32.DLL");
    122157         rc = inittermComctl32(hModule, ulFlag);
    123158         if(rc == 0)
    124159                return 0UL;
    125160
     161         SetCustomBuildName("SHELL32.DLL");
    126162         rc = inittermShell32(hModule, ulFlag);
    127163         if(rc == 0)
    128164                return 0UL;
    129165
     166         SetCustomBuildName("COMDLG32.DLL");
    130167         rc = inittermComdlg32(hModule, ulFlag);
    131168         if(rc == 0)
    132169                return 0UL;
    133170
     171         SetCustomBuildName(NULL);
    134172         break;
    135173      case 1 :
     
    140178         inittermRpcrt4(hModule, ulFlag);
    141179         inittermWinmm(hModule, ulFlag);
     180         inittermWsock32(hModule, ulFlag);
    142181         inittermUser32(hModule, ulFlag);
    143182         inittermKernel32(hModule, ulFlag);
  • trunk/src/custombuild/xxodin32.def

    r6374 r6401  
    1 ; $Id: xxodin32.def,v 1.1 2001-07-20 15:41:43 sandervl Exp $
     1; $Id: xxodin32.def,v 1.2 2001-07-29 19:02:35 sandervl Exp $
    22
    33LIBRARY XXODIN32 INITINSTANCE
     
    3030    WinXxCreateHeap               = PMMERGE.5425
    3131    WinXxDestroyHeap              = PMMERGE.5426
     32    __SwapMouseButton             = PMMERGE.10019
    3233    LookupAtom                    = PMMERGE.10020
    3334
     
    22372238  DSA_EnumCallback    = _DSA_EnumCallback@12       @7387
    22382239  DSA_DestroyCallback = _DSA_DestroyCallback@12    @7388
    2239                         _COMCTL32_389@8            @7389 NONAME
    2240                         _COMCTL32_390@16           @7390 NONAME
    2241 
    2242                         _comctl32_410@16           @7410 NONAME
    2243                         _comctl32_411@12           @7411 NONAME
    2244                         _comctl32_412@12           @7412 NONAME
    2245                         _comctl32_413@16           @7413 NONAME
    2246                         _COMCTL32_415@20           @7415 NONAME
    2247 
    2248 ; WIMM
     2240;;                        _COMCTL32_389@8            @7389 NONAME
     2241;;                        _COMCTL32_390@16           @7390 NONAME
     2242
     2243;;                        _comctl32_410@16           @7410 NONAME
     2244;;                        _comctl32_411@12           @7411 NONAME
     2245;;                        _comctl32_412@12           @7412 NONAME
     2246;;                        _comctl32_413@16           @7413 NONAME
     2247;;                        _COMCTL32_415@20           @7415 NONAME
     2248
     2249; WINMM
    22492250     PlaySoundA                 = _PlaySoundA@12           @8002
    22502251     CloseDriver                = _CloseDriver@12          @8005
Note: See TracChangeset for help on using the changeset viewer.