L
Leo
Hey, guys
Please see the code below:
/////************************************************
RegistryKey rkHive = null;
RegistryKey rk = null;
string target = "127.0.0.1";
rkHive = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine,
this.target);
try
{
rk = rkHive.OpenSubKey(oro.key.Value);
//rkHive = {HKEY_LOCAL_MACHINE}
//oro.key.Value="\\SOFTWARE\\Classes\\.wax"
//And its data type is string.
}
//after the operation
//rk = null;
//It is abnormal as there is the right key in the right position
catch (System.Exception e)
{
Log(e);
}
//////*****************************************************
We have some subkey below "HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\.wax"
But after the operation the rk still equal to null and there isn't any
exception.
Has someone met the same situation?
Please see the code below:
/////************************************************
RegistryKey rkHive = null;
RegistryKey rk = null;
string target = "127.0.0.1";
rkHive = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine,
this.target);
try
{
rk = rkHive.OpenSubKey(oro.key.Value);
//rkHive = {HKEY_LOCAL_MACHINE}
//oro.key.Value="\\SOFTWARE\\Classes\\.wax"
//And its data type is string.
}
//after the operation
//rk = null;
//It is abnormal as there is the right key in the right position
catch (System.Exception e)
{
Log(e);
}
//////*****************************************************
We have some subkey below "HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\.wax"
But after the operation the rk still equal to null and there isn't any
exception.
Has someone met the same situation?