The IcmpGetHostAddress copies the IP address of the current
host into the specified buffer as a string using
dot-notation.
Parameters
hClient
A handle to the client session.
lpszHostAddress
The buffer that will contain the IP address of the
current remote host in dot-notation. This buffer should be at least
16 characters in length.
nMaxLength
The maximum number of characters that may be copied into the
buffer, including the terminating null character.
Return Value
If the function succeeds, the return value is the length of the
address string. If the return value is zero, this indicates that no
remote host has been specified. If the function fails, the return
value is ICMP_ERROR. 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