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.

87 lines
5.1 KiB

  1. #include <windows.h>
  2. #include "lodctr.h"
  3. #include "unlodctr.h"
  4. STRINGTABLE
  5. BEGIN
  6. LC_CMD_HELP_1 "\nLODCTR"
  7. LC_CMD_HELP_2 " Updates Performance Monitor counter names and explain text for an extensible counter"
  8. LC_CMD_HELP_3 "\nUsage:"
  9. LC_CMD_HELP_4 " LODCTR [\\\\computername] filename"
  10. LC_CMD_HELP_5 " computername is the name of the remote computer. Currently computername is"
  11. LC_CMD_HELP_6 " ignored until remote installation is supported."
  12. LC_CMD_HELP_7 " Local machine is used if computername is not specified."
  13. LC_CMD_HELP_8 " filename is the name of the initialization file that contains"
  14. LC_CMD_HELP_9 " the counter name definitions and explain text for an extensible"
  15. LC_CMD_HELP_10 " counter DLL."
  16. LC_CMD_HELP_11 "\n LODCTR /S:<FileName>"
  17. LC_CMD_HELP_12 " save current perf registry strings and info to <FileName>"
  18. LC_CMD_HELP_13 "\n LODCTR /R:<FileName>"
  19. LC_CMD_HELP_14 " restore perf registry strings and info using <FileName>"
  20. LC_CMD_HELP_15 "\nNote: any arguments with spaces in the names must be enclosed within"
  21. LC_CMD_HELP_16 "Double Quotation marks.\n"
  22. LC_DEVNAME_ERR_1 "\nError in file: %ws."
  23. LC_DEVNAME_ERR_2 "\ndrivername parameter was not found in the [info] section of the file"
  24. LC_NO_INIFILE "\nUnable to find initialization file %ws"
  25. LC_LANGLIST_ERR "\nUnable to enumerate languages supported in %ws"
  26. LC_ERR_OPEN_INCLUDE "\nUnable to open symbol file %ws"
  27. LC_ERR_OPEN_DRIVERPERF1 "\nUnable to open Driver key: %ws"
  28. LC_ERR_OPEN_DRIVERPERF2 "\nStatus value: %d"
  29. LC_ERR_OPEN_PERFLIB "\nUnable to open Perflib key, status: %d"
  30. LC_ERR_READLASTPERFLIB "\nUnable to read Last Counter value from the Perflib key, status: %d"
  31. LC_ERR_ALREADY_IN "\nCounters for %ws are already installed"
  32. LC_ERR_UNABLESETBUSY "\nUnable to set Perflib's Busy flag. Status: %d"
  33. LC_BAD_KEY "\nKey %ws is not formatted correctly"
  34. LC_LANGNOTFOUND "\nLanguage ID: %ws in key %ws is not found under [languages]"
  35. LC_ERRADDTOLANG "\nUnable to add text for %ws to language %ws. status: %d"
  36. LC_UNABLESORTTABLES "\nUnable to sort entrys. Status: %d"
  37. LC_UNABLEOPENLANG "\nUnable to open language key %ws under Perflib"
  38. LC_UNABLESETVALUE "\nUnable to set the %ws value under the %ws key in the registry"
  39. LC_ERR_UPDATELANG "\nError encountered while updateing text in registry. Status: %d"
  40. LC_PERFLIBISBUSY "\nPerflib is currently being updated by another process. Try again later."
  41. LC_CONNECT_PROBLEM "\nUnable to connect to remote machine %ws. Status: %d\n"
  42. END
  43. STRINGTABLE
  44. BEGIN
  45. UC_CMD_HELP_1 "\nUNLODCTR"
  46. UC_CMD_HELP_2 " Removes counter names and explain text for the specified extensible counter."
  47. UC_CMD_HELP_3 "\nUsage:"
  48. UC_CMD_HELP_4 "\n UNLODCTR [\\\\computername] driver"
  49. UC_CMD_HELP_5 "\n computername is the name of the remote computer. Currently computername is"
  50. UC_CMD_HELP_6 " ignored until remote installation is supported."
  51. UC_CMD_HELP_7 " Local machine is used if computername is not specified."
  52. UC_CMD_HELP_8 "\n driver is the name of the device driver which is to have its"
  53. UC_CMD_HELP_9 " counter name definitions and explain text removed from the system's"
  54. UC_CMD_HELP_10 " registry.\n"
  55. UC_CMD_HELP_11 "\nNote: any arguments with spaces in the names must be enclosed within"
  56. UC_CMD_HELP_12 "Double Quotation marks.\n"
  57. UC_DRIVERNOTFOUND "\nUnable to open driver %ws. Status: %d"
  58. UC_NOTINSTALLED "\nCounters for %ws have not been installed yet"
  59. UC_REMOVINGDRIVER "\nRemoving counter names and explain text for %ws"
  60. UC_UNABLEOPENKEY "\nUnable to open a handle to the %ws key, status: %d"
  61. UC_UNABLESETVALUE "\nUnable to set %ws value under %ws key, status: %d"
  62. UC_UNABLEREADVALUE "\nUnable to read %ws value under %ws key, status: %d"
  63. UC_DOINGLANG "\nUpdating text for language %ws"
  64. UC_UNABLELOADLANG "\nUnable to load %ws text for language %ws. Status: %d"
  65. UC_CONNECT_PROBLEM "\nUnable to connect to remote machine %ws. Status: %d\n"
  66. UC_BAD_DRIVER_NAME "\nDriver name is too long or incorrectly formatted."
  67. END
  68. #include <ntverp.h>
  69. #define VER_FILETYPE VFT_APP
  70. #define VER_FILESUBTYPE VFT2_UNKNOWN
  71. #define VER_FILEDESCRIPTION_STR "Load & Unload Performance Counters"
  72. #define VER_INTERNALNAME_STR "LODCTR.DLL"
  73. #define VER_ORIGINALFILENAME_STR "LODCTR.DLL"
  74. #include "common.ver"
  75. #include "ldprfmsg.rc"