Changeset 6401 for trunk/src/kernel32/registry.cpp
- Timestamp:
- Jul 29, 2001, 9:02:35 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/registry.cpp
r6346 r6401 1 /* $Id: registry.cpp,v 1.1 1 2001-07-16 09:25:16sandervl Exp $ */1 /* $Id: registry.cpp,v 1.12 2001-07-29 19:00:31 sandervl Exp $ */ 2 2 3 3 /* … … 50 50 51 51 52 static HKEY hKeyClassesRoot = HKEY_CLASSES_ROOT_O32; 53 static HKEY hKeyCurrentUser = HKEY_CURRENT_USER_O32; 54 static HKEY hKeyLocalMachine = HKEY_LOCAL_MACHINE_O32; 55 static HKEY hKeyUsers = HKEY_USERS_O32; 56 52 57 /***************************************************************************** 53 58 * Name : Convert Key … … 64 69 static HKEY ConvertKey(HKEY winkey) 65 70 { 66 switch(( int)winkey)71 switch((DWORD)winkey) 67 72 { 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; 72 77 } 73 78 return(winkey); 74 79 } 75 80 81 void 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 } 76 99 77 100 /*****************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.