MCPcopy Create free account
hub / github.com/M2Team/NanaBox / ComputeSystemRemoveComPort

Method ComputeSystemRemoveComPort

NanaBox/ConfigurationManager.cpp:743–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741}
742
743void 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
759void NanaBox::ComputeSystemUpdateComPort(
760 winrt::com_ptr<NanaBox::ComputeSystem> const& Instance,

Callers

nothing calls this directly

Calls 1

ModifyMethod · 0.80

Tested by

no test coverage detected