InetFormatAddress
VOID InetFormatAddress(
DWORD dwAddress,  
LPTSTR lpszAddress,  
INT cchAddress  
);

The InetFormatAddress function converts a numeric IP address to a printable string in dot-notation.

Parameters

dwAddress
An unsigned long integer which specifies the numeric IP address that should be converted to a string.
lpszAddress
A pointer to the buffer that will contain the formatted IP address. This buffer should be at least 16 bytes in length.
cchAddress
The maximum number of characters that can be copied into the address buffer.

Return Value

None.

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.
Unicode: Implemented as Unicode and ANSI versions.

See Also

InetGetExternalAddress, InetGetHostAddress, InetGetLocalAddress, InetGetPeerAddress


Copyright © 2008 Catalyst Development Corporation. All rights reserved.