windows-nt/Source/XPSP1/NT/sdktools/wst/wsfslib/wserror.h

85 lines
2.6 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*
* Module Name: WSERROR.H
*
* Description:
*
* Working set tuner error message include file.
*
*
* This is an OS/2 2.x specific file
*
* IBM/Microsoft Confidential
*
* Copyright (c) IBM Corporation 1987, 1989
* Copyright (c) Microsoft Corporation 1987, 1989
*
* All Rights Reserved
*
* Modification History:
*
* 03/23/90 - created
*
*/
/*
* Constant definitions.
*/
#ifdef ERROR
#undef ERROR
#endif
#define ERROR 1 /* Exit processing codes */
#define NOEXIT 0xFFFF
#define NO_MSG FALSE
#define PRINT_MSG TRUE
/* Message defines */
#define MSG_BUFFER_SIZE 0
#define MSG_DYNTRC 1
#define MSG_FILE_CREATE 2
#define MSG_FILE_OPEN 3
#define MSG_FILE_OFFSET 4
#define MSG_FILE_READ 5
#define MSG_FILE_WRITE 6
#define MSG_SEM_CREATE 7
#define MSG_SEM_OPEN 8
#define MSG_SEM_ACQUIRE 9
#ifdef SHM_USED
#define MSG_SHM_CREATE 10
#define MSG_SHM_ACCESS 11
#endif /* SHM_USED */
#define MSG_FILE_BAD_HDR 12
#define MSG_NO_MEM 13
#define MSG_EXEC_PGM 14
#define MSG_TRACE_ON 15
#define MSG_TRACE_OFF 16
#define MSG_WSINFO_ON 17
#define MSG_WSPREPRO 18
#define MSG_WSPDUMP 19
#define MSG_WSREDUCE 20
// These messages are order dependent; they must correspond to the 'MSG_'
// definitions above.
static CHAR *pchMsg[] = {
"%s %s: WARNING - RESULT BUFFER TOO SMALL (0x%lx BYTES) %s\n",
"%s %s: FATAL ERROR (%d) FROM DOSDYNAMICTRACE %s\n",
"%s %s: FATAL ERROR (%d) - COULD NOT CREATE FILE %s\n",
"%s %s: FATAL ERROR (%d) - COULD NOT OPEN FILE %s\n",
"%s %s: FATAL ERROR (%d) - COULD NOT SET POINTER FOR FILE %s\n",
"%s %s: FATAL ERROR (%d) - COULD NOT READ FILE %s (POSSIBLY CORRUPT)\n",
"%s %s: FATAL ERROR (%d) - COULD NOT WRITE FILE %s\n",
"%s %s: FATAL ERROR (%d) - COULD NOT CREATE SEMAPHORE NAMED %s\n",
"%s %s: FATAL ERROR (%d) - COULD NOT OPEN SEMAPHORE NAMED %s\n",
"%s %s: FATAL ERROR (%d) - COULD NOT ACQUIRE SEMAPHORE NAMED %s\n",
"%s %s: FATAL ERROR (%d) - COULD NOT CREATE SHARED MEMORY NAMED %s\n",
"%s %s: FATAL ERROR (%d) - COULD NOT ACCESS SHARED MEMORY NAMED %s\n",
"%s %s: FATAL ERROR (%d) - BAD FILE HEADER %s\n",
"%s %s: FATAL ERROR - COULD NOT ALLOCATE (%ld BYTES) MEMORY FOR %s\n",
"%s %s: FATAL ERROR (%d) - Dos32ExecPgm(%s)\n",
"%s %s: FATAL ERROR (%d) - COULD NOT INSERT TRACEPOINTS IN %s\n",
"%s %s: WARNING (%d) - COULD NOT REMOVE TRACEPOINTS FROM %s\n",
"%s %s: FATAL ERROR (%d) - COULD NOT COLLECT DATA, %s FAILED\n",
"%s %s: ERROR (%d) - COULD NOT POSTPROCESS .WSI FILE, %s FAILED\n",
"%s %s: FATAL ERROR (%d) - COULD NOT DUMP WSP DATA, %s FAILED\n",
"%s %s: FATAL ERROR (%d) - COULD NOT REDUCE WSP DATA, %s FAILED\n",
};