I.1. Windows Registry Data Types

In the same way that database table fields, variables, and API parameters require data of specific types, the kind of data the Registry can store is also defined in terms of data types. The data types in the table that follows are supported under Windows 2000, Windows XP, and Windows Vista.

Data TypeDescription
REG_BINARYSpecifies raw binary data. Most hardware information is stored with this data type, which can be displayed and entered in binary or hexadecimal format.
REG_DWORDA 32-bit (4-byte) number, which is used to store Boolean or other numeric values and information about many device drivers and services. REG_DWORD values can be displayed and edited as binary, hexadecimal, or decimal format.
REG_DWORD_LITTLE_ENDIANSame as REG_DWORD, a 32-bit number, but it is used to store values in a specific way. In REG_DWORD_LITTLE_ENDIAN, the most significant byte contains the high-order byte (leftmost). This is the most common format for storing numbers in Windows.
REG_DWORD_BIG_ENDIANThe only difference between this data type and REG_DWORD_LITTLE_ENDIAN is that this data type stores the most-significant byte as the low-order byte (rightmost).
REG_EXPAND_SZA variable-length text string used to store variables that are resolved when an application or service uses the data. For example, some values include the variable System root. When a service or application references the data in this data type, it is replaced by the name of the directory containing the ...

Get Access™ 2007 VBA Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.