格式化GetLastError返回的错误信息
摘要:
DWORD dw = GetLastError(); LPVOID lpMsgBuf; FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, dw, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language (LPTSTR) &lpMsgB... 阅读全文
posted @ 2012-10-22 16:15 xermao 阅读(139) 评论(0) 推荐(0) 编辑