Get string from error status
| 1570 | |
| 1571 | // Get string from error status |
| 1572 | std::string errno_str2(DWORD status) { |
| 1573 | char buf[512]; |
| 1574 | if (FormatMessage(FORMAT_MESSAGE_MAX_WIDTH_MASK | FORMAT_MESSAGE_FROM_SYSTEM, |
| 1575 | 0, status, 0, buf, sizeof(buf), 0)) |
| 1576 | return std::string(buf); |
| 1577 | return std::string("internal proactor error"); |
| 1578 | } |
| 1579 | |
| 1580 | |
| 1581 | std::string errno_str(const std::string& msg, bool is_wsa) { |
no outgoing calls
no test coverage detected