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.

75 lines
3.3 KiB

  1. /*****************************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright (C) 1993 Microsoft Corp. **/
  4. /*****************************************************************************/
  5. //***
  6. // File Name:
  7. // RASDIAL.C
  8. //
  9. // Function:
  10. // Command line interface for making Remote Access connections,
  11. // as well as disconnecting from and enumerating these connections.
  12. //
  13. // History:
  14. // 03/18/93 - Michael Salamone (MikeSa) - Original Version 1.0
  15. //***
  16. #include "rasdial.rch"
  17. STRINGTABLE
  18. {
  19. DIAL_HELP_SWITCH, "HELP"
  20. DIAL_DOMAIN_SWITCH, "DOMAIN"
  21. DIAL_PHONE_NO_SWITCH, "PHONE"
  22. DIAL_CALLBACK_NO_SWITCH, "CALLBACK"
  23. DIAL_DISCONNECT_SWITCH, "DISCONNECT"
  24. DIAL_DEVICE_SWITCH, "DEVICE"
  25. DIAL_USERNAME_PROMPT, "Username: "
  26. DIAL_PASSWORD_PROMPT, "Password: "
  27. DIAL_CONNECTING, "Connecting to %1..."
  28. DIAL_DOT, "."
  29. DIAL_ENUM_HEADER, "Connected to\n"
  30. DIAL_ENUM_ENTRY, "%1\n"
  31. DIAL_DISCONNECT_ERROR, "You must specify a connection to disconnect.\n"
  32. DIAL_USAGE, "USAGE:\n\t%1 entryname [username [password|*]] [/DOMAIN:domain]\n\t\t[/PHONE:phonenumber] [/CALLBACK:callbacknumber]\n\t\t[/PHONEBOOK:phonebookfile] [/PREFIXSUFFIX]\n\n\t%1 [entryname] /DISCONNECT\n\n\t%1\n\n"
  33. DIAL_AUTHENTICATING, "\nVerifying username and password..."
  34. DIAL_NEWLINE, "\n"
  35. DIAL_CALLBACK, "\nWaiting for callback..."
  36. DIAL_AUTH_ERROR, "\nUnexpected state (%1)\n"
  37. DIAL_CONNECT_SUCCESS, "\nSuccessfully connected to %1.\n"
  38. DIAL_COMMAND_SUCCESS, "Command completed successfully.\n"
  39. DIAL_DISCONNECTED, "Line disconnected\n"
  40. DIAL_NO_CONNECTIONS, "No connections\n"
  41. DIAL_NOT_CONNECTED, "You are not connected to %1.\n"
  42. DIAL_CONTROL_C, "^C\n"
  43. DIAL_MORE_HELP, "\n\nFor more help on this error:\n\tType 'hh netcfg.chm'\n\tIn help, click Troubleshooting, then Error Messages, then %1\n"
  44. DIAL_ERROR_PREFIX "\n\nRemote Access error %1 - "
  45. DIAL_PROJECTING, "\nRegistering your computer on the network..."
  46. DIAL_LINK_SPEED, "\nCalculating link speed..."
  47. DIAL_REAUTHENTICATING, "\nVerifying username and password..."
  48. DIAL_ALREADY_CONNECTED, "You are already connected to %1.\n"
  49. DIAL_PHONE_BOOK_SWITCH, "PHONEBOOK"
  50. DIAL_CONNECTING2, "\nConnecting to %1..."
  51. DIAL_PREFIXSUFFIX_SWITCH,"PREFIXSUFFIX"
  52. }
  53. #include <windows.h>
  54. #include <ntverp.h>
  55. /*-----------------------------------------------*/
  56. /* the following lines are specific to this file */
  57. /*-----------------------------------------------*/
  58. /* VER_FILETYPE, VER_FILESUBTYPE, VER_FILEDESCRIPTION_STR
  59. * and VER_INTERNALNAME_STR must be defined before including COMMON.VER
  60. * The strings don't need a '\0', since common.ver has them.
  61. */
  62. #define VER_FILETYPE VFT_APP
  63. #define VER_FILESUBTYPE VFT2_UNKNOWN
  64. #define VER_FILEDESCRIPTION_STR "Remote Access Client Side Command Line Dial UI"
  65. #define VER_INTERNALNAME_STR "RASDIAL.EXE"
  66. #define VER_ORIGINALFILENAME_STR "RASDIAL.EXE"
  67. #include "common.ver" // NT5.0 version file.