![]() |
ReportError() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Protected Function |
Declared in: SpoofBase.h |
void ReportError( LPCSTR lpMethod) const;
Report an unknown error (use GetLastError)
if (!GetLog()) return; try { #ifdef WIN32 //Unknown error LPVOID lpMsgBuf; FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, ::GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language (LPTSTR) &lpMsgBuf, 0, NULL); //Report the error //Get the log GetLog()->ReportCatchError(m_lpClassName,lpMethod,(LPSTR)lpMsgBuf); //Free the resources LocalFree(lpMsgBuf); #else GetLog()->ReportCatchError(m_lpClassName,lpMethod,"Unknown error!"); #endif } catch (...) { }
![]() |
Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001. |