Function SocketGetHostName() Professional

Retrieves the default host name for the local computer.

Syntax
SocketGetHostName( [@<nError>] ) --> cHostName
Parameters
<nError>
If this parameter is passed by reference to the function, it gets assigned a numeric error code when the function fails. #define constants beginning with WSAE are available in the file SOCKET.CH to identify an error condition.
Return

The function returns the default name of the local computer as character string, or a null string ("") when an error occurs.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.