October 25, 2009

Registry Data Types

The registry uses the following data types:

REG_SZ The SZ indicates a zero-terminated string This is a variable-length string that can contain Unicode as well as ANSI characters When you enter or edit a REG_SZ value, Registry Editor terminates the value with a 00 byte for you

REG_BINARY The REG_BINARY type contains binary data—0s and 1s

REG_DWORD This data type is a “double word”—that is, a 32-bit numeric value Although it can hold any integer from 0 to 232, the registry often uses it for simple Boolean values (0 or 1) because the registry lacks a Boolean data type

REG_QWORD This data type is a “quadruple word”—a 64-bit numeric value

REG_MULTI_SZ This data type contains a group of zero-terminated strings assigned
to a single value

REG_EXPAND_SZ This data type is a zero-terminated string containing an unexpanded reference to an environment variable, such as %SystemRoot% (For information about environment variables, see “Using Environment Variables” on page
968 ) If you need to create a key containing a variable name, use this data type, not REG_SZ

Internally, the registry also uses REG_LINK, REG_FULL_RESOURCE_DESCRIPTOR, REG_RESOURCE_LIST, REG_RESOURCE_REQUIREMENTS_LIST, and REG_NONE data types. Although you might occasionally see references in technical documentation to these data types, they’re not visible or accessible in Registry Editor

0 komentarze:

Post a Comment