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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top