Hi, we will discuss about Windows registry again this time, on part-1 I wrote about HKEY or handle key. At this time I will write about the Data Types that supported by Windows registry and what the function and how do to use it.
The Windows Registry stores values of keys as data. Data types define what kind of data can be stored in the Registry.There are five main data types:

  1. REG_BINARY Stores the value as binary data of 0’s and 1’s but displayed in hexadecimal format. Information about most hardware components is stored as binary data.
  2. REG_DWORD Represents the data as a four-byte number and is commonly used for Boolean values—for instance, 0 is disabled and 1 is enabled.The data is displayed as a 32-bit (four-byte) long hexadecimal number.
  3. REG_EXPAND_SZ A variable-length data string. It is replaced by applications or services when they use this data.This value usually contains the file path associated with the application or service.
  4. REG_MULTI_SZ A multiple string used to represent values that contain lists or multiple values; each entry is separated by a NULL character.
  5. REG_SZ A standard fixed-length string, used to represent human-readable text values.

0 comments