刚才又找到一些资料,这里是这样解释的,比较合理:
REG_SZ
REG_SZ代表一个简单的文本字符串,它是注册表中最常见的一种数据类型,在字符串编辑器对话框中可以输入许多类型的信息,如名称、路径、标题或说明文字等。REG_SZ也可以是一个数字,例如可用来表示RGB颜色色码,或者版本号等其他类型的信息。
REG_EXPAND_SZ
代表一个可扩展的字符串。其编辑器和标准REG_SZ字符串编辑类似,只是在变量用法上有所差异。在REG_EXPAND_SZ编辑器中输入变量时,系统会将它当作变量看待。激活此变量时,会显示变量的具体值。
例如在对话框中的“%SYSTEMROOT%”是一个变量名,激活它之后,会返回到Windows XP所在的目录。
http://www.pcdog.com/book/html/20041025/25102004325_1.htm
Just now I found some more materials, and here's the explanation which is relatively reasonable:
REG_SZ
REG_SZ represents a simple text string. It is the most common data type in the registry. In the string editor dialog box, you can enter many types of information, such as names, paths, titles, or description texts, etc. REG_SZ can also be a number, for example, it can be used to represent RGB color codes or other types of information such as version numbers.
REG_EXPAND_SZ
Represents an expandable string. Its editor is similar to the standard REG_SZ string editor, but there are differences in variable usage. When entering variables in the REG_EXPAND_SZ editor, the system will treat it as a variable. When this variable is activated, the specific value of the variable will be displayed.
For example, "%SYSTEMROOT%" in the dialog box is a variable name. After activating it, it will return to the directory where Windows XP is located.
http://www.pcdog.com/book/html/20041025/25102004325_1.htm