$key->SetValueEx(name, res, type, value)
Sets a value specified by name in the current key (or creates the value
if it doesn't already exist).
- res
 A reserved argument for future use (use a 0 as a placeholder).
- type
 The data type constant (listed above) describing the value.
- value
 The value of the key.