NetworkIsolationSetAppContainerConfig function (netfw.h)

The NetworkIsolationSetAppContainerConfig function is used to set the configuration of one or more app containers.

Syntax

DWORD NetworkIsolationSetAppContainerConfig(
  [in] DWORD               dwNumPublicAppCs,
  [in] PSID_AND_ATTRIBUTES appContainerSids
);

Parameters

[in] dwNumPublicAppCs

Type: DWORD

The number of app containers in the appContainerSids member.

[in] appContainerSids

Type: PSID_AND_ATTRIBUTES

The security identifiers (SIDs) of app containers that are allowed to send loopback traffic. Used for debugging purposes.

Return value

Type: DWORD

Returns ERROR_SUCCESS if successful, or an error value otherwise.

Remarks

Note that it is the calling program's responsibility to first call the NetworkIsolationGetAppContainerConfig function in order to retrieve and preserve the app container SIDs already configured to send loopback traffic.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header netfw.h (include Netfw.h)
DLL Firewallapi.dll