I have code that reads the Windows Event Log.  It uses OpenEventLog, ReadEventLog and gets the event source and event ID.  Then it looks up the source under the 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
key, loads the appropriate DLL(s) according to what is listed in EventMessageFile and finally uses F...
            
           
          
            
            I need to use FormatMessage() for a project, but I don't like its scary interface. Does anyone know of a facade that tidies it up while still allowing for the replacement parameters?
I just read the second part of the FastFormat introduction, and am considering writing an extension for FormatMessage() (or asking the FastFormat project t...
            
           
          
            
            I'm running this to test FormatMessage:
LPVOID lpMsgBuf;
errCode=12163;
FormatMessage(
    FORMAT_MESSAGE_ALLOCATE_BUFFER | 
    FORMAT_MESSAGE_FROM_SYSTEM ,
    0,
    errCode,
    0,
    (LPTSTR) &lpMsgBuf,
    0, NULL );
However, when it returns lpMsgBuf contains NULL...  I was expecting something like ERROR_INTERNET_DISCONNECTED....
            
           
          
            
            In the System event log is an event with the following details:
Source: Kernel-General
Event ID: 1
Details: The system time has changed to 2010-07-17T02:58:20.285000000Z from 2010-07-17T02:58:20.285868600Z.
The EVENTLOGRECORD also has a 1 for the EventID field, so it matches what we see in the Event Log viewer.
So far so go...