![]() |
ReportStaticError() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Protected Function |
Declared in: SpoofBase.h |
Declaration
static void ReportStaticError(
LPCSTR lpClass,
LPCSTR lpMethod);
DescriptionReport an unknown error (use GetLastError)
Function Body
if (!m_Log)
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
m_Log->ReportCatchError(lpClass,lpMethod,(LPSTR)lpMsgBuf);
//Free the resources
LocalFree(lpMsgBuf);
#else
m_Log->ReportCatchError(lpClass,lpMethod,"Unknown error!");
#endif
}
catch (...)
{
}
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001. |