public static void writeValue ( String keyName , String valueName , String value ) throws RegistryException { try ( Key key = Key . open ( keyName , KEY_WRITE ) ) { checkError ( invoke ( Methods . REG_SET_VALUE_EX . get ( ) , key . id , toByteArray ( valueName ) , toByteArray ( value ) ) ) ; } }
Writes a string value with a given key and value name .