NativeServices.RegistrySetValue
Method | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Module | NativeServices | ||||||||||
Library | Core | ||||||||||
Action | Set a registry value. | ||||||||||
Parameters |
| ||||||||||
Return values |
| ||||||||||
Example | NativeServices.RegistrySetValue(Hive:"HKLM", Subkey:"software\\vendor\\test", Name:"value9", ValueType:"REG_DWORD", Value:"65535"); NativeServices.RegistrySetValue(Hive:"HKLM", Subkey:"software\\1e\\test", Name:"value10", ValueType:"REG_MULTI_SZ", Value:"line1|line2|line3"); | ||||||||||
Platforms |
| ||||||||||
Notes | A REG_BINARY The '|' character is used as a newline when setting REG_MULTI_SZ keys. For setting a registry value for every user under HKU, use NativeServices.RegistrySetUserValues. |