Class CSpoofBase::
ReportStaticError()
Data ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: ReportErrorNext page: ReportStaticError    Show member index
Protected Function Declared in:
SpoofBase.h

'Declaration' icon -- Shortcut to top of page. Declaration

static void ReportStaticError(
    LPCSTR lpClass,
    LPCSTR lpMethod);

'Description' icon -- Shortcut to top of page. Description

Report an unknown error (use GetLastError)

'Function Body' icon -- Shortcut to top of page. Function Body

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 (...)
{
}

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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: 24 Apr 2001.