85 msgLen = msgLen + eMsgLen + 40;
89 msgLen *
sizeof(
TCHAR));
94 _T(
"%s : %s\tErrNum = %lu ExitCode = %lu\r\n"),
110 msgLen *
sizeof(
TCHAR));
169 WCHAR wcBom = 0xFEFF;
static VOID LogToFile(LPCWSTR lpMsg, DWORD errNum, DWORD exitCode, UINT flags)
static LPWSTR lpEventSource
static BOOL OpenLogFile()
VOID LogEvent(LPCWSTR lpMsg, DWORD errNum, DWORD exitCode, UINT flags)
static VOID LogToEventLog(LPCWSTR lpMsg, DWORD errNum, DWORD exitCode, UINT flags)
BOOL WINAPI CloseEventLog(IN HANDLE hEventLog)
#define INVALID_HANDLE_VALUE
#define HeapFree(x, y, z)
#define FILE_ATTRIBUTE_NORMAL
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
VOID WINAPI ExitProcess(IN UINT uExitCode)
GLenum GLsizei GLuint GLint * bytesWritten
HLOCAL NTAPI LocalFree(HLOCAL hMem)
static LPTSTR lpLogFileName
DWORD WINAPI GetLastError(void)
#define FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
#define RegisterEventSource
#define EVENTLOG_ERROR_TYPE