Changeset 4093 for trunk/src/kernel32/initsystem.cpp
- Timestamp:
- Aug 25, 2000, 11:02:54 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/initsystem.cpp
r4035 r4093 1 /* $Id: initsystem.cpp,v 1.1 2 2000-08-18 18:16:33sandervl Exp $ */1 /* $Id: initsystem.cpp,v 1.13 2000-08-25 09:02:54 sandervl Exp $ */ 2 2 /* 3 3 * Odin system initialization (registry, directories & environment) … … 71 71 #define HARDWARE_VIDEO_VGA_DESCRIPTION "OS/2 VGA Display driver" 72 72 #define HARDWARE_VIDEO_COMPATIBLE "\\Device\\Video1" 73 #define DIRECTX_RC "0" 74 #define DIRECTX_VERSION "4.04.1381.276" 75 #define DIRECTX_INSTALLED_VERSION 0x0004 76 #define ODIN_WINMM_PLAYBACK "OS/2 Dart Audio Playback" 77 #define ODIN_WINMM_RECORD "OS/2 Dart Audio Record" 73 78 74 79 //****************************************************************************** … … 374 379 RegSetValueExA(hkey,"Device Description", 0, REG_SZ, (LPBYTE)HARDWARE_VIDEO_VGA_DESCRIPTION, sizeof(HARDWARE_VIDEO_VGA_DESCRIPTION)); 375 380 RegCloseKey(hkey); 376 381 382 //Software\Microsoft\Multimedia\Sound Mapper 383 if(RegCreateKeyA(HKEY_CURRENT_USER,"Software\\Microsoft\\Multimedia\\Sound Mapper",&hkey)!=ERROR_SUCCESS) { 384 goto initreg_error; 385 } 386 RegSetValueExA(hkey,"Playback", 0, REG_SZ, (LPBYTE)ODIN_WINMM_PLAYBACK, sizeof(ODIN_WINMM_PLAYBACK)); 387 RegSetValueExA(hkey,"Record", 0, REG_SZ, (LPBYTE)ODIN_WINMM_RECORD, sizeof(ODIN_WINMM_RECORD)); 388 RegCloseKey(hkey); 389 390 //Software\Microsoft\DirectX 391 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\DirectX",&hkey)!=ERROR_SUCCESS) { 392 goto initreg_error; 393 } 394 RegSetValueExA(hkey,"",0,REG_SZ, (LPBYTE)"", 0); 395 RegSetValueExA(hkey, "RC", 0,REG_SZ, (LPBYTE)DIRECTX_RC, sizeof(DIRECTX_RC)); 396 RegSetValueExA(hkey, "Version", 0,REG_SZ, (LPBYTE)DIRECTX_VERSION, sizeof(DIRECTX_VERSION)); 397 val = DIRECTX_INSTALLED_VERSION; 398 RegSetValueExA(hkey, "InstalledVersion", 0,REG_BINARY, (LPBYTE)&val, sizeof(DWORD)); 399 RegCloseKey(hkey); 400 401 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\DirectDraw",&hkey)!=ERROR_SUCCESS) { 402 goto initreg_error; 403 } 404 //todo 405 RegCloseKey(hkey); 406 407 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Direct3D",&hkey)!=ERROR_SUCCESS) { 408 goto initreg_error; 409 } 410 //todo 411 RegCloseKey(hkey); 412 413 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\DirectPlay",&hkey)!=ERROR_SUCCESS) { 414 goto initreg_error; 415 } 416 //todo 417 RegCloseKey(hkey); 418 419 #if 0 420 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\DirectMusic",&hkey)!=ERROR_SUCCESS) { 421 goto initreg_error; 422 } 423 //todo 424 RegCloseKey(hkey); 425 #endif 377 426 return TRUE; 378 427
Note:
See TracChangeset
for help on using the changeset viewer.