next up previous contents
Next: data Up: Properties Previous: name   Contents

type

Description

Specifies the type of information to be stored as the value's data. The default type if REG_SZ.


Syntax

Regvalue.type


Remarks

The value types are:

Name Value Description
REG_BINARY 3 Binary data in any form.
REG_DWORD 4 A 32-bit number
REG_DWORD_LITTLE_ENDIAN 4 A 32-bit number in little-endian format. This is equivalent to REG_DWORD. In little-endian format, a multi-byte value is stored in memory from the lowest byte (the "little end") to the highest byte. For example, the value 0x12345678 is stored as (0x78 0x56 0x34 0x12) in little-endian format. Windows NT, Windows 95, and Windows 98 are designed to run on little-endian computer architectures. A user may connect to computers that have big-endian architectures, such as some UNIX systems
REG_DWORD_BIG_ENDIAN 5 A 32-bit number in big-endian format. In big-endian format, a multi-byte value is stored in memory from the highest byte (the "big end") to the lowest byte. For example, the value 0x12345678 is stored as (0x12 0x34 0x56 0x78) in big-endian format
REG_EXPAND_SZ 2 A null-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). It will be a Unicode or ANSI string depending on whether you use the Unicode or ANSI functions. To expand the environment variable references, use the ExpandEnvironmentStrings function
REG_LINK 6 A Unicode symbolic link
REG_MULTI_SZ 7 An array of null-terminated strings, terminated by two null characters
REG_NONE 0 No defined value type
REG_RESOURCE_LIST 0 A device-driver resource list
REG_SZ 1 A null-terminated string. It will be a Unicode or ANSI string depending on whether you use the Unicode or ANSI functions. Do not use the REG_SZ type to store hard-coded paths to the system root directory or to the drive containing the system files. Instead, use the REG_EXPAND_SZ type with environment variables such as "%SystemRoot%". This ensures that the path will be up-to-date even if the user remaps the system drive to a different drive letter



next up previous contents
Next: data Up: Properties Previous: name   Contents
Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.