OSDN Git Service

Correct mistyped __MINGW_NOTHROW macro.
[mingw/mingw-org-wsl.git] / include / errors.h
1 /**
2  * @file errors.h
3  * Copyright 2012, 2013 MinGW.org project
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * 
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  * 
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef _ERRORS_H
25 #define _ERRORS_H
26 #pragma GCC system_header
27 #include <_mingw.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 /*--- DirectShow Reference - Constants and GUIDs - Error and Success Codes */
34 #define VFW_S_NO_MORE_ITEMS 0x00040103
35 #define VFW_S_DUPLICATE_NAME 0x0004022D
36 #define VFW_S_STATE_INTERMEDIATE 0x00040237
37 #define VFW_S_PARTIAL_RENDER 0x00040242
38 #define VFW_S_SOME_DATA_IGNORED 0x00040245
39 #define VFW_S_CONNECTIONS_DEFERRED 0x00040246
40 #define VFW_S_RESOURCE_NOT_NEEDED 0x00040250
41 #define VFW_S_MEDIA_TYPE_IGNORED 0x00040254
42 #define VFW_S_VIDEO_NOT_RENDERED 0x00040257
43 #define VFW_S_AUDIO_NOT_RENDERED 0x00040258
44 #define VFW_S_RPZA 0x0004025A
45 #define VFW_S_ESTIMATED 0x00040260
46 #define VFW_S_RESERVED 0x00040263
47 #define VFW_S_STREAM_OFF 0x00040267
48 #define VFW_S_CANT_CUE 0x00040268
49 #define VFW_S_NOPREVIEWPIN 0x0004027E
50 #define VFW_S_DVD_NON_ONE_SEQUENTIAL 0x00040280
51 #define VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE 0x0004028C
52 #define VFW_S_DVD_NOT_ACCURATE 0x0004028D
53 #define VFW_E_INVALIDMEDIATYPE 0x80040200
54 #define VFW_E_INVALIDSUBTYPE 0x80040201
55 #define VFW_E_NEED_OWNER 0x80040202
56 #define VFW_E_ENUM_OUT_OF_SYNC 0x80040203
57 #define VFW_E_ALREADY_CONNECTED 0x80040204
58 #define VFW_E_FILTER_ACTIVE 0x80040205
59 #define VFW_E_NO_TYPES 0x80040206
60 #define VFW_E_NO_ACCEPTABLE_TYPES 0x80040207
61 #define VFW_E_INVALID_DIRECTION 0x80040208
62 #define VFW_E_NOT_CONNECTED 0x80040209
63 #define VFW_E_NO_ALLOCATOR 0x8004020A
64 #define VFW_E_RUNTIME_ERROR 0x8004020B
65 #define VFW_E_BUFFER_NOTSET 0x8004020C
66 #define VFW_E_BUFFER_OVERFLOW 0x8004020D
67 #define VFW_E_BADALIGN 0x8004020E
68 #define VFW_E_ALREADY_COMMITTED 0x8004020F
69 #define VFW_E_BUFFERS_OUTSTANDING 0x80040210
70 #define VFW_E_NOT_COMMITTED 0x80040211
71 #define VFW_E_SIZENOTSET 0x80040212
72 #define VFW_E_NO_CLOCK 0x80040213
73 #define VFW_E_NO_SINK 0x80040214
74 #define VFW_E_NO_INTERFACE 0x80040215
75 #define VFW_E_NOT_FOUND 0x80040216
76 #define VFW_E_CANNOT_CONNECT 0x80040217
77 #define VFW_E_CANNOT_RENDER 0x80040218
78 #define VFW_E_CHANGING_FORMAT 0x80040219
79 #define VFW_E_NO_COLOR_KEY_SET 0x8004021A
80 #define VFW_E_NOT_OVERLAY_CONNECTION 0x8004021B
81 #define VFW_E_NOT_SAMPLE_CONNECTION 0x8004021C
82 #define VFW_E_PALETTE_SET 0x8004021D
83 #define VFW_E_COLOR_KEY_SET 0x8004021E
84 #define VFW_E_NO_COLOR_KEY_FOUND 0x8004021F
85 #define VFW_E_NO_PALETTE_AVAILABLE 0x80040220
86 #define VFW_E_NO_DISPLAY_PALETTE 0x80040221
87 #define VFW_E_TOO_MANY_COLORS 0x80040222
88 #define VFW_E_STATE_CHANGED 0x80040223
89 #define VFW_E_NOT_STOPPED 0x80040224
90 #define VFW_E_NOT_PAUSED 0x80040225
91 #define VFW_E_NOT_RUNNING 0x80040226
92 #define VFW_E_WRONG_STATE 0x80040227
93 #define VFW_E_START_TIME_AFTER_END 0x80040228
94 #define VFW_E_INVALID_RECT 0x80040229
95 #define VFW_E_TYPE_NOT_ACCEPTED 0x8004022A
96 #define VFW_E_SAMPLE_REJECTED 0x8004022B
97 #define VFW_E_SAMPLE_REJECTED_EOS 0x8004022C
98 #define VFW_E_DUPLICATE_NAME 0x8004022D
99 #define VFW_E_TIMEOUT 0x8004022E
100 #define VFW_E_INVALID_FILE_FORMAT 0x8004022F
101 #define VFW_E_ENUM_OUT_OF_RANGE 0x80040230
102 #define VFW_E_CIRCULAR_GRAPH 0x80040231
103 #define VFW_E_NOT_ALLOWED_TO_SAVE 0x80040232
104 #define VFW_E_TIME_ALREADY_PASSED 0x80040233
105 #define VFW_E_ALREADY_CANCELLED 0x80040234
106 #define VFW_E_CORRUPT_GRAPH_FILE 0x80040235
107 #define VFW_E_ADVISE_ALREADY_SET 0x80040236
108 #define VFW_E_NO_MODEX_AVAILABLE 0x80040238
109 #define VFW_E_NO_ADVISE_SET 0x80040239
110 #define VFW_E_NO_FULLSCREEN 0x8004023A
111 #define VFW_E_IN_FULLSCREEN_MODE 0x8004023B
112 #define VFW_E_UNKNOWN_FILE_TYPE 0x80040240
113 #define VFW_E_CANNOT_LOAD_SOURCE_FILTER 0x80040241
114 #define VFW_E_FILE_TOO_SHORT 0x80040243
115 #define VFW_E_INVALID_FILE_VERSION 0x80040244
116 #define VFW_E_INVALID_CLSID 0x80040247
117 #define VFW_E_INVALID_MEDIA_TYPE 0x80040248
118 #define VFW_E_SAMPLE_TIME_NOT_SET 0x80040249
119 #define VFW_E_MEDIA_TIME_NOT_SET 0x80040251
120 #define VFW_E_NO_TIME_FORMAT_SET 0x80040252
121 #define VFW_E_MONO_AUDIO_HW 0x80040253
122 #define VFW_E_NO_DECOMPRESSOR 0x80040255
123 #define VFW_E_NO_AUDIO_HARDWARE 0x80040256
124 #define VFW_E_RPZA 0x80040259
125 #define VFW_E_PROCESSOR_NOT_SUITABLE 0x8004025B
126 #define VFW_E_UNSUPPORTED_AUDIO 0x8004025C
127 #define VFW_E_UNSUPPORTED_VIDEO 0x8004025D
128 #define VFW_E_MPEG_NOT_CONSTRAINED 0x8004025E
129 #define VFW_E_NOT_IN_GRAPH 0x8004025F
130 #define VFW_E_NO_TIME_FORMAT 0x80040261
131 #define VFW_E_READ_ONLY 0x80040262
132 #define VFW_E_BUFFER_UNDERFLOW 0x80040264
133 #define VFW_E_UNSUPPORTED_STREAM 0x80040265
134 #define VFW_E_NO_TRANSPORT 0x80040266
135 #define VFW_E_BAD_VIDEOCD 0x80040269
136 #define VFW_S_NO_STOP_TIME 0x80040270
137 #define VFW_E_OUT_OF_VIDEO_MEMORY 0x80040271
138 #define VFW_E_VP_NEGOTIATION_FAILED 0x80040272
139 #define VFW_E_DDRAW_CAPS_NOT_SUITABLE 0x80040273
140 #define VFW_E_NO_VP_HARDWARE 0x80040274
141 #define VFW_E_NO_CAPTURE_HARDWARE 0x80040275
142 #define VFW_E_DVD_OPERATION_INHIBITED 0x80040276
143 #define VFW_E_DVD_INVALIDDOMAIN 0x80040277
144 #define VFW_E_DVD_NO_BUTTON 0x80040278
145 #define VFW_E_DVD_GRAPHNOTREADY 0x80040279
146 #define VFW_E_DVD_RENDERFAIL 0x8004027A
147 #define VFW_E_DVD_DECNOTENOUGH 0x8004027B
148 #define VFW_E_DDRAW_VERSION_NOT_SUITABLE 0x8004027C
149 #define VFW_E_COPYPROT_FAILED 0x8004027D
150 #define VFW_E_TIME_EXPIRED 0x8004027F
151 #define VFW_E_DVD_WRONG_SPEED 0x80040281
152 #define VFW_E_DVD_MENU_DOES_NOT_EXIST 0x80040282
153 #define VFW_E_DVD_CMD_CANCELLED 0x80040283
154 #define VFW_E_DVD_STATE_WRONG_VERSION 0x80040284
155 #define VFW_E_DVD_STATE_CORRUPT 0x80040285
156 #define VFW_E_DVD_STATE_WRONG_DISC 0x80040286
157 #define VFW_E_DVD_INCOMPATIBLE_REGION 0x80040287
158 #define VFW_E_DVD_NO_ATTRIBUTES 0x80040288
159 #define VFW_E_DVD_NO_GOUP_PGC 0x80040289
160 #define VFW_E_DVD_LOW_PARENTAL_LEVEL 0x8004028A
161 #define VFW_E_DVD_NOT_IN_KARAOKE_MODE 0x8004028B
162 #define VFW_E_FRAME_STEP_UNSUPPORTED 0x8004028E
163 #define VFW_E_DVD_STREAM_DISABLED 0x8004028F
164 #define VFW_E_DVD_TITLE_UNKNOWN 0x80040290
165 #define VFW_E_DVD_INVALID_DISC 0x80040291
166 #define VFW_E_DVD_NO_RESUME_INFORMATION 0x80040292
167 #define VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD 0x80040293
168 #define VFW_E_PIN_ALREADY_BLOCKED 0x80040294
169 #define VFW_E_CERTIFICATION_FAILURE 0x80040295
170 #define VFW_E_VMR_NOT_IN_MIXER_MODE 0x80040296
171 #define VFW_E_VMR_NO_AP_SUPPLIED 0x80040297
172 #define VFW_E_VMR_NO_DEINTERLACE_HW 0x80040298
173 #define VFW_E_VMR_NO_PROCAMP_HW 0x80040299
174 #define VFW_E_DVD_VMR9_INCOMPATIBLEDEC 0x8004029A
175 #define VFW_E_NO_COPP_HW 0x8004029B
176 #define VFW_E_BAD_KEY 0x800403F2
177 /*--- DirectShow Reference - Functions */
178 #define MAX_ERROR_TEXT_LEN 160
179 /*--- DirectShow Reference - Functions */
180 DWORD WINAPI AMGetErrorTextA(HRESULT,CHAR*,DWORD);
181 DWORD WINAPI AMGetErrorTextW(HRESULT,WCHAR*,DWORD);
182 #define AMGetErrorText __AW(AMGetErrorText)
183
184 #ifdef __cplusplus
185 }
186 #endif
187 #endif