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.

48 lines
1.7 KiB

  1. // Copyright (c) 1998-1999 Microsoft Corporation
  2. #ifdef NOMINMAX
  3. #undef NOMINMAX
  4. #endif
  5. #include <winver.h>
  6. #include <ntverp.h>
  7. #include "chgport.h"
  8. #define VER_FILETYPE VFT_APP
  9. #define VER_FILESUBTYPE VFT2_UNKNOWN
  10. #define VER_FILEDESCRIPTION_STR "Change port Utility"
  11. #define VER_INTERNALNAME_STR "chgport"
  12. #define VER_ORIGINALFILENAME_STR "chgport.exe"
  13. #include <verall.h>
  14. #include "common.ver"
  15. STRINGTABLE
  16. BEGIN
  17. IDS_ERROR_MALLOC
  18. L"Error allocating memory\n"
  19. IDS_ERROR_INVALID_PARAMETERS
  20. L"Invalid parameter(s)\n"
  21. IDS_ERROR_GETTING_COMPORTS
  22. L"Unable to get list of COM ports, error code = 0x%x.\n"
  23. IDS_ERROR_DEL_PORT_MAPPING
  24. L"Unable to delete mapping for port %s, error code = 0x%x.\n"
  25. IDS_ERROR_CREATE_PORT_MAPPING
  26. L"Unable to create mapping for port %s, error code = 0x%x.\n"
  27. IDS_ERROR_PORT_MAPPING_EXISTS
  28. L"Serial port %s is already mapped to %s.\n"
  29. IDS_ERROR_NO_SERIAL_PORTS
  30. L"No serial ports were found.\n"
  31. IDS_HELP_USAGE1
  32. L"List or change COM port mappings for DOS application compatibility.\n\n"
  33. IDS_HELP_USAGE2
  34. L"CHANGE PORT [portx=porty | /D portx | /QUERY]\n\n"
  35. IDS_HELP_USAGE3
  36. L" portx=porty Map port x to port y.\n"
  37. IDS_HELP_USAGE4
  38. L" /D portx Delete mapping for port x.\n"
  39. IDS_HELP_USAGE5
  40. L" /QUERY Display current mapping ports.\n\n"
  41. IDS_ERROR_NOT_TS
  42. L"This utility needs Terminal Services to be running.\n"
  43. END