регистрации в реестре чего-нибудь (не получилось)

    куда пишем в реестр - константы:
  • HKCR — HKEY_CLASSES_ROOT;
  • HKCU — HKEY_CURRENT_USER;
  • HKLM — HKEY_LOCAL_MACHINE;
  • HKU — HKEY_USERS;

HKR — относительный ключ, используется классом installer; обычно применяется для дисков устройства.



flags
This optional hexadecimal value, expressed as an ORed bitmask of system-defined low word and high word flag values, defines the data type for a value entry and/or controls the add-registry operation.

Bitmask values for each of these flags are as follows:

0x00000001 (FLG_ADDREG_BINVALUETYPE)
The given value is "raw" data. (This value is identical to the FLG_ADDREG_TYPE_BINARY.)

0x00000002 (FLG_ADDREG_NOCLOBBER)
Prevent a given value from replacing the value of an existing value entry.

0x00000004 (FLG_ADDREG_DELVAL)
Delete the given subkey from the registry, or delete the specified value-entry-name from the specified registry subkey.

0x00000008 (FLG_ADDREG_APPEND)
Append a given value to that of an existing named value entry. This flag is valid only if FLG_ADDREG_TYPE_MULTI_SZ is also set. The specified string value is not appended if it already exists.

0x00000010 (FLG_ADDREG_KEYONLY)
Create the given subkey, but ignore any supplied value-entry-name and/or value.

0x00000020 (FLG_ADDREG_OVERWRITEONLY)
Reset to the supplied value only if the specified value-entry-name already exists in the given subkey.

0x00001000 (FLG_ADDREG_64BITKEY)
(Windows XP and later versions of Windows.) Make the specified change in the 64-bit registry. If not specified, the change is made to the native registry.

0x00002000 (FLG_ADDREG_KEYONLY_COMMON)
(Windows XP and later versions of Windows.) This is the same as FLG_ADDREG_KEYONLY but also works in a del-registry-section of an INF DelReg directive.

0x00004000 (FLG_ADDREG_32BITKEY)
(Windows XP and later versions of Windows.) Make the specified change in the 32-bit registry. If not specified, the change is made to the native registry.

0x00000000 (FLG_ADDREG_TYPE_SZ)
The given value entry and/or value is of type REG_SZ.

Note This value is the default type for a specified value entry, so the flags value can be omitted from any reg-root= line in an add-registry-section that operates on a value entry of this type.

0x00010000 (FLG_ADDREG_TYPE_MULTI_SZ)
The given value entry and/or value is of the registry type REG_MULTI_SZ. The value field that follows can be a list of strings separated by commas. This specification does not require any NULL terminator for a given string value.

0x00020000 (FLG_ADDREG_TYPE_EXPAND_SZ)
The given value-entry-name and/or value is of the registry type REG_EXPAND_SZ.

0x00010001 (FLG_ADDREG_TYPE_DWORD) (FLG_ADDREG_TYPE_DWORD)
The given value-entry-name and/or value is of the registry type REG_DWORD.

0x00020001 (FLG_ADDREG_TYPE_NONE)
The given value-entry-name and/or value is of the registry type REG_NONE.