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

custom build updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.