NetworkIsolationDiagnoseConnectFailure function (networkisolation.h)

Determines whether the calling application has the required AppContainer capabilities to make a network connection to a target server. Depending on the resolution of the server name, the function checks for internetClient, internetClientServer, and privateNetworkClientServer. For more info, see App capability declarations.

Syntax

DWORD NetworkIsolationDiagnoseConnectFailure(
  LPCWSTR wszServerName
);

Parameters

wszServerName

Type: __in LPCWSTR

The name of the target server.

Return value

Type: DWORD

TRUE if the calling application has the required capabilities for the target server; otherwise, FALSE.

Requirements

Requirement Value
Header networkisolation.h