![]() |
ReportStaticError() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Protected Function |
Declared in: SpoofBase.h |
static void ReportStaticError( LPCSTR lpClass, LPCSTR lpMethod);
Report an unknown error (use GetLastError)
if (!m_Log) return; try { //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 m_Log->ReportCatchError(lpClass,lpMethod,(LPSTR)lpMsgBuf); //Free the resources LocalFree(lpMsgBuf); } catch (...) { }
![]() |
Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 24 Apr 2001. |