Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.2 KiB

#include "convlog.h"
// Process a line with no Format Conversion.
VOID
ProcessNoConvertLine(
IN LPINLOGLINE lpLogLine,
IN LPCSTR szInFileName,
IN LPTSTR pszBuf,
IN LPOUTFILESTATUS lpOutFile,
BOOL *lpbNCFileOpen
)
{
if (!(*lpbNCFileOpen)) {
lpOutFile->fpOutFile = StartNewOutputDumpLog (
lpOutFile,
szInFileName,
NoFormatConversion ? ".dns" : ".dmp"
);
*lpbNCFileOpen=TRUE;
}
//
// Print all fields of line
//
if ( NoFormatConversion ) {
fprintf(lpOutFile->fpOutFile,"%s",pszBuf);
nWebLineCount++;
} else {
fprintf(lpOutFile->fpOutFile,"%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s,\n",
lpLogLine->szClientIP, lpLogLine->szUserName, lpLogLine->szDate, lpLogLine->szTime,
lpLogLine->szService, lpLogLine->szServerName, lpLogLine->szServerIP, lpLogLine->szProcTime,
lpLogLine->szBytesRec, lpLogLine->szBytesSent, lpLogLine->szServiceStatus, lpLogLine->szWin32Status,
lpLogLine->szOperation, lpLogLine->szTargetURL, lpLogLine->szParameters);
}
}