Ignore:
Timestamp:
Apr 22, 2001, 12:55:25 PM (24 years ago)
Author:
sandervl
Message:

add font keys to registry

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:04 sandervl Exp $ */
     1/* $Id: odininst.cpp,v 1.4 2001-04-22 10:55:25 sandervl Exp $ */
    22/*
    33 * Odin WarpIn installation app
     
    558558      WritePrivateProfileStringA(szMci, szCDAudio, szMciCDA, shellpath);
    559559   }
     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);
    560586   return TRUE;
    561587
     
    680706    RegSetValueEx(hkey,"Templates",0,REG_SZ, (LPBYTE)dirname, strlen(dirname)+1);
    681707    RegCloseKey(hkey);
     708
    682709    return TRUE;
    683710}
Note: See TracChangeset for help on using the changeset viewer.