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.

118 lines
5.3 KiB

  1. //Microsoft Developer Studio generated resource script.
  2. //
  3. #include <windows.h>
  4. #include "resource.h"
  5. #include "cmdlineres.h"
  6. #include "cmdline.rc"
  7. /////////////////////////////////////////////////////////////////////////////
  8. //
  9. // String Table
  10. //
  11. STRINGTABLE DISCARDABLE
  12. BEGIN
  13. IDS_USAGE_BEGINING "\nGETMAC [/S system [/U username [/P [password]]]] [/FO format] [/NH] [/V]\n"
  14. IDS_USG_4 "\n"
  15. IDS_USG_5 "Description:\n"
  16. IDS_USG_6 " This command line tool enables an administrator to display the MAC\n"
  17. IDS_USG_7 " address for one or more network adapters on a system.\n"
  18. IDS_USG_8 "\n"
  19. IDS_USG_9 "Parameter List: \n"
  20. IDS_USG_10 " /S system Specifies the remote system to connect to.\n\n"
  21. IDS_USG_11 " /U [domain\\]user Specifies the user context under \n"
  22. IDS_USG_12 " which the command should execute.\n\n"
  23. IDS_USG_13 " /P [password] Specifies the password for the given\n"
  24. IDS_USG_14 " user context. Prompts for input if omitted.\n\n"
  25. IDS_USG_15 " /FO format Specifies the format in which the output\n"
  26. IDS_USG_16 " is to be displayed.\n"
  27. IDS_USG_17 " Valid values: ""TABLE"", ""LIST"", ""CSV"".\n\n"
  28. IDS_USG_18 " /V Specifies that the detailed information\n "
  29. IDS_USG_19 " should be displayed in the output.\n\n"
  30. IDS_USG_20 " /NH Specifies that the ""Column Header"" should\n"
  31. IDS_USG_21 " not be displayed in the output.\n"
  32. IDS_USG_22 " Valid only for TABLE and CSV formats.\n\n"
  33. IDS_USG_23 " /? Displays this help/usage.\n\n"
  34. IDS_USG_24 "Examples: \n"
  35. IDS_USG_25 " GETMAC /FO csv \n"
  36. IDS_USG_26 " GETMAC /S system /NH /V\n"
  37. IDS_USG_27 " GETMAC /S system /U user\n"
  38. IDS_USG_28 " GETMAC /S system /U domain\\user /P password /FO list /V\n"
  39. IDS_USAGE_ENDING " GETMAC /S system /U domain\\user /P password /FO table /NH\n"
  40. END
  41. STRINGTABLE DISCARDABLE
  42. BEGIN
  43. IDS_USER_NMACHINE "ERROR: Invalid Syntax. /U can be specified only when /S is specified.\nType ""GETMAC /?"" for usage.\n"
  44. IDS_SERVER_NPASSWORD "ERROR: Invalid Syntax. /P can be specified only when /U is specified.\nType ""GETMAC /?"" for usage.\n"
  45. IDS_ERROR_VERSION_MISMATCH "ERROR: Could not retrive information due to WMI version mismatch.\n"
  46. IDS_NOT_RESPONDING "ERROR: The machine is located, but did not respond properly.\n"
  47. IDS_NO_MACHINE "ERROR: Machine is not found on the network.\n"
  48. IDS_INVALID_MACHINE "ERROR: Machine name is not a valid machine name.\n"
  49. IDS_WKST_NOT_FOUND "ERROR: Workstation service is not running on the target machine.\n"
  50. IDS_NULL_SERVER "ERROR: Invalid Syntax. System name cannot be empty.\n"
  51. IDS_NULL_USER "ERROR: Invalid Syntax. User name cannot be empty.\n"
  52. IDS_INVALID_OPTIONS "ERROR: Invalid Syntax. /NH option is allowed only for TABLE and CSV formats.\nType ""GETMAC /?"" for usage.\n"
  53. IDS_NO_NETWORK_ADAPTERS "INFO: No network adapters found.\n"
  54. IDS_NO_NETWOK_PROTOCOLS "INFO: No network protocols found.\n"
  55. IDS_IGNORE_LOCALCREDENTIALS "WARNING: user credentials cannot be used for local connections.\n"
  56. IDS_TYPE_REQUEST "Type ""GETMAC /?"" for usage.\n"
  57. IDS_ERROR_STRING "ERROR: "
  58. IDS_WARNING_STRING "WARNING: "
  59. IDS_NEW_LINE "\n"
  60. END
  61. STRINGTABLE DISCARDABLE
  62. BEGIN
  63. IDS_HYPHEN_STRING "-"
  64. IDS_COLON_STRING ":"
  65. FR_LIST "LIST"
  66. FR_CSV "CSV"
  67. FR_TABLE "TABLE"
  68. IDS_FORMAT_TYPES "CSV|TABLE|LIST"
  69. END
  70. STRINGTABLE DISCARDABLE
  71. BEGIN
  72. IDS_NOT_AVAILABLE "N/A"
  73. IDS_DISABLED "Disabled"
  74. IDS_DISCONNECTED "Disconnected"
  75. IDS_CONNECTING "Connecting..."
  76. IDS_DISCONNECTING "Disconnecting"
  77. IDS_HWNOTPRESENT "Hardware not present"
  78. IDS_HWDISABLED "Hardware disabled"
  79. IDS_HWMALFUNCTION "Hardware malfunction"
  80. IDS_MEDIADISCONNECTED "Media disconnected"
  81. IDS_AUTHENTICATION "Authentication"
  82. IDS_AUTHENSUCCEEDED "Authentication succeeded"
  83. IDS_AUTHENFAILED "Authentication failed"
  84. END
  85. STRINGTABLE DISCARDABLE
  86. BEGIN
  87. RES_HOST "Host Name"
  88. RES_CONNECTION "Connection Name"
  89. RES_ADAPTER "Network Adapter"
  90. RES_ADDRESS "Physical Address"
  91. RES_TRANSNAME "Transport Name"
  92. IDS_HOST_NAME_WIDTH "15"
  93. IDS_CONN_NAME_WIDTH "15"
  94. IDS_ADAPT_TYPE_WIDTH "15"
  95. IDS_MAC_ADDR_WIDTH "19"
  96. IDS_TRANS_NAME_WIDTH "58"
  97. END
  98. //
  99. // Version resources
  100. //
  101. #include <ntverp.h>
  102. #define VER_FILETYPE VFT_APP
  103. #define VER_FILESUBTYPE VFT2_UNKNOWN
  104. #define VER_FILEDESCRIPTION_STR "Get MAC Address"
  105. #define VER_INTERNALNAME_STR "GetMac.exe"
  106. #define VER_ORIGINALFILENAME_STR "GetMac.exe"
  107. #include <common.ver>