IcmpFormatAddress Function  
 
INT WINAPI IcmpFormatAddress(
  DWORD dwAddress,  
  LPTSTR lpszAddress,  
  INT nMaxLength  
);

The IcmpFormatAddress function converts a numeric IP address to a string.

Parameters

dwAddress
A unsigned 32-bit integer which specifies the IP address to be converted into a string.
lpszAddress
A null-terminated string which will contain the converted IP address in dot-notation. This string should be at least 16 characters in length.
nMaxLength
The maximum number of characters which may be copied in to the string buffer.

Return Value

If the function succeeds, the return value is the length of the string buffer. If the function fails, the return value is zero. To get extended error information, call IcmpGetLastError.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csicmv12.lib
Unicode: Implemented as Unicode and ANSI versions

See Also