Leaked source code of windows server 2003
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.3 KiB

  1. #include "convlog.h"
  2. // Process a line with no Format Conversion.
  3. VOID
  4. ProcessNoConvertLine(
  5. IN LPINLOGLINE lpLogLine,
  6. IN LPCSTR szInFileName,
  7. IN LPTSTR pszBuf,
  8. IN LPOUTFILESTATUS lpOutFile,
  9. BOOL *lpbNCFileOpen
  10. )
  11. {
  12. if (!(*lpbNCFileOpen)) {
  13. lpOutFile->fpOutFile = StartNewOutputDumpLog (
  14. lpOutFile,
  15. szInFileName,
  16. NoFormatConversion ? ".dns" : ".dmp"
  17. );
  18. *lpbNCFileOpen=TRUE;
  19. }
  20. //
  21. // Print all fields of line
  22. //
  23. if ( NoFormatConversion ) {
  24. fprintf(lpOutFile->fpOutFile,"%s",pszBuf);
  25. nWebLineCount++;
  26. } else {
  27. fprintf(lpOutFile->fpOutFile,"%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s,\n",
  28. lpLogLine->szClientIP, lpLogLine->szUserName, lpLogLine->szDate, lpLogLine->szTime,
  29. lpLogLine->szService, lpLogLine->szServerName, lpLogLine->szServerIP, lpLogLine->szProcTime,
  30. lpLogLine->szBytesRec, lpLogLine->szBytesSent, lpLogLine->szServiceStatus, lpLogLine->szWin32Status,
  31. lpLogLine->szOperation, lpLogLine->szTargetURL, lpLogLine->szParameters);
  32. }
  33. }