S
Srini
Hi,
Can anyone please tell me how to retrieve meaningful value from
registry value in REG_Binary type?
I tried to convert REG_Binary value to string using the following
code.
RegistryKey objKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\
\MICROSOFT\\WZCSVC\\PARAMETERS\\INTERFACES\Cheetag");
byte[] ans = (byte[])objKey.GetValue("ActiveSettings");
string sString = System.Text.Encoding.ASCII.GetString(ans);
string[] sArray = sString.Split('\0');
sString = "";
foreach (string s in sArray)
{
sString += s;
}
MessageBox.Show(sString);
sString shows some characters, which could not be understood.
How to convert the REG_BINARY value to a meaningful text? Please let
me know.
Thanks in advance
Srinivasan
Can anyone please tell me how to retrieve meaningful value from
registry value in REG_Binary type?
I tried to convert REG_Binary value to string using the following
code.
RegistryKey objKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\
\MICROSOFT\\WZCSVC\\PARAMETERS\\INTERFACES\Cheetag");
byte[] ans = (byte[])objKey.GetValue("ActiveSettings");
string sString = System.Text.Encoding.ASCII.GetString(ans);
string[] sArray = sString.Split('\0');
sString = "";
foreach (string s in sArray)
{
sString += s;
}
MessageBox.Show(sString);
sString shows some characters, which could not be understood.
How to convert the REG_BINARY value to a meaningful text? Please let
me know.
Thanks in advance
Srinivasan