/*********************************************************************** * gethostbyname (WINSOCK.52) */ SEGPTR WINAPI gethostbyname16(const char *name) { struct WS_hostent *he; if (!(he = WS_gethostbyname( name ))) return 0; return ws_hostent_32_to_16( he ); }
static LPARAM async_gethostbyname( struct async_query_header *query ) { struct async_query_gethostbyname *aq = CONTAINING_RECORD( query, struct async_query_gethostbyname, query ); struct WS_hostent *he = WS_gethostbyname( aq->host_name ); return copy_he( query->sbuf, query->sbuflen, he ); }