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.

191 lines
12 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_OTHERCMDHELP_LINE1 "w32tm /ntte <NT time epoch>\n"
  82. IDS_W32TM_OTHERCMDHELP_LINE2 " Convert a NT system time, in (10^-7)s intervals from 0h 1-Jan 1601,\n"
  83. IDS_W32TM_OTHERCMDHELP_LINE3 " into a readable format.\n"
  84. IDS_W32TM_OTHERCMDHELP_LINE4 "\n"
  85. IDS_W32TM_OTHERCMDHELP_LINE5 "w32tm /ntpte <NTP time epoch>\n"
  86. IDS_W32TM_OTHERCMDHELP_LINE6 " Convert an NTP time, in (2^-32)s intervals from 0h 1-Jan 1900, into\n"
  87. IDS_W32TM_OTHERCMDHELP_LINE7 " a readable format.\n"
  88. IDS_W32TM_OTHERCMDHELP_LINE8 "\n"
  89. IDS_W32TM_OTHERCMDHELP_LINE9 "w32tm /resync [/computer:<computer>] [/nowait] [/rediscover] [/soft]\n"
  90. IDS_W32TM_OTHERCMDHELP_LINE10 " Tell a computer that it should resynchronize its clock as soon\n"
  91. IDS_W32TM_OTHERCMDHELP_LINE11 " as possible, throwing out all accumulated error statistics.\n"
  92. IDS_W32TM_OTHERCMDHELP_LINE12 " computer:<computer> - computer that should resync. If not\n"
  93. IDS_W32TM_OTHERCMDHELP_LINE13 " specified, the local computer will resync.\n"
  94. IDS_W32TM_OTHERCMDHELP_LINE14 " nowait - do not wait for the resync to occur;\n"
  95. IDS_W32TM_OTHERCMDHELP_LINE15 " return immediately. Otherwise, wait for the resync to\n"
  96. IDS_W32TM_OTHERCMDHELP_LINE16 " complete before returning.\n"
  97. IDS_W32TM_OTHERCMDHELP_LINE17 " rediscover - redetect the network configuration and rediscover\n"
  98. IDS_W32TM_OTHERCMDHELP_LINE18 " network sources, then resynchronize.\n"
  99. IDS_W32TM_OTHERCMDHELP_LINE19 " soft - resync utilizing existing error statistics. Not useful, \n"
  100. IDS_W32TM_OTHERCMDHELP_LINE20 " provided for compatibility.\n"
  101. IDS_W32TM_OTHERCMDHELP_LINE21 "\n"
  102. IDS_W32TM_OTHERCMDHELP_LINE22 "w32tm /stripchart /computer:<target> [/period:<refresh>]\n"
  103. IDS_W32TM_OTHERCMDHELP_LINE23 " [/dataonly] [/samples:<count>] \n"
  104. IDS_W32TM_OTHERCMDHELP_LINE24 " Display a strip chart of the offset between this computer and\n"
  105. IDS_W32TM_OTHERCMDHELP_LINE25 " another computer.\n"
  106. IDS_W32TM_OTHERCMDHELP_LINE26 " computer:<target> - the computer to measure the offset against.\n"
  107. IDS_W32TM_OTHERCMDHELP_LINE27 " period:<refresh> - the time between samples, in seconds. The\n"
  108. IDS_W32TM_OTHERCMDHELP_LINE28 " default is 2s\n"
  109. IDS_W32TM_OTHERCMDHELP_LINE29 " dataonly - display only the data, no graphics.\n"
  110. IDS_W32TM_OTHERCMDHELP_LINE30 ""
  111. IDS_W32TM_OTHERCMDHELP_LINE31 " samples:<count> - collect <count> samples, then stop. If not\n"
  112. IDS_W32TM_OTHERCMDHELP_LINE32 " specified, samples will be collected until Ctrl-C is pressed.\n"
  113. IDS_W32TM_OTHERCMDHELP_LINE33 "\n"
  114. IDS_W32TM_OTHERCMDHELP_LINE34 "w32tm /config [/computer:<target>] [/update]\n"
  115. IDS_W32TM_OTHERCMDHELP_LINE35 " [/manualpeerlist:<peers>] [/syncfromflags:<source>]\n"
  116. IDS_W32TM_OTHERCMDHELP_LINE36 " [/LocalClockDispersion:<seconds>]\n"
  117. IDS_W32TM_OTHERCMDHELP_LINE37 " computer:<target> - adjusts the configuration of <target>. If not\n"
  118. IDS_W32TM_OTHERCMDHELP_LINE38 " specified, the default is the local computer.\n"
  119. IDS_W32TM_OTHERCMDHELP_LINE39 " update - notifies the time service that the configuration has\n"
  120. IDS_W32TM_OTHERCMDHELP_LINE40 " changed, causing the changes to take effect.\n"
  121. IDS_W32TM_OTHERCMDHELP_LINE41 " manualpeerlist:<peers> - sets the manual peer list to <peers>,\n"
  122. IDS_W32TM_OTHERCMDHELP_LINE42 " which is a space-delimited list of DNS and/or IP addresses.\n"
  123. IDS_W32TM_OTHERCMDHELP_LINE43 " When specifying multiple peers, this switch must be enclosed in\n"
  124. IDS_W32TM_OTHERCMDHELP_LINE44 " quotes.\n"
  125. IDS_W32TM_OTHERCMDHELP_LINE45 " syncfromflags:<source> - sets what sources the NTP client should\n"
  126. IDS_W32TM_OTHERCMDHELP_LINE46 " sync from. <source> should be a comma separated list of\n"
  127. IDS_W32TM_OTHERCMDHELP_LINE47 " these keywords (not case sensitive):\n"
  128. IDS_W32TM_OTHERCMDHELP_LINE48 " MANUAL - include peers from the manual peer list\n"
  129. IDS_W32TM_OTHERCMDHELP_LINE49 " DOMHIER - sync from a DC in the domain hierarchy\n"
  130. IDS_W32TM_OTHERCMDHELP_LINE50 "\n"
  131. IDS_W32TM_OTHERCMDHELP_LINE51 "w32tm /tz\n"
  132. IDS_W32TM_OTHERCMDHELP_LINE52 " Display the current time zone settings.\n"
  133. IDS_W32TM_OTHERCMDHELP_LINE53 "\n"
  134. IDS_W32TM_OTHERCMDHELP_LINE54 "w32tm /dumpreg [/subkey:<key>] [/computer:<target>]\n"
  135. IDS_W32TM_OTHERCMDHELP_LINE55 " Display the values associated with a given registry key.\n"
  136. IDS_W32TM_OTHERCMDHELP_LINE56 " The default key is HKLM\\System\\CurrentControlSet\\Services\\W32Time\n"
  137. IDS_W32TM_OTHERCMDHELP_LINE57 " (the root key for the time service).\n"
  138. IDS_W32TM_OTHERCMDHELP_LINE58 " subkey:<key> - displays the values associated with subkey <key> of the default key.\n"
  139. IDS_W32TM_OTHERCMDHELP_LINE59 " computer:<target> - queries registry settings for computer <target>\n"
  140. IDS_W32TM_OTHERCMDHELP_LINE60 "\n"
  141. IDS_W32TM_ERRORRESYNC_NO_TIME_DATA "The computer did not resync because no time data was available."
  142. IDS_W32TM_ERRORRESYNC_STALE_DATA "The computer did not resync because only stale time data was available."
  143. IDS_W32TM_ERRORRESYNC_SHUTTING_DOWN "The computer did not resync because the time service was shutting down."
  144. IDS_W32TM_ERRORRESYNC_CHANGE_TOO_BIG "The computer did not resync because the required time change was too big."
  145. IDS_W32TM_ERRORGENERAL_COMMAND_SUCCESSFUL "The command completed successfully."
  146. IDS_W32TM_ERRORGENERAL_ERROR_OCCURED "The following error occurred:"
  147. IDS_W32TM_ERRORGENERAL_INVALID_LOCALTIME "(not a valid local time)"
  148. IDS_W32TM_ERRORGENERAL_MISSING_PARAM "Missing parameter."
  149. IDS_W32TM_ERRORGENERAL_NOINTERFACE "No interface specified!"
  150. IDS_W32TM_ERRORGENERAL_TOO_MANY_PARAMS "Too many parameters."
  151. IDS_W32TM_ERRORGENERAL_UNEXPECTED_PARAMS "The following arguments were unexpected:"
  152. IDS_W32TM_ERRORPARAMETER_COMPUTER_MISSING "Required parameter 'computer' missing."
  153. IDS_W32TM_ERRORPARAMETER_INCORRECT_NUMBER_FOR_ALERT "Incorrect number of parameters for alert"
  154. IDS_W32TM_ERRORPARAMETER_UNKNOWN_PARAMETER_SYNCFROMFLAGS "Unknown parameter for syncfromflags:"
  155. IDS_W32TM_ERRORCONFIG_NO_CHANGE_SPECIFIED "No configuration change specified!"
  156. IDS_W32TM_ERRORDUMPREG_NO_SUBKEY_SPECIFIED "Incorrect syntax for dumpreg: no subkey specified!"
  157. IDS_W32TM_ERRORTIMEMONITOR_GETDCLIST_FAILED "GetDcList failed with error code: "
  158. IDS_W32TM_ERRORTIMEMONITOR_INVALID_NUMBER_THREADS "Invalid number of threads"
  159. IDS_W32TM_ERRORTIMEZONE_INVALID "TIME_ZONE_ID_INVALID"
  160. IDS_W32TM_STATUS_SENDING_RESYNC_TO "Sending resync command to"
  161. IDS_W32TM_STATUS_CALLING_GETNETLOGONBITS_ON "Calling W32TimeGetNetlogonServiceBits on"
  162. IDS_W32TM_STATUS_CALLING_JOINCONFIG "Calling W32TimeVerifyJoinConfig."
  163. IDS_W32TM_STATUS_CALLING_UNJOINCONFIG "Calling W32TimeVerifyUnjoinConfig."
  164. IDS_W32TM_STATUS_GETTING_DC_LIST_FOR_DEFAULT_DOMAIN "Getting DC list for default domain..."
  165. IDS_W32TM_STATUS_GETTING_DC_LIST_FOR "Getting DC list for"
  166. IDS_W32TM_STATUS_REGISTER_SUCCESSFUL "W32Time successfully registered."
  167. IDS_W32TM_WARN_IGNORE_SOFT "Rediscover and soft cannot both be specified. Ignoring soft."
  168. END