title: set registry key hex7
body: <p>i ve been searching for a function to set a registry key with c#.</p>
  
  <p>Obvously there is the method Registry.SetValue(KEY, valueName, value, registryValueKind)</p>
  
  <p>[... whereby valueName is the name of the edited value, KEY is the main key name and registryValueKind is the type of change to be made]</p>
  
  <p>If you have a closer look at registryValueKind-Enum there are 8 types: </p>
  
  <ul>
  <li>DWord, String, ExpandString, Binary, MultiString, QWord, Unknown and
  None.</li>
  </ul>
  
  <p>In a <a href="https://msdn.microsoft.com/en-us/library/dn789219(v=vs.85).aspx" rel="nofollow">Msdn-Article</a>  the different data-types are described:</p>
  
  <ul>
  <li>REG_SZ, REG_MULTI_SZ, REG_DWORD, REG_QWORD, REG_BINARY, REG_EXPAND_SZ, REG_HEX.</li>
  </ul>
  
  <p>So i wonder how to store a hex(7)-value [therefore a REG_HEX-value] with the help of Registry.SetValue().</p>
  
  <p>Further i wonder how to save a value like hex(7):56,00,45,00,4e,00,30,00,00,00,4c,00,4f,00,4f,00,50,00,42,\
    00,41,00,43,00,4b,00,00,00,00,00 which is, in addition to being of type hex(7) seperated by a "\".</p>
  
  <p>Thanks in adavance!</p>