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.

105 lines
4.3 KiB

  1. #include <windows.h>
  2. #include <ntverp.h>
  3. #define VER_FILETYPE VFT_APP
  4. #define VER_FILESUBTYPE VFT2_UNKNOWN
  5. #define VER_FILEDESCRIPTION_STR "IIS Log File Conversion Utility"
  6. #define VER_INTERNALNAME_STR "convlog.exe"
  7. #include <iisver.h>
  8. #include "common.ver"
  9. #include "strings.h"
  10. STRINGTABLE
  11. BEGIN
  12. IDS_HEADER1 "Microsoft Internet Log Converter\n"
  13. IDS_HEADER2 "Converts Microsoft Internet Information Services log files\n"
  14. IDS_HEADER3 "to the NCSA Common LogFile format\n"
  15. IDS_HEADER4 "Copyright (C) 1997-1999 Microsoft Corporation\n\n"
  16. IDS_USAGE1 "Usage: %s [options] LogFile\n"
  17. IDS_USAGE2 "Options:\n"
  18. IDS_USAGE3 "-i<i|n|e> = input logfile type\n"
  19. IDS_USAGE4 " i - MS Internet Standard Log File Format\n"
  20. IDS_USAGE5 " n - NCSA Common Log File format\n"
  21. IDS_USAGE7 " e - W3C Extended Log File Format\n"
  22. IDS_USAGE8 "-t <ncsa[:GMTOffset] | none> default is ncsa\n"
  23. IDS_USAGE9 "-o <output directory> default = current directory\n"
  24. IDS_USAGE10 "-x save non-www entries to a .dmp logfile\n"
  25. IDS_USAGE11 "-d = convert IP addresses to DNS\n"
  26. IDS_USAGE12 "-l<0|1|2> = Date locale format for MS Internet Standard\n"
  27. IDS_USAGE13 " 0 - MM/DD/YY (default e.g. US)\n"
  28. IDS_USAGE14 " 1 - YY/MM/DD (e.g. Japan)\n"
  29. IDS_USAGE15 " 2 - DD.MM.YY (e.g. Germany)\n"
  30. IDS_USAGE16 "-c = continue even if incorrectly formatted line found\n"
  31. IDS_SAMPLE0 "\nExamples:\n"
  32. IDS_SAMPLE1 "%s -ii in*.log -d -t ncsa:+0800\n"
  33. IDS_SAMPLE2 "%s -in ncsa*.log -d\n"
  34. IDS_SAMPLE3 "%s -ii jra*.log -t none\n"
  35. IDS_TIME_ZONE1 "Could not calculate GMT offset from time zone!\n"
  36. IDS_TIME_ZONE2 "Re-run %s using the -t ncsa:GMTOffset option\n"
  37. IDS_BAD_DIR "Could not access %s for writing!\n"
  38. IDS_FILE_ERR "A File Error, %ld, Occured\n"
  39. IDS_FILE_CLOSE "\tNew date found, file %s closed.\n"
  40. IDS_FILE_OPEN "\nOpening file %s for processing\n"
  41. IDS_FILE_WRITE "\tWriting file %s.\n"
  42. IDS_FILE_EXIST "\tfile %s already exists, adding data to it.\n"
  43. IDS_FILE_NONE "Could not find any %s files!!!\n"
  44. IDS_FILE_NOT_MSINET "Line #%d not in MS Internet Standard format.\n"
  45. IDS_FILE_NOT_NCSA "Line #%d not in NCSA format.\n"
  46. IDS_BAD_NONE_ERR "none is only supported for MS Internet Log File Format\n"
  47. IDS_BAD_DATESTRINGS "Cannot initialize date strings\n"
  48. IDS_STRING_ERR "Error loading string ID %d\n"
  49. IDS_WINSOCK_ERR "Can't initialize Winsock, error code = %d. IP addresses will not be converted to machine names.\n"
  50. IDS_BAD_EXTENDED_FORMAT "Line #%d is in an invalid Extended File Format.\n"
  51. IDS_LINES "%s completed, %d lines processed.\n"
  52. IDS_WEB_LINES "%d Web lines written\n"
  53. IDS_DUMP_LINES "%d non-www lines discarded\n"
  54. IDS_TOTALS "\nTotals:\n=======\n"
  55. IDS_TOT_LINES "Total Lines Processed: %6d\n"
  56. IDS_TOT_WEB_LINES "Total Web Lines Written: %6d\n"
  57. IDS_CACHE_ERR "Unable to allocate cache memory. Caching disabled.\n"
  58. IDS_CACHE_HITS "\nTotal Cache Hits = %lu\n"
  59. IDS_CACHE_MISS "Total Cache Misses = %lu\n"
  60. IDS_CACHE_TOT "Cache Hit Ratio = %f\n"
  61. IDS_LINES_PROC "%s processing in progress, %u Lines Processed\n"
  62. IDS_PREPROC "Preprocessing file, checking for non-ascii characters\n"
  63. IDS_JAN "Jan"
  64. IDS_FEB "Feb"
  65. IDS_MAR "Mar"
  66. IDS_APR "Apr"
  67. IDS_MAY "May"
  68. IDS_JUN "Jun"
  69. IDS_JUL "Jul"
  70. IDS_AUG "Aug"
  71. IDS_SEP "Sep"
  72. IDS_OCT "Oct"
  73. IDS_NOV "Nov"
  74. IDS_DEC "Dec"
  75. IDS_MON "Mon"
  76. IDS_TUE "Tue"
  77. IDS_WED "Wed"
  78. IDS_THU "Thu"
  79. IDS_FRI "Fri"
  80. IDS_SAT "Sat"
  81. IDS_SUN "Sun"
  82. IDS_LASTDATE "LastDate"
  83. IDS_LASTTIME "LastTime"
  84. IDS_NO_CONVERSION_NEEDED "No Conversion needed for NCSA"
  85. END