Changeset 5570 for trunk/tools/install/odininst.cpp
- Timestamp:
- Apr 22, 2001, 12:55:25 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/install/odininst.cpp
r5472 r5570 1 /* $Id: odininst.cpp,v 1. 3 2001-04-04 09:00:04sandervl Exp $ */1 /* $Id: odininst.cpp,v 1.4 2001-04-22 10:55:25 sandervl Exp $ */ 2 2 /* 3 3 * Odin WarpIn installation app … … 558 558 WritePrivateProfileStringA(szMci, szCDAudio, szMciCDA, shellpath); 559 559 } 560 561 //Font registry keys (not complete) 562 //[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts] 563 //"Courier 10,12,15 (VGA res)"="COURE.FON" 564 //"MS Sans Serif 8,10,12,14,18,24 (VGA res)"="SSERIFE.FON" 565 //"MS Serif 8,10,12,14,18,24 (VGA res)"="SERIFE.FON" 566 567 568 if(RegCreateKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts",&hkey)!=ERROR_SUCCESS) { 569 goto initreg_error; 570 } 571 #define FONT_COURIER "COURE.FON" 572 #define FONT_SANSSERIF "SSERIFE.FON" 573 #define FONT_SERIF "SERIFE.FON" 574 RegSetValueEx(hkey, "Courier 10,12,15 (VGA res)",0,REG_SZ, (LPBYTE)FONT_COURIER, sizeof(FONT_COURIER)); 575 RegSetValueEx(hkey, "MS Sans Serif 8,10,12,14,18,24 (VGA res)",0,REG_SZ, (LPBYTE)FONT_SANSSERIF, sizeof(FONT_SANSSERIF)); 576 RegSetValueEx(hkey, "MS Serif 8,10,12,14,18,24 (VGA res)",0,REG_SZ, (LPBYTE)FONT_SERIF, sizeof(FONT_SERIF)); 577 RegCloseKey(hkey); 578 579 if(RegCreateKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Fonts",&hkey)!=ERROR_SUCCESS) { 580 goto initreg_error; 581 } 582 RegSetValueEx(hkey, "Courier 10,12,15 (VGA res)",0,REG_SZ, (LPBYTE)FONT_COURIER, sizeof(FONT_COURIER)); 583 RegSetValueEx(hkey, "MS Sans Serif 8,10,12,14,18,24 (VGA res)",0,REG_SZ, (LPBYTE)FONT_SANSSERIF, sizeof(FONT_SANSSERIF)); 584 RegSetValueEx(hkey, "MS Serif 8,10,12,14,18,24 (VGA res)",0,REG_SZ, (LPBYTE)FONT_SERIF, sizeof(FONT_SERIF)); 585 RegCloseKey(hkey); 560 586 return TRUE; 561 587 … … 680 706 RegSetValueEx(hkey,"Templates",0,REG_SZ, (LPBYTE)dirname, strlen(dirname)+1); 681 707 RegCloseKey(hkey); 708 682 709 return TRUE; 683 710 }
Note:
See TracChangeset
for help on using the changeset viewer.