NetworkIsolationGetEnterpriseIdClose function (netfw.h)

This API is used for closing the handle returned by NetworkIsolationGetEnterpriseIdAsync as well as for synchronizing the operation.

Example of NetworkIsolationGetEnterpriseIdClose usage: https://github.com/microsoft/EnterpriseStateClassify

Syntax

DWORD NetworkIsolationGetEnterpriseIdClose(
  [in] HANDLE hOperation,
  [in] BOOL   bWaitForOperation
);

Parameters

[in] hOperation

The handle to release.

[in] bWaitForOperation

Indicates whether to wait for synchronization.

Return value

Returns ERROR_SUCCESS if successful, or an error value otherwise.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header netfw.h
DLL Firewallapi.dll