| 741 | } |
| 742 | |
| 743 | void NanaBox::ComputeSystemRemoveComPort( |
| 744 | winrt::com_ptr<NanaBox::ComputeSystem> const& Instance, |
| 745 | std::uint32_t const& PortID, |
| 746 | std::string const& NamedPipe) |
| 747 | { |
| 748 | nlohmann::json Result; |
| 749 | |
| 750 | Result["ResourcePath"] = Mile::FormatString( |
| 751 | "VirtualMachine/Devices/ComPorts/%d", |
| 752 | PortID); |
| 753 | Result["RequestType"] = "Remove"; |
| 754 | Result["Settings"] = NanaBox::MakeHcsComPortConfiguration(NamedPipe); |
| 755 | |
| 756 | Instance->Modify(winrt::to_hstring(Result.dump())); |
| 757 | } |
| 758 | |
| 759 | void NanaBox::ComputeSystemUpdateComPort( |
| 760 | winrt::com_ptr<NanaBox::ComputeSystem> const& Instance, |