RegistryHelperWriteRegValue Method
Writes the specified value to the registry.
Namespace: MFiles.VAF.CommonAssembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
public static void WriteRegValue(
UIntPtr hkey,
RegistryHelperRegistryAccessFlags accessFlags,
string keyName,
string valueName,
RegistryValueKind registryValueKind,
byte[] value
)
Parameters
- hkey UIntPtr
- The predefined or opened registry key (e.g. HKEY_LOCAL_MACHINE).
- accessFlags RegistryHelperRegistryAccessFlags
- Options for accessing the registry, see enumRegistryAccessFlags.
- keyName String
- Key name (e.g. SOFTWARE\Microsoft\Windows).
- valueName String
- The name of the value to fetch. If NULL, reads the default value.
- registryValueKind RegistryValueKind
- The type of the value we are writing.
- value Byte
- The actual value as a byte array.