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/kernel32/registry.cpp

    r6346 r6401  
    1 /* $Id: registry.cpp,v 1.11 2001-07-16 09:25:16 sandervl Exp $ */
     1/* $Id: registry.cpp,v 1.12 2001-07-29 19:00:31 sandervl Exp $ */
    22
    33/*
     
    5050
    5151
     52static HKEY hKeyClassesRoot  = HKEY_CLASSES_ROOT_O32;
     53static HKEY hKeyCurrentUser  = HKEY_CURRENT_USER_O32;
     54static HKEY hKeyLocalMachine = HKEY_LOCAL_MACHINE_O32;
     55static HKEY hKeyUsers        = HKEY_USERS_O32;
     56
    5257/*****************************************************************************
    5358 * Name      : Convert Key
     
    6469static HKEY ConvertKey(HKEY winkey)
    6570{
    66   switch((int)winkey)
     71  switch((DWORD)winkey)
    6772  {
    68     case HKEY_CLASSES_ROOT:   return HKEY_CLASSES_ROOT_O32;
    69     case HKEY_CURRENT_USER:   return HKEY_CURRENT_USER_O32;
    70     case HKEY_LOCAL_MACHINE:  return HKEY_LOCAL_MACHINE_O32;
    71     case HKEY_USERS:          return HKEY_USERS_O32;
     73    case HKEY_CLASSES_ROOT:   return hKeyClassesRoot;
     74    case HKEY_CURRENT_USER:   return hKeyCurrentUser;
     75    case HKEY_LOCAL_MACHINE:  return hKeyLocalMachine;
     76    case HKEY_USERS:          return hKeyUsers;
    7277  }
    7378  return(winkey);
    7479}
    7580
     81void WIN32API SetRegistryRootKey(HKEY hRootkey, HKEY hKey)
     82{
     83  switch((DWORD)hRootkey)
     84  {
     85    case HKEY_CLASSES_ROOT:   
     86        hKeyClassesRoot = hKey;
     87        break;
     88    case HKEY_CURRENT_USER:
     89        hKeyCurrentUser = hKey;
     90        break;
     91    case HKEY_LOCAL_MACHINE:
     92        hKeyLocalMachine = hKey;
     93        break;
     94    case HKEY_USERS:
     95        hKeyUsers = hKey;
     96        break;
     97  }
     98}
    7699
    77100/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.