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.

106 lines
3.5 KiB

  1. /*++
  2. Copyright (C) 1992-2001 Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. diagcommon.h
  5. Abstract:
  6. Header containing rasdiag forward defintions, strings, etc
  7. Author:
  8. Anthony Leibovitz (tonyle) 02-01-2001
  9. Revision History:
  10. --*/
  11. #ifndef _DIAGCOMMON_H_
  12. #define _DIAGCOMMON_H_
  13. /*
  14. RASDIAG
  15. */
  16. #define APPLICATION_TITLE TEXT("RASDIAG")
  17. #define LOG_FILE_NAME TEXT("RASDIAG.TXT")
  18. #define RASDIAG_DIRECTORY TEXT("RASDIAG")
  19. #define RASDIAG_NET_TEMP TEXT("RASDIAGNET.TXT")
  20. #define RASDIAG_EXT TEXT("RDG")
  21. #define SYSTEM_TEXT_EDITOR TEXT("NOTEPAD.EXE")
  22. #define LOG_SEPARATION_TXT TEXT("--------------------------------------------------------------------------------\r\n")
  23. #define OPTION_DONETTESTS 0x00000001 // do net tests - currently none b/c app doesn't know net context - use NLA in future?
  24. #define IOBUFF_SIZE 1024
  25. #define CMDOPTION_DISABLE_QUESTION2 TEXT("/?")
  26. #define CMDOPTION_DISABLE_QUESTION1 TEXT("-?")
  27. #define CMDOPTION_ENABLE_NETTESTS TEXT("-n")
  28. #define CMDOPTION_REMOTE_SNIFF TEXT("-r")
  29. #define CMDOPTION_REMOTE_ROUTINGTABLE TEXT("-t")
  30. #define MAX_CHECKFILEACCESS_ATTEMPTS 10
  31. /*
  32. RAS TRACING
  33. */
  34. #define TRACING_ENABLE_VALUE_NAME TEXT("EnableFileTracing")
  35. #define TRACING_EXTENSION TEXT("LOG")
  36. #define TRACING_SUBDIRECTORY TEXT("TRACING")
  37. #define TRACING_SUBKEY TEXT("SOFTWARE\\Microsoft\\Tracing")
  38. /*
  39. RAS PBK
  40. */
  41. #define PBK_PATH TEXT("\\Application Data\\Microsoft\\Network\\Connections\\Pbk\\rasphone.pbk")
  42. /*
  43. CM
  44. */
  45. #define CM_LOGGING_VALUE TEXT("EnableLogging")
  46. #define CM_LOGGING_PATH_ALLUSER TEXT("%ALLUSERSPROFILE%")
  47. #define CM_LOGGING_PATH_CURUSER TEXT("%USERPROFILE%")
  48. #define CM_SECTIONNAME TEXT("Connection Manager")
  49. #define CM_SERVICENAME TEXT("ServiceName")
  50. #define CM_LOGGING_SECTIONNAME TEXT("Logging")
  51. #define CM_LOGGING_KEYNAME TEXT("FileDirectory")
  52. #define CM_LOGGING_DEFAULT_KEYNAME TEXT("%TEMP%")
  53. #define CM_LOGGING_FILENAME_EXT TEXT(".LOG")
  54. //#define CM_LOGGING_KEY TEXT("Software\\Microsoft\\Connection Manager\\UserInfo")
  55. #define CM_LOGGING_KEY_CURUSER TEXT("Software\\Microsoft\\Connection Manager\\UserInfo")
  56. #define CM_LOGGING_KEY_ALLUSER TEXT("Software\\Microsoft\\Connection Manager")
  57. /*
  58. OAKLEY
  59. */
  60. #define OAKLEY_TRACING_KEY TEXT("SYSTEM\\CurrentControlSet\\Services\\PolicyAgent\\Oakley")
  61. #define OAKLEY_VALUE TEXT("EnableLogging")
  62. #define LOG_TITLE_OAKLEY TEXT("OAKLEY/IKE")
  63. #define OAKLEY_LOG_LOCATION TEXT("%WINDIR%\\DEBUG\\OAKLEY.LOG")
  64. #define POLICYAGENT_SVC_NAME TEXT("POLICYAGENT")
  65. #define MAX_SECURITY_EVENTS_REPORTED 10 // Last # of events to include in rasdiag log
  66. /*
  67. UNIMODEM
  68. */
  69. #define LOG_TITLE_UNIMODEM TEXT("UNIMODEM")
  70. #define MODEM_LOG_FILENAME TEXT("%WINDIR%\\ModemLog*.TXT")
  71. #define UNIMODEM_ENABLE_LOGGING_VALUE TEXT("Logging")
  72. #define MODEM_SUBKEY TEXT("SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E96D-E325-11CE-BFC1-08002BE10318}")
  73. #define MAX_FULLYQUALIFIED_DN 1025
  74. #define SVCBUFFER_SIZE 2048*1024
  75. BOOL
  76. Logprintf(HANDLE hWrite, WCHAR *pFmt, ...);
  77. BOOL
  78. PrintLogHeader(HANDLE hWrite, WCHAR *pFmt, ...);
  79. #endif // _DIAGCOMMON_H_