Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Description
Reserves a range of ports.
Syntax
HRESULT
WINAPI
HcnReserveGuestNetworkServicePortRange(
_In_ HCN_GUESTNETWORKSERVICE GuestNetworkService,
_In_ USHORT PortCount,
_Out_ HCN_PORT_RANGE_RESERVATION* PortRangeReservation,
_Out_ HANDLE* PortReservationHandle
);
Parameters
GuestNetworkService
The HCN_GUESTNETWORKSERVICE for the reservation.
PortCount
The number of ports to reserve.
PortRangeReservation
The list of HCN_PORT_RANGE_RESERVATION for the reservation.
PortReservationHandle
Receives a handle. It is the responsibility of the caller to release the handle using HcnReleaseGuestNetworkServicePortReservationHandle once it is no longer in use.
Return Values
The function returns HRESULT.
Requirements
| Parameter | Description |
|---|---|
| Minimum supported client | Windows 10, version 1809 |
| Minimum supported server | Windows Server 2019 |
| Target Platform | Windows |
| Header | ComputeNetwork.h |
| Library | ComputeNetwork.lib |
| Dll | ComputeNetwork.dll |