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.

84 lines
2.6 KiB

  1. /*
  2. * Module Name: WSERROR.H
  3. *
  4. * Description:
  5. *
  6. * Working set tuner error message include file.
  7. *
  8. *
  9. * This is an OS/2 2.x specific file
  10. *
  11. * IBM/Microsoft Confidential
  12. *
  13. * Copyright (c) IBM Corporation 1987, 1989
  14. * Copyright (c) Microsoft Corporation 1987, 1989
  15. *
  16. * All Rights Reserved
  17. *
  18. * Modification History:
  19. *
  20. * 03/23/90 - created
  21. *
  22. */
  23. /*
  24. * Constant definitions.
  25. */
  26. #ifdef ERROR
  27. #undef ERROR
  28. #endif
  29. #define ERROR 1 /* Exit processing codes */
  30. #define NOEXIT 0xFFFF
  31. #define NO_MSG FALSE
  32. #define PRINT_MSG TRUE
  33. /* Message defines */
  34. #define MSG_BUFFER_SIZE 0
  35. #define MSG_DYNTRC 1
  36. #define MSG_FILE_CREATE 2
  37. #define MSG_FILE_OPEN 3
  38. #define MSG_FILE_OFFSET 4
  39. #define MSG_FILE_READ 5
  40. #define MSG_FILE_WRITE 6
  41. #define MSG_SEM_CREATE 7
  42. #define MSG_SEM_OPEN 8
  43. #define MSG_SEM_ACQUIRE 9
  44. #ifdef SHM_USED
  45. #define MSG_SHM_CREATE 10
  46. #define MSG_SHM_ACCESS 11
  47. #endif /* SHM_USED */
  48. #define MSG_FILE_BAD_HDR 12
  49. #define MSG_NO_MEM 13
  50. #define MSG_EXEC_PGM 14
  51. #define MSG_TRACE_ON 15
  52. #define MSG_TRACE_OFF 16
  53. #define MSG_WSINFO_ON 17
  54. #define MSG_WSPREPRO 18
  55. #define MSG_WSPDUMP 19
  56. #define MSG_WSREDUCE 20
  57. // These messages are order dependent; they must correspond to the 'MSG_'
  58. // definitions above.
  59. static CHAR *pchMsg[] = {
  60. "%s %s: WARNING - RESULT BUFFER TOO SMALL (0x%lx BYTES) %s\n",
  61. "%s %s: FATAL ERROR (%d) FROM DOSDYNAMICTRACE %s\n",
  62. "%s %s: FATAL ERROR (%d) - COULD NOT CREATE FILE %s\n",
  63. "%s %s: FATAL ERROR (%d) - COULD NOT OPEN FILE %s\n",
  64. "%s %s: FATAL ERROR (%d) - COULD NOT SET POINTER FOR FILE %s\n",
  65. "%s %s: FATAL ERROR (%d) - COULD NOT READ FILE %s (POSSIBLY CORRUPT)\n",
  66. "%s %s: FATAL ERROR (%d) - COULD NOT WRITE FILE %s\n",
  67. "%s %s: FATAL ERROR (%d) - COULD NOT CREATE SEMAPHORE NAMED %s\n",
  68. "%s %s: FATAL ERROR (%d) - COULD NOT OPEN SEMAPHORE NAMED %s\n",
  69. "%s %s: FATAL ERROR (%d) - COULD NOT ACQUIRE SEMAPHORE NAMED %s\n",
  70. "%s %s: FATAL ERROR (%d) - COULD NOT CREATE SHARED MEMORY NAMED %s\n",
  71. "%s %s: FATAL ERROR (%d) - COULD NOT ACCESS SHARED MEMORY NAMED %s\n",
  72. "%s %s: FATAL ERROR (%d) - BAD FILE HEADER %s\n",
  73. "%s %s: FATAL ERROR - COULD NOT ALLOCATE (%ld BYTES) MEMORY FOR %s\n",
  74. "%s %s: FATAL ERROR (%d) - Dos32ExecPgm(%s)\n",
  75. "%s %s: FATAL ERROR (%d) - COULD NOT INSERT TRACEPOINTS IN %s\n",
  76. "%s %s: WARNING (%d) - COULD NOT REMOVE TRACEPOINTS FROM %s\n",
  77. "%s %s: FATAL ERROR (%d) - COULD NOT COLLECT DATA, %s FAILED\n",
  78. "%s %s: ERROR (%d) - COULD NOT POSTPROCESS .WSI FILE, %s FAILED\n",
  79. "%s %s: FATAL ERROR (%d) - COULD NOT DUMP WSP DATA, %s FAILED\n",
  80. "%s %s: FATAL ERROR (%d) - COULD NOT REDUCE WSP DATA, %s FAILED\n",
  81. };