編集

HcnEnumerateGuestNetworkPortReservations

Description

Enumerates the guest network port reservations.

Syntax

HRESULT
WINAPI
HcnEnumerateGuestNetworkPortReservations(
    _Out_ ULONG* ReturnCount,
    _Out_writes_bytes_all_(*ReturnCount) HCN_PORT_RANGE_ENTRY** PortEntries
    );

Parameters

ReturnCount

Recieves the count of reserved port entries.

PortEntries

Recieves the list of port entries.

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