OpenClusterNetInterface function

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

Syntax


HNETINTERFACE WINAPI OpenClusterNetInterface(
  _In_ HCLUSTER hCluster,
  _In_ LPCWSTR  lpszInterfaceName
);

typedef HNETINTERFACE (WINAPI *PCLUSAPI_OPEN_CLUSTER_NET_INTERFACE)(
    _In_ HCLUSTER hCluster,
    _In_ LPCWSTR  lpszInterfaceName
);

Parameters

hCluster [in]

Handle to a cluster.

lpszInterfaceName [in]

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.

NULL

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

Examples

See Using Object Handles.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Enterprise, Windows Server 2008 Datacenter

Header

ClusAPI.h

Library

ClusAPI.lib

DLL

ClusAPI.dll

See also

Network Interface Management Functions
CloseClusterNetInterface
OpenClusterNetInterfaceEx

 

 

Show: