IMbnInterfaceManager::GetInterfaces method (mbnapi.h)

Important

Starting in Windows 10, version 1803, the Win32 APIs described in this section are replaced by the Windows Runtime APIs in the Windows.Networking.Connectivity namespace.

Gets a list of all available IMbnInterface objects.

Syntax

HRESULT GetInterfaces(
  [out, retval] SAFEARRAY **mbnInterfaces
);

Parameters

[out, retval] mbnInterfaces

An array of IMbnInterface interfaces that are associated with the device. If this method returns anything other than S_OK, then this is NULL. Otherwise the calling application must free the allocated memory by calling SafeArrayDestroy.

Return value

This method can return one of these values.

Return code Description
S_OK
The method completed successfully.
E_POINTER
The mbnInterfaces parameter is NULL.
E_OUTOFMEMORY
Could not allocate the required memory.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header mbnapi.h

See also

IMbnInterfaceManager