InetEnumNetworkAddresses
INT InetEnumNetworkAddresses(
LPDWORD lpdwAddressList, // pointer to an array to which network addresses are to be written
INT nMaxAddresses // maximum number of addresses to be returned
);

The InetEnumNetworkAddresses function returns the list of network addresses that are configured for the local host.

Parameters

lpdwAddressList
Pointer to an array of 32-bit integers to which network addresses are to be written.
nMaxAddresses
Maximum number of addresses to be returned.

Return Value

If the function succeeds, the return value is the number of network addresses that are configured for the local host. If the function fails, the return value is INET_ERROR. To get extended error information, call InetGetLastError.

Requirements

Client: Requires Windows Vista, Windows XP or Windows 2000 Professional.
Server: Requires Windows Server 2008, Windows Server 2003 or Windows 2000 Server.
Header: Include cswsock6.h.
Library: Use cswskav6.lib.

See Also

InetFormatAddress


Copyright © 2008 Catalyst Development Corporation. All rights reserved.