hkey_local_machin根键中存放的是用来控制系统和软件的设置。由于这些设置是针对那些使用windows系统的用户而设置的,所以它与具体用户无关,它是一个公共配置信息,大家只须作一个了解就可以了。
hkey_local_machine包括了如下五个子键,如图:
该子键下面存放一些有关超文本终端、数学协处理器和串口等信息。hardware子键下面包括两个子键devicemap(用于存放设备映象)、description(存放有关系统信息)。devicemap子键的层次结构如下:
hkey_local_machine\hardware
hkey_local_machine\hardware\devicemap
hkey_local_machine\hardware\devicemap\serialcomm
在hkey_local_machine\hardware\devicemap\serialcomm分支下面包括如下设置内容:
*com1=com1:指定com1端口。
*com2=com2:指定com2端口。
description子键的层次结构如下:
hkey_local_machine\hardware\description
hkey_local_machine\hardware\description\system
hkey_local_machine\hardware\description\system\floatingpointprocessor
hkey_local_machine\hardware\description\system\floatingpointprocessor\0
*sam子键:系统自动将其保护起来。
*security子键:包含了安全设置的信息,同样也让系统保护起来。
*software子键:包含了系统软件、当前安装的应用软件及用户的有关信息。
*system子键:
该子键存放的是启动时所使用的信息和修复系统时所需的信息,其中包括各个驱动程序的描述信息和配置信息等。system子键下面只有一个currentcontrolset子键,系统在这个子键下保存了当前的驱动程序控制集的信息。这里介绍currentcontrolset子键下面的control和services子键。
这个子键中保存的是由控制面板中各个图标程序设置的信息。由于控制面板中的各个图标程序可能会把信息写在不同的子键下,所以用户最好不要通过注册表编辑器来修改这些信息,否则容易
引起系统死机。
(1) fontassoc子键
该子键存放的是有关字体设置信息(如缺省字体、替代字体以及字符集等)。在hkey_local_machine\system\currentcontrolset\cont \ fontassoc分支下还有两个子键associated defaultfonts、associated charset。
associated defaultfonts子键
在hkey_local_machine\system\currentcontrolset\control\ fontassoc\associated defaultfonts分支下有如下设置信息:
*assocsystemfont=simsun.ttf:定义系统字体。simsun.ttf为truetype宋体字库文件。
*fontpackagedontcare=宋体:以下行设置了已安装的套装字体(fontpackage),在win3.x中,这些设置在wifeman.ini文件的[fontpackages]小节中列出。
*fontpackageroman=宋体
*fontpackageswiss=宋体
*fontpackagemodern=宋体
*fontpackagescript=宋体
*fontpackagedecorative=宋体 associated charset子键 在hkey_local_machine\system\currentcontrolset\control\ fontassoc\associated charset分支下是关于一些系统字体的设置。
(2) nls子键
该子键位于hkey_local_machine\system\currentcontrolset\control\ nls分支中,它是用来设置windows的语言特性,如代码页、eudc内码范围、语言分类等。
(3) sessionmanager子键
该子键用于管理系统的会话,它包括三个主键和八个子键。
knowndlls子键
该子键下包含了windows中32位dll文件以及标识,如图:
checkbadapps子键
该子键用于检查有问题的16位应用程序,这些应用程序在windows中运行会出现莫名其妙的问题,甚至引起系统的崩溃。该子键下面有许多应用程序的可执行文件的子键,如ppower.exe是
ms dos 6.x一个用于便携机电源管理的程序,它在注册表中的分支是 hkey_local_machine
\system\ currentcontrolset\control\sessionmanager\checkbadapps\ power.exe。
通常这个分支下有几个子键!
checkbadapps400子键
该子键用于检查有问题的32位应用程序,它在注册表的分支是hkey_local_machine\system\currentcontrolset\control\ sessionmanager\checkbadapps400。
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器