OpenClusterNetInterface function (clusapi.h)

Opens a handle to a network interface. The PCLUSAPI_OPEN_CLUSTER_NET_INTERFACE type defines a pointer to this function.

Syntax

HNETINTERFACE OpenClusterNetInterface(
  [in] HCLUSTER hCluster,
  [in] LPCWSTR  lpszInterfaceName
);

Parameters

[in] hCluster

Handle to a cluster.

[in] lpszInterfaceName

Pointer to a null-terminated Unicode string containing the name of the network interface to open.

Return value

If the operation was successful, OpenClusterNetInterface returns an open handle to the specified network interface.

Return code Description
NULL
The operation was not successful. For more information about the error, call the function GetLastError.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header clusapi.h
Library ClusAPI.lib
DLL ClusAPI.dll

See also

CloseClusterNetInterface

Network Interface Management Functions

OpenClusterNetInterfaceEx