InetGetLocalName
INT 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 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

InetGetHostAddress, InetGetHostName, InetGetLocalAddress, InetGetPeerAddress


Copyright © 2008 Catalyst Development Corporation. All rights reserved.