Changeset 4508 for trunk/src/kernel32/initsystem.cpp
- Timestamp:
- Oct 21, 2000, 2:48:40 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/initsystem.cpp
r4496 r4508 1 /* $Id: initsystem.cpp,v 1. 19 2000-10-18 17:09:32sandervl Exp $ */1 /* $Id: initsystem.cpp,v 1.20 2000-10-21 12:48:40 sandervl Exp $ */ 2 2 /* 3 3 * Odin system initialization (registry, directories & environment) … … 59 59 #define DSOUND_DEFAULT "DirectSound Object" 60 60 #define DSOUND_DLL "dsound.dll" 61 #define DPLAYX_CLASSID "{D1EB6D20-8923-11d0-9D97-00A0C90A43CB}" 62 #define DPLAYX_DEFAULT "DirectPlay Object" 63 #define DPLAYX_DLL "dplayx.dll" 64 #define DPLAYX_LOBBY_CLASSID "{2FE8F810-B2A5-11d0-A787-0000F803ABFC}" 65 #define DPLAYX_LOBBY_DEFAULT "DirectPlayLobby Object" 66 #define DPLAYX_LOBBY_DLL DPLAYX_DLL 67 61 68 #define CLASS_DESKTOP "Desktop" 62 69 #define CLASS_SHORTCUT "Shortcut" … … 410 417 } 411 418 RegSetValueExA(hkey1,"",0,REG_SZ, (LPBYTE)DSOUND_DLL, sizeof(DSOUND_DLL)); 419 RegSetValueExA(hkey1, COM_THREADMODEL, 0,REG_SZ, (LPBYTE)THREAD_BOTH, sizeof(THREAD_BOTH)); 420 RegCloseKey(hkey1); 421 RegCloseKey(hkey); 422 423 //DirectPlay 424 if(RegCreateKeyA(HKEY_LOCAL_MACHINE, "Software\\CLASSES\\CLSID\\"DPLAYX_CLASSID ,&hkey)!=ERROR_SUCCESS) { 425 goto initreg_error; 426 } 427 RegSetValueExA(hkey,"",0,REG_SZ, (LPBYTE)DPLAYX_DEFAULT, sizeof(DPLAYX_DEFAULT)); 428 if(RegCreateKeyA(hkey,COM_INPROCSERVER, &hkey1)!=ERROR_SUCCESS) { 429 RegCloseKey(hkey); 430 goto initreg_error; 431 } 432 RegSetValueExA(hkey1,"",0,REG_SZ, (LPBYTE)DPLAYX_DLL, sizeof(DPLAYX_DLL)); 433 RegSetValueExA(hkey1, COM_THREADMODEL, 0,REG_SZ, (LPBYTE)THREAD_BOTH, sizeof(THREAD_BOTH)); 434 RegCloseKey(hkey1); 435 RegCloseKey(hkey); 436 437 //DirectPlay Lobby 438 if(RegCreateKeyA(HKEY_LOCAL_MACHINE, "Software\\CLASSES\\CLSID\\"DPLAYX_LOBBY_CLASSID ,&hkey)!=ERROR_SUCCESS) { 439 goto initreg_error; 440 } 441 RegSetValueExA(hkey,"",0,REG_SZ, (LPBYTE)DPLAYX_LOBBY_DEFAULT, sizeof(DPLAYX_LOBBY_DEFAULT)); 442 if(RegCreateKeyA(hkey,COM_INPROCSERVER, &hkey1)!=ERROR_SUCCESS) { 443 RegCloseKey(hkey); 444 goto initreg_error; 445 } 446 RegSetValueExA(hkey1,"",0,REG_SZ, (LPBYTE)DPLAYX_LOBBY_DLL, sizeof(DPLAYX_LOBBY_DLL)); 412 447 RegSetValueExA(hkey1, COM_THREADMODEL, 0,REG_SZ, (LPBYTE)THREAD_BOTH, sizeof(THREAD_BOTH)); 413 448 RegCloseKey(hkey1);
Note:
See TracChangeset
for help on using the changeset viewer.