ReactOS 0.4.15-dev-7897-g78dc504
wdfstatus.h
Go to the documentation of this file.
1/*++ BUILD Version: 0005 // Increment this if a change has global effects
2
3Copyright (c) Microsoft Corporation. All rights reserved.
4
5Module Name:
6
7 wdfstatus.h
8
9Abstract:
10
11 Constant definitions for the WDFSTATUS values.
12
13Revision History:
14
15Notes:
16
17 This file is generated by the MC tool from the wdfstatus.mc file.
18
19--*/
20
21#ifndef _WDFSTATUS_H_
22#define _WDFSTATUS_H_
23
25//
26// Standard Success values match the NTSTATUS values
27//
28//
30
31
32#define FACILITY_DRIVER_FRAMEWORK 0x20
33
34//
35// Values are 32 bit values laid out as follows:
36//
37// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
38// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
39// +---+-+-+-----------------------+-------------------------------+
40// |Sev|C|R| Facility | Code |
41// +---+-+-+-----------------------+-------------------------------+
42//
43// where
44//
45// Sev - is the severity code
46//
47// 00 - Success
48// 01 - Informational
49// 10 - Warning
50// 11 - Error
51//
52// C - is the Customer code flag
53//
54// R - is a reserved bit
55//
56// Facility - is the facility code
57//
58// Code - is the facility's status code
59//
60//
61// Define the facility codes
62//
63
64
65//
66// Define the severity codes
67//
68#define STATUS_SEVERITY_WARNING 0x2
69#define STATUS_SEVERITY_SUCCESS 0x0
70#define STATUS_SEVERITY_INFORMATIONAL 0x1
71#define STATUS_SEVERITY_ERROR 0x3
72
73
74//
75// MessageId: STATUS_WDF_QUEUED
76//
77// MessageText:
78//
79// The request was queued internally and not immediately submitted to its target.
80//
81#define STATUS_WDF_QUEUED ((NTSTATUS)0x40200000L)
82
83//
84// MessageId: STATUS_WDF_POSTED
85//
86// MessageText:
87//
88// The request was posted to a worker thread.
89//
90#define STATUS_WDF_POSTED ((NTSTATUS)0x40200002L)
91
92//
93// MessageId: STATUS_WDF_NO_PACKAGE
94//
95// MessageText:
96//
97// No package of the selected type has been defined.
98//
99#define STATUS_WDF_NO_PACKAGE ((NTSTATUS)0xC0200200L)
100
101//
102// MessageId: STATUS_WDF_INTERNAL_ERROR
103//
104// MessageText:
105//
106// An internal error has occured.
107//
108#define STATUS_WDF_INTERNAL_ERROR ((NTSTATUS)0xC0200201L)
109
110//
111// MessageId: STATUS_WDF_PAUSED
112//
113// MessageText:
114//
115// The object is in a paused state.
116//
117#define STATUS_WDF_PAUSED ((NTSTATUS)0xC0200203L)
118
119//
120// MessageId: STATUS_WDF_BUSY
121//
122// MessageText:
123//
124// The object is busy with previous requests.
125//
126#define STATUS_WDF_BUSY ((NTSTATUS)0xC0200204L)
127
128//
129// MessageId: STATUS_WDF_IO_TIMEOUT_NOT_SENT
130//
131// MessageText:
132//
133// The request timed out and was never sent to its target.
134//
135#define STATUS_WDF_IO_TIMEOUT_NOT_SENT ((NTSTATUS)0xC0200205L)
136
137//
138// MessageId: STATUS_WDF_DEVICE_REMOVED_NOT_SENT
139//
140// MessageText:
141//
142// The request was never sent to its target and is now failed because the device has been removed.
143//
144#define STATUS_WDF_DEVICE_REMOVED_NOT_SENT ((NTSTATUS)0xC0200206L)
145
146//
147// MessageId: STATUS_WDF_REQUEST_ALREADY_PENDING
148//
149// MessageText:
150//
151// A request that was already pending with a IO target was submitted to a IO target.
152//
153#define STATUS_WDF_REQUEST_ALREADY_PENDING ((NTSTATUS)0xC0200207L)
154
155//
156// MessageId: STATUS_WDF_REQUEST_INVALID_STATE
157//
158// MessageText:
159//
160// An invalid operation was attempted on a request based on its currents state.
161//
162#define STATUS_WDF_REQUEST_INVALID_STATE ((NTSTATUS)0xC0200208L)
163
164//
165// MessageId: STATUS_WDF_OBJECT_ATTRIBUTES_INVALID
166//
167// MessageText:
168//
169// An invalid WDF_OBJECT_ATTRIBUTES parameter was passed.
170//
171#define STATUS_WDF_OBJECT_ATTRIBUTES_INVALID ((NTSTATUS)0xC0200209L)
172
173//
174// MessageId: STATUS_WDF_TOO_FRAGMENTED
175//
176// MessageText:
177//
178// The DMA Request's MDL has more SCATTER_GATHER_ELEMENTS that DMA Object's MaximumFragments allows.
179//
180#define STATUS_WDF_TOO_FRAGMENTED ((NTSTATUS)0xC020020AL)
181
182//
183// MessageId: STATUS_WDF_NO_CALLBACK
184//
185// MessageText:
186//
187// A required Event Callback has not been registered.
188//
189#define STATUS_WDF_NO_CALLBACK ((NTSTATUS)0xC020020BL)
190
191//
192// MessageId: STATUS_WDF_INCOMPATIBLE_EXECUTION_LEVEL
193//
194// MessageText:
195//
196// The object does not support the specified WDF_EXECUTION_LEVEL.
197//
198#define STATUS_WDF_INCOMPATIBLE_EXECUTION_LEVEL ((NTSTATUS)0xC020020CL)
199
200//
201// MessageId: STATUS_WDF_PARENT_ALREADY_ASSIGNED
202//
203// MessageText:
204//
205// The object already has a parent assigned.
206//
207#define STATUS_WDF_PARENT_ALREADY_ASSIGNED ((NTSTATUS)0xC020020DL)
208
209//
210// MessageId: STATUS_WDF_PARENT_IS_SELF
211//
212// MessageText:
213//
214// The object can not be its own parent.
215//
216#define STATUS_WDF_PARENT_IS_SELF ((NTSTATUS)0xC020020EL)
217
218//
219// MessageId: STATUS_WDF_PARENT_ASSIGNMENT_NOT_ALLOWED
220//
221// MessageText:
222//
223// The object can not have a driver specified parent assignment.
224//
225#define STATUS_WDF_PARENT_ASSIGNMENT_NOT_ALLOWED ((NTSTATUS)0xC020020FL)
226
227//
228// MessageId: STATUS_WDF_SYNCHRONIZATION_SCOPE_INVALID
229//
230// MessageText:
231//
232// The object does not support the specified WDF_SYNCHRONIZATION_SCOPE.
233//
234#define STATUS_WDF_SYNCHRONIZATION_SCOPE_INVALID ((NTSTATUS)0xC0200210L)
235
236//
237// MessageId: STATUS_WDF_EXECUTION_LEVEL_INVALID
238//
239// MessageText:
240//
241// The object does not support the specified WDF_EXECUTION_LEVEL.
242//
243#define STATUS_WDF_EXECUTION_LEVEL_INVALID ((NTSTATUS)0xC0200211L)
244
245//
246// MessageId: STATUS_WDF_PARENT_NOT_SPECIFIED
247//
248// MessageText:
249//
250// A required parent object was not specified in WDF_OBJECT_ATTRIBUTES.
251//
252#define STATUS_WDF_PARENT_NOT_SPECIFIED ((NTSTATUS)0xC0200212L)
253
254#endif // _WDFSTATUS_H_