/*********************************************************************** * getprotobyname (WINSOCK.53) */ SEGPTR WINAPI getprotobyname16(const char *name) { struct WS_protoent *pe; if (!(pe = WS_getprotobyname( name ))) return 0; return ws_protoent_32_to_16( pe ); }
static LPARAM async_getprotobyname( struct async_query_header *query ) { struct async_query_getprotobyname *aq = CONTAINING_RECORD( query, struct async_query_getprotobyname, query ); struct WS_protoent *pe = WS_getprotobyname( aq->proto_name ); return copy_pe( query->sbuf, query->sbuflen, pe ); }