| INT WINAPI InetGetLocalName(
|
| |
LPTSTR lpszHostName, |
|
| |
INT cchHostName |
|
| );
|
The InetGetLocalName function returns the hostname
assigned to the local system.
Parameters
- lpszHostName
- A pointer to the buffer that will contain the hostname.
- cchHostName
- The maximum number of characters that can be copied into the
address buffer.
Return Value
If the function succeeds, the return value is the length of the
hostname. If the function fails, the return value is INET_ERROR. To
get extended error information, call InetGetLastError.
Requirements
Client: Requires Windows 7, Windows Vista or Windows
XP.
Server: Requires Windows Server 2008 or Windows Server
2003.
Header: Include cswsock7.h.
Library: Use cswskav7.lib.
Unicode: Implemented as Unicode and ANSI versions.
See Also
InetGetHostAddress,
InetGetHostName, InetGetLocalAddress, InetGetPeerAddress
|