using Microsoft . Win32;
RegistryKey vRegistryKey = Registry . CurrentUser . OpenSubKey(
@".DEFAULT" , true );
byte [] vBuffer = Encoding . UTF8 . GetBytes( "Zswang );
vRegistryKey . SetValue( "Binary" , vBuffer, RegistryValueKind . Binary);
vBuffer = ( byte [])vRegistryKey . GetValue( "Binary" );
MessageBox . Show( Encoding . UTF8 . GetString(vBuffer));