std::stringGetErrorInfo(intwsaErrCode) { std::string ret;// 创建一个空字符串,用于存储错误信息 LPVOID lpMsgBuf=NULL;// 指针,用于接收格式化后的消息 // 调用 FormatMessage 获取对应错误码的信息 FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_ALLOCATE_BUFFER,// 从系统获取消息并分配缓冲区 NU...