1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to convert reg values of type hex from reg file to provxml

Discussion in 'C++' started by marklug, Nov 25, 2012.

  1. marklug

    marklug New Member

    Joined:
    Nov 25, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi, all.

    I searched all over the internet, and couldn't find answer to one question:

    How do I translate reg values of type hex to syntax of provisioning xml file?

    More specifically: I have this reg key

    [HKEY_LOCAL_MACHINE\System\GWE]
    "SysColor"=hex:d4,d4,d4,00,4c,4c,4c,00,7f,7f,7f,00,4c,4c,4c,00,00,00,00,00,82,\
    82,82,00,00,00,00,00,fe,fe,fe,00,00,00,00,00,fe,fe,fe,00,00,00,00,00,00,00,\
    00,00,4c,4c,4c,00,00,85,cc,00,cc,cc,cc,00,60,60,60,00,7f,7f,7f,00,60,60,60,\
    00,fe,fe,fe,00,7f,7f,7f,00,00,85,cc,00,00,00,00,00,ff,ff,ff,00,fe,fe,fe,00,\
    00,00,00,00,4c,4c,4c,00,fe,fe,fe,00,00,00,00,00,00,00,00,00


    How do I write this key in xml file (I know it should be of binary data type, but how do I convert the value itself)?
    I alraedy tried this:

    <characteristic type="HKLM\System/GWE">
    <parm name="SysColor" value="1NTUAATExMAAf39/AATExMAAAAAAAAgoKCAAAAAAAA/v7+AAAAAAAA/v7+AAAAAAAAAAAAAATExMAAAIXMAAzMzMAAYGBgAAf39/AAYGBgAA/v7+AAf39/AAAIXMAAAAAAAA////AA/v7+AAAAAAAATExMAA/v7+AAAAAAAAAAAAAA==" datatype="binary"/>
    </characteristic>

    But it didn't work.

    Thank you,
    Mark
     
  2. marklug

    marklug New Member

    Joined:
    Nov 25, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi, namld20997.

    I'm sorry, but I don't understand your answer.
    What is the principle of the translation from reg file syntax to provxml syntax?

    Thank you,
    Mark
     

Share This Page