writing value to Registry

Hi all,
I have a problem with writing a value to a registry.
I want to change the pocket pc registry at run time by my application.
On of the keys I want to change is : BDDevClass = 06 05 80
the key value type is REG_BINARY.
When I write to this key by the SetValue methode : SetValue("06 06 07") I get in the key the value "06 06 07" (I mean with the "" marks. This is the problem, I want to set the value without the "".
How can I do that.
Please help me...

Best regards...

 


Answer this question

writing value to Registry

  • Ravindra Rajaram

    How do you write to the registry in real time on pocket pcs I've been having a lot of trouble trying to figure that out today. Do you have some sample code

    Wasim wrote:
    Hi all,
    I have a problem with writing a value to a registry.
    I want to change the pocket pc registry at run time by my application.
    On of the keys I want to change is : BDDevClass = 06 05 80
    the key value type is REG_BINARY.
    When I write to this key by the SetValue methode : SetValue("06 06 07") I get in the key the value "06 06 07" (I mean with the "" marks. This is the problem, I want to set the value without the "".
    How can I do that.
    Please help me...

    Best regards...


  • Tech Applyyourself

    But what if I want to write for example 0a de af to the register


  • wim_

    REG_BINARY values are written by supplying a byte array. Try SetValue(new byte[] {6, 6, 7})


  • amitvjti

    SetValue(new byte[] {0xa, 0xde, 0xaf})


  • writing value to Registry