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.

129 lines
6.7 KiB

  1. #include "w32tmrc.h"
  2. #include <winres.h>
  3. #include <ntverp.h>
  4. /////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Dialog
  7. //
  8. IDD_SERVICECTRL DIALOG DISCARDABLE 0, 0, 222, 201
  9. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  10. CAPTION "W32Tm - Service controller"
  11. FONT 8, "MS Shell Dlg"
  12. BEGIN
  13. PUSHBUTTON "SERVICE_CONTROL_STOP",IDC_SC_STOP,30,65,185,10,BS_LEFT
  14. PUSHBUTTON "SERVICE_CONTROL_PAUSE",IDC_SC_PAUSE,30,75,185,10,
  15. BS_LEFT
  16. PUSHBUTTON "SERVICE_CONTROL_CONTINUE",IDC_SC_CONTINUE,30,85,185,10,
  17. BS_LEFT
  18. PUSHBUTTON "SERVICE_CONTROL_INTERROGATE",IDC_SC_INTERROGATE,30,95,
  19. 185,10,BS_LEFT
  20. PUSHBUTTON "SERVICE_CONTROL_SHUTDOWN",IDC_SC_SHUTDOWN,30,105,185,10,
  21. BS_LEFT
  22. PUSHBUTTON "SERVICE_CONTROL_PARAMCHANGE",IDC_SC_PARAMCHANGE,30,115,
  23. 185,10,BS_LEFT
  24. PUSHBUTTON "SERVICE_CONTROL_NETBINDADD",IDC_SC_NETBINDADD,30,125,
  25. 185,10,BS_LEFT
  26. PUSHBUTTON "SERVICE_CONTROL_NETBINDREMOVE",IDC_SC_NETBINDREMOVE,30,
  27. 135,185,10,BS_LEFT
  28. PUSHBUTTON "SERVICE_CONTROL_NETBINDENABLE",IDC_SC_NETBINDENABLE,30,
  29. 145,185,10,BS_LEFT
  30. PUSHBUTTON "SERVICE_CONTROL_NETBINDDISABLE",IDC_SC_NETBINDDISABLE,
  31. 30,155,185,10,BS_LEFT
  32. PUSHBUTTON "SERVICE_CONTROL_DEVICEEVENT",IDC_SC_DEVICEEVENT,30,165,
  33. 185,10,BS_LEFT
  34. PUSHBUTTON "SERVICE_CONTROL_HARDWAREPROFILECHANGE",
  35. IDC_SC_HARDWAREPROFILECHANGE,30,175,185,10,BS_LEFT
  36. PUSHBUTTON "SERVICE_CONTROL_POWEREVENT",IDC_SC_POWEREVENT,30,185,
  37. 185,10,BS_LEFT
  38. LTEXT "Send:",IDC_STATIC,5,65,20,8
  39. EDITTEXT IDC_STATUS,5,15,210,45,ES_MULTILINE | ES_AUTOVSCROLL |
  40. ES_READONLY | WS_VSCROLL
  41. LTEXT "Status:",IDC_STATIC,5,5,30,10
  42. END
  43. /////////////////////////////////////////////////////////////////////////////
  44. //
  45. // Version
  46. //
  47. #define VER_FILETYPE VFT_DLL
  48. #define VER_FILESUBTYPE VFT2_UNKNOWN
  49. #define VER_FILEDESCRIPTION_STR "Windows Time Service Diagnostic Tool"
  50. #define VER_INTERNALNAME_STR "w32time.dll"
  51. #define VER_ORIGINALFILENAME_STR "w32time.dll"
  52. #include <common.ver>
  53. #include "w32tmmsg.rc"
  54. /////////////////////////////////////////////////////////////////////////////
  55. //
  56. // Strings
  57. //
  58. STRINGTABLE DISCARDABLE
  59. BEGIN
  60. IDS_W32TM_GENERALHELP_LINE1 "w32tm [/? | /register | /unregister ]\n"
  61. IDS_W32TM_GENERALHELP_LINE2 " ? - this help screen.\n"
  62. IDS_W32TM_GENERALHELP_LINE3 " register - register to run as a service and add default\n"
  63. IDS_W32TM_GENERALHELP_LINE4 " configuration to the registry.\n"
  64. IDS_W32TM_GENERALHELP_LINE5 " unregister - unregister service and remove all configuration\n"
  65. IDS_W32TM_GENERALHELP_LINE6 " information from the registry.\n"
  66. IDS_W32TM_GENERALHELP_LINE7 "\n"
  67. IDS_W32TM_MONITORHELP_LINE1 "w32tm /monitor [/domain:<domain name>]\n"
  68. IDS_W32TM_MONITORHELP_LINE2 " [/computers:<name>[,<name>[,<name>...]]]\n"
  69. IDS_W32TM_MONITORHELP_LINE3 " [/threads:<num>]\n"
  70. IDS_W32TM_MONITORHELP_LINE4 " domain - specifies which domain to monitor. If no domain name\n"
  71. IDS_W32TM_MONITORHELP_LINE5 " is given, or neither the domain nor computers option is\n"
  72. IDS_W32TM_MONITORHELP_LINE6 " specified, the default domain is used. This option may be\n"
  73. IDS_W32TM_MONITORHELP_LINE7 " used more than once.\n"
  74. IDS_W32TM_MONITORHELP_LINE8 " computers - monitors the given list of computers. Computer\n"
  75. IDS_W32TM_MONITORHELP_LINE9 " names are separated by commas, with no spaces. If a name is\n"
  76. IDS_W32TM_MONITORHELP_LINE10 " prefixed with a '*', it is treated as a PDC. This option\n"
  77. IDS_W32TM_MONITORHELP_LINE11 " may be used more than once.\n"
  78. IDS_W32TM_MONITORHELP_LINE12 " threads - how many computers to analyze simultaneously. The\n"
  79. IDS_W32TM_MONITORHELP_LINE13 " default value is 3. Allowed range is 1-50.\n"
  80. IDS_W32TM_MONITORHELP_LINE14 "\n"
  81. IDS_W32TM_ERRORRESYNC_NO_TIME_DATA "The computer did not resync because no time data was available."
  82. IDS_W32TM_ERRORRESYNC_STALE_DATA "The computer did not resync because only stale time data was available."
  83. IDS_W32TM_ERRORRESYNC_SHUTTING_DOWN "The computer did not resync because the time service was shutting down."
  84. IDS_W32TM_ERRORRESYNC_CHANGE_TOO_BIG "The computer did not resync because the required time change was too big."
  85. IDS_W32TM_ERRORGENERAL_COMMAND_SUCCESSFUL "The command completed successfully."
  86. IDS_W32TM_ERRORGENERAL_ERROR_OCCURED "The following error occurred:"
  87. IDS_W32TM_ERRORGENERAL_INVALID_LOCALTIME "(not a valid local time)"
  88. IDS_W32TM_ERRORGENERAL_MISSING_PARAM "Missing parameter."
  89. IDS_W32TM_ERRORGENERAL_NOINTERFACE "No interface specified!"
  90. IDS_W32TM_ERRORGENERAL_TOO_MANY_PARAMS "Too many parameters."
  91. IDS_W32TM_ERRORGENERAL_UNEXPECTED_PARAMS "The following arguments were unexpected:"
  92. IDS_W32TM_ERRORPARAMETER_COMPUTER_MISSING "Required parameter 'computer' missing."
  93. IDS_W32TM_ERRORPARAMETER_INCORRECT_NUMBER_FOR_ALERT "Incorrect number of parameters for alert"
  94. IDS_W32TM_ERRORPARAMETER_UNKNOWN_PARAMETER_SYNCFROMFLAGS "Unknown parameter for syncfromflags:"
  95. IDS_W32TM_ERRORCONFIG_NO_CHANGE_SPECIFIED "No configuration change specified!"
  96. IDS_W32TM_ERRORDUMPREG_NO_SUBKEY_SPECIFIED "Incorrect syntax for dumpreg: no subkey specified!"
  97. IDS_W32TM_ERRORTIMEMONITOR_GETDCLIST_FAILED "GetDcList failed with error code: "
  98. IDS_W32TM_ERRORTIMEMONITOR_INVALID_NUMBER_THREADS "Invalid number of threads"
  99. IDS_W32TM_ERRORTIMEZONE_INVALID "TIME_ZONE_ID_INVALID"
  100. IDS_W32TM_STATUS_SENDING_RESYNC_TO "Sending resync command to"
  101. IDS_W32TM_STATUS_CALLING_GETNETLOGONBITS_ON "Calling W32TimeGetNetlogonServiceBits on"
  102. IDS_W32TM_STATUS_CALLING_JOINCONFIG "Calling W32TimeVerifyJoinConfig."
  103. IDS_W32TM_STATUS_CALLING_UNJOINCONFIG "Calling W32TimeVerifyUnjoinConfig."
  104. IDS_W32TM_STATUS_GETTING_DC_LIST_FOR_DEFAULT_DOMAIN "Getting DC list for default domain..."
  105. IDS_W32TM_STATUS_GETTING_DC_LIST_FOR "Getting DC list for"
  106. IDS_W32TM_STATUS_REGISTER_SUCCESSFUL "W32Time successfully registered."
  107. IDS_W32TM_WARN_IGNORE_SOFT "Rediscover and soft cannot both be specified. Ignoring soft."
  108. END