How to write reg_binary to registry?

  • Thread starter Thread starter Allen Lee
  • Start date Start date
A

Allen Lee

The Problem was that when I wanted to use C# to write a
REG_BINARY data to registry, it came to me that the
method SetValue() of class RegistryKey cannot let me
specify the type. What must I do if I want to write a
REG_BINARY data to registry?
Thank you very much!
 
Hello

By passing a byte array (a variable with type byte[]) to SetValue you can
write a REG_BINARY

Best regards

Sherif
 
Back
Top