source: trunk/src/win32k/kKrnlLib/include/devErrors.h

Last change on this file was 9508, checked in by bird, 23 years ago

Renamed ProbKrnlErrors.h to devErrors.h.

File size: 6.2 KB
Line 
1/* $Id: devErrors.h,v 1.1 2002-12-16 01:50:05 bird Exp $
2 *
3 * Error definitions for kKrnlLib.
4 *
5 * Copyright (c) 2000-2003 knut st. osmundsen <bird@anduin.net>
6 *
7 *
8 * This file is part of kKrnlLib.
9 *
10 * kKrnlLib is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * kKrnlLib is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with kKrnlLib; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 *
24 */
25
26
27#ifndef __devErrors_h__
28#define __devErrors_h__
29
30/*******************************************************************************
31* Defined Constants And Macros *
32*******************************************************************************/
33
34/*
35 * Probkrnl error codes. (They all begin with ERROR_PROB_.)
36 *
37 * NOTE! ERROR_PROB_KRNL_* < ERROR_PROB_SYM_* < ERROR_PROB_SYMDB_*
38 */
39#define ERROR_PROB_BASE 0x3000
40#define ERROR_PROB_KRNL_FIRST ERROR_PROB_KRNL_OPEN_FAILED
41#define ERROR_PROB_KRNL_LAST ERROR_PROB_KRNL_OTE_READ
42#define ERROR_PROB_KRNL_OPEN_FAILED (ERROR_PROB_BASE + 0)
43#define ERROR_PROB_KRNL_SEEK_SIZE (ERROR_PROB_BASE + 2)
44#define ERROR_PROB_KRNL_SEEK_FIRST (ERROR_PROB_BASE + 3)
45#define ERROR_PROB_KRNL_READ_FIRST (ERROR_PROB_BASE + 4)
46#define ERROR_PROB_KRNL_READ_NEXT (ERROR_PROB_BASE + 5)
47#define ERROR_PROB_KRNL_TAG_NOT_FOUND (ERROR_PROB_BASE + 6)
48#define ERROR_PROB_KRNL_INV_SIGANTURE (ERROR_PROB_BASE + 7)
49#define ERROR_PROB_KRNL_INV_BUILD_NBR (ERROR_PROB_BASE + 8)
50#define ERROR_PROB_KRNL_BUILD_VERSION (ERROR_PROB_BASE + 9)
51#define ERROR_PROB_KRNL_MZ_SEEK (ERROR_PROB_BASE + 10)
52#define ERROR_PROB_KRNL_MZ_READ (ERROR_PROB_BASE + 11)
53#define ERROR_PROB_KRNL_NEOFF_INVALID (ERROR_PROB_BASE + 12)
54#define ERROR_PROB_KRNL_NEOFF_SEEK (ERROR_PROB_BASE + 13)
55#define ERROR_PROB_KRNL_LX_READ (ERROR_PROB_BASE + 14)
56#define ERROR_PROB_KRNL_LX_SIGNATURE (ERROR_PROB_BASE + 15)
57#define ERROR_PROB_KRNL_OBJECT_CNT (ERROR_PROB_BASE + 16)
58#define ERROR_PROB_KRNL_OBJECT_CNR_10 (ERROR_PROB_BASE + 17)
59#define ERROR_PROB_KRNL_OTE_SEEK (ERROR_PROB_BASE + 18)
60#define ERROR_PROB_KRNL_OTE_READ (ERROR_PROB_BASE + 19)
61#define ERROR_PROB_KRNL_OTE_SIZE_MIS (ERROR_PROB_BASE + 20)
62#define ERROR_PROB_KRNL_GIS (ERROR_PROB_BASE + 21)
63
64#define ERROR_PROB_SYM_FIRST ERROR_PROB_SYM_FILE_NOT_FOUND
65#define ERROR_PROB_SYM_LAST ERROR_PROB_SYMDB_KRNL_NOT_FOUND
66#define ERROR_PROB_SYM_FILE_NOT_FOUND (ERROR_PROB_BASE + 30)
67#define ERROR_PROB_SYM_READERROR (ERROR_PROB_BASE + 31)
68#define ERROR_PROB_SYM_INVALID_MOD_NAME (ERROR_PROB_BASE + 32)
69#define ERROR_PROB_SYM_SEGS_NE_OBJS (ERROR_PROB_BASE + 33)
70#define ERROR_PROB_SYM_SEG_DEF_SEEK (ERROR_PROB_BASE + 34)
71#define ERROR_PROB_SYM_SEG_DEF_READ (ERROR_PROB_BASE + 35)
72#define ERROR_PROB_SYM_VERIFY_IOCTL (ERROR_PROB_BASE + 36)
73/* - reserved for future errors - */
74
75#define ERROR_PROB_SYM_IMPORTS_NOTFOUND (ERROR_PROB_BASE + 100)
76#define ERROR_PROB_SYMDB_KRNL_NOT_FOUND (ERROR_PROB_BASE + 101)
77
78/*
79 * Init errors.
80 */
81#define ERROR_D16_THUNKING_FAILED (ERROR_PROB_BASE + 120)
82#define ERROR_D16_OPEN_DEV_FAILED (ERROR_PROB_BASE + 121)
83#define ERROR_D16_IOCTL_FAILED (ERROR_PROB_BASE + 122)
84
85
86/*
87 * 32-bit errors (from 32-bit code that is).
88 */
89#define ERROR_D32_FIRST ERROR_PROB_BASE + 256
90#define ERROR_D32_LAST ERROR_D32_SYMDB_NOT_FOUND
91
92/*
93 * GetKernelInfo32 Errors
94 */
95#define ERROR_D32_GETOS2KRNL_FAILED (0x0000 + ERROR_D32_FIRST)
96#define ERROR_D32_NO_SWAPMTE (0x0001 + ERROR_D32_FIRST)
97#define ERROR_D32_TOO_MANY_OBJECTS (0x0002 + ERROR_D32_FIRST)
98#define ERROR_D32_NO_OBJECT_TABLE (0x0003 + ERROR_D32_FIRST)
99#define ERROR_D32_BUILD_INFO_NOT_FOUND (0x0004 + ERROR_D32_FIRST)
100#define ERROR_D32_INVALID_BUILD (0x0005 + ERROR_D32_FIRST)
101
102/*
103 * R0Init32 Errors
104 */
105#define ERROR_D32_VERIFY_FAILED (0x0006 + ERROR_D32_FIRST)
106#define ERROR_D32_IPE (0x0007 + ERROR_D32_FIRST)
107#define ERROR_D32_HEAPINIT_FAILED (0x0008 + ERROR_D32_FIRST)
108#define ERROR_D32_LDR_INIT_FAILED (0x0009 + ERROR_D32_FIRST)
109
110/*
111 * VerifyImportTab32 Errors.
112 */
113#define ERROR_D32_PROC_NOT_FOUND (0x000a + ERROR_D32_FIRST)
114#define ERROR_D32_INVALID_OBJ_OR_ADDR (0x000b + ERROR_D32_FIRST)
115#define ERROR_D32_INVALID_ADDRESS (0x000c + ERROR_D32_FIRST)
116#define ERROR_D32_TOO_INVALID_PROLOG (0x000d + ERROR_D32_FIRST)
117#define ERROR_D32_NOT_IMPLEMENTED (0x000e + ERROR_D32_FIRST)
118
119/*
120 * LookupKrnlEntry32 Errors.
121 */
122#define ERROR_D32_SYMDB_NOT_FOUND (0x000f + ERROR_D32_FIRST)
123
124
125/*
126 * Procedure shift and mask.
127 * Used to get or set the procedure number of an error code.
128 */
129#define ERROR_D32_PROC_SHIFT 0x10
130
131
132
133/*******************************************************************************
134* Functions *
135*******************************************************************************/
136const char * devGetErrorMsg(int sErr);
137
138
139#endif
140
141
142
Note: See TracBrowser for help on using the repository browser.