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.

90 lines
3.8 KiB

  1. // Copyright (c) 1998-1999 Microsoft Corporation
  2. /***********************************************************************
  3. *
  4. * MSG.H
  5. * This module contains typedefs and defines required for
  6. * the MSG utility.
  7. *
  8. *
  9. *************************************************************************/
  10. /*
  11. * General application definitions.
  12. */
  13. #define SUCCESS 0
  14. #define FAILURE 1
  15. #define MAX_IDS_LEN 256 // maximum length that the input parm can be
  16. #define MAX_COMMAND_LEN 256
  17. #define MSG_MAX_THREADS 40
  18. #define RESPONSE_TIMEOUT 60
  19. #define MAX_TIME_DATE_LEN 80 // xx/xx/xxxx 12:34pm'\0'
  20. // 12345678901234567890
  21. /*
  22. * Command line token definitions.
  23. */
  24. #define TOKEN_INPUT L""
  25. #define TOKEN_MESSAGE L" "
  26. #define TOKEN_TIME L"/time"
  27. #define TOKEN_VERBOSE L"/v"
  28. #define TOKEN_WAIT L"/w"
  29. #define TOKEN_SELF L"/self"
  30. #define TOKEN_HELP L"/?"
  31. #define TOKEN_SERVER L"/server"
  32. /*
  33. * Resource string IDs
  34. */
  35. #define IDS_ERROR_MALLOC 100
  36. #define IDS_ERROR_INVALID_PARAMETERS 101
  37. #define IDS_ERROR_EMPTY_MESSAGE 102
  38. #define IDS_ERROR_STDIN_PROCESSING 103
  39. #define IDS_ERROR_WINSTATION_ENUMERATE 104
  40. #define IDS_ERROR_NO_FILE_MATCHING 105
  41. #define IDS_ERROR_NO_MATCHING 106
  42. #define IDS_ERROR_QUERY_WS 107
  43. #define IDS_ERROR_QUERY_ID 108
  44. #define IDS_ERROR_MESSAGE_WS 109
  45. #define IDS_ERROR_MESSAGE_ID 110
  46. #define IDS_ERROR_SERVER 111
  47. #define IDS_MESSAGE_PROMPT 200
  48. #define IDS_MESSAGE_WS 201
  49. #define IDS_MESSAGE_ID 202
  50. #define IDS_MESSAGE_RESPONSE_TIMEOUT_WS 203
  51. #define IDS_MESSAGE_RESPONSE_TIMEOUT_ID 204
  52. #define IDS_MESSAGE_RESPONSE_ASYNC_WS 205
  53. #define IDS_MESSAGE_RESPONSE_ASYNC_ID 206
  54. #define IDS_MESSAGE_RESPONSE_COUNT_EXCEEDED_WS 207
  55. #define IDS_MESSAGE_RESPONSE_COUNT_EXCEEDED_ID 208
  56. #define IDS_MESSAGE_RESPONSE_DESKTOP_ERROR_WS 209
  57. #define IDS_MESSAGE_RESPONSE_DESKTOP_ERROR_ID 210
  58. #define IDS_MESSAGE_RESPONSE_ERROR_WS 211
  59. #define IDS_MESSAGE_RESPONSE_ERROR_ID 212
  60. #define IDS_MESSAGE_RESPONSE_WS 213
  61. #define IDS_MESSAGE_RESPONSE_ID 214
  62. #define IDS_MESSAGE_RESPONSE_UNKNOWN_WS 216
  63. #define IDS_MESSAGE_RESPONSE_UNKNOWN_ID 217
  64. #define IDS_ERROR_CANT_OPEN_INPUT_FILE 218
  65. #define IDS_USAGE1 221
  66. #define IDS_USAGE2 222
  67. #define IDS_USAGE3 223
  68. #define IDS_USAGE4 224
  69. #define IDS_USAGE5 225
  70. #define IDS_USAGE6 226
  71. #define IDS_USAGE7 227
  72. #define IDS_USAGE8 228
  73. #define IDS_USAGE9 229
  74. #define IDS_USAGEA 230
  75. #define IDS_USAGEB 231
  76. #define IDS_USAGEC 232
  77. #define IDS_USAGED 233
  78. #define IDS_USAGEE 234
  79. #define IDS_USAGEF 235
  80. #define IDS_ERROR_NOT_TS 236
  81. #define IDS_TITLE_FORMAT 300