Windows Sockets 1.1应用实例(135)

2010-12-30 20:58:11 · 作者: · 浏览: 62979
* Copies string corresponding to the error code provided     

 * into buf, maximum length len. Returns length actually      

 * copied to buffer, or zero if error code is unknown.        

 * String resources should be present for each error code     

 * using the value of the code as the string ID (except for   

 * error = 0, which is mapped to WSABASEERR to keep it with   

 * the others). The DLL is free to use any string IDs that    

 * are less than WSABASEERR for its own use.

 *

 */

int PASCAL FAR WSAsperror (HANDLE hInst,    /* Instance Handle */

                        int errorcode,   /* WSA Error Number */

           &nbs