/ @param [in] error error no. from the getLastError(). @retval error message corresponding to error no. */
| 122 | @retval error message corresponding to error no. |
| 123 | */ |
| 124 | static |
| 125 | char* |
| 126 | win32_error_message( |
| 127 | int error) |
| 128 | { |
| 129 | static char err_msg[1024] = {'\0'}; |
| 130 | FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, |
| 131 | NULL, error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), |
| 132 | (LPTSTR)err_msg, sizeof(err_msg), NULL ); |
| 133 | |
| 134 | return (err_msg); |
| 135 | } |
| 136 | #endif /* __WIN__ */ |
| 137 | |
| 138 | /***********************************************//* |