Avionics
Dropship Simulator
dxerr.cpp
Go to the documentation of this file.
1 //--------------------------------------------------------------------------------------
2 // File: DXErr.cpp
3 //
4 // DirectX Error Library
5 //
6 // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
7 // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
8 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
9 // PARTICULAR PURPOSE.
10 //
11 // Copyright (c) Microsoft Corporation. All rights reserved.
12 //--------------------------------------------------------------------------------------
13 
14 // This version only supports UNICODE.
15 
16 #include "dxerr.h"
17 
18 #include <stdio.h>
19 #include <algorithm>
20 
21 #if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
22 #include <ddraw.h>
23 #include <d3d9.h>
24 #include <dsound.h>
25 
26 #define DIRECTINPUT_VERSION 0x800
27 #include <dinput.h>
28 #include <dinputd.h>
29 #endif
30 
31 #include <d3d10_1.h>
32 #include <d3d11_1.h>
33 
34 #if !defined(WINAPI_FAMILY) || WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
35 #include <wincodec.h>
36 #include <d2derr.h>
37 #include <dwrite.h>
38 #endif
39 
40 #define XAUDIO2_E_INVALID_CALL 0x88960001
41 #define XAUDIO2_E_XMA_DECODER_ERROR 0x88960002
42 #define XAUDIO2_E_XAPO_CREATION_FAILED 0x88960003
43 #define XAUDIO2_E_DEVICE_INVALIDATED 0x88960004
44 
45 #define XAPO_E_FORMAT_UNSUPPORTED MAKE_HRESULT(SEVERITY_ERROR, 0x897, 0x01)
46 
47 #define DXUTERR_NODIRECT3D MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0901)
48 #define DXUTERR_NOCOMPATIBLEDEVICES MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0902)
49 #define DXUTERR_MEDIANOTFOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0903)
50 #define DXUTERR_NONZEROREFCOUNT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0904)
51 #define DXUTERR_CREATINGDEVICE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0905)
52 #define DXUTERR_RESETTINGDEVICE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0906)
53 #define DXUTERR_CREATINGDEVICEOBJECTS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0907)
54 #define DXUTERR_RESETTINGDEVICEOBJECTS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0908)
55 #define DXUTERR_INCORRECTVERSION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0909)
56 #define DXUTERR_DEVICEREMOVED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x090A)
57 
58 //-----------------------------------------------------------------------------
59 #define BUFFER_SIZE 3000
60 
61 #pragma warning( disable : 6001 6221 )
62 
63 //--------------------------------------------------------------------------------------
64 #define CHK_ERR(hrchk, strOut) \
65  case hrchk: \
66  return L##strOut;
67 
68 #define CHK_ERRA(hrchk) \
69  case hrchk: \
70  return L#hrchk;
71 
72 #define HRESULT_FROM_WIN32b(x) ((HRESULT)(x) <= 0 ? ((HRESULT)(x)) : ((HRESULT) (((x) & 0x0000FFFF) | (FACILITY_WIN32 << 16) | 0x80000000)))
73 
74 #define CHK_ERR_WIN32A(hrchk) \
75  case HRESULT_FROM_WIN32b(hrchk): \
76  case hrchk: \
77  return L#hrchk;
78 
79 #define CHK_ERR_WIN32_ONLY(hrchk, strOut) \
80  case HRESULT_FROM_WIN32b(hrchk): \
81  return L##strOut;
82 
83 //-----------------------------------------------------
84 const WCHAR* WINAPI DXGetErrorStringW( _In_ HRESULT hr )
85 {
86  switch(hr)
87  {
88 // Commmented out codes are actually alises for other codes
89 
90 // -------------------------------------------------------------
91 // Common Win32 error codes
92 // -------------------------------------------------------------
93  CHK_ERRA(S_OK)
94  CHK_ERRA(S_FALSE)
95 
96  CHK_ERRA(E_UNEXPECTED)
97  CHK_ERRA(E_NOTIMPL)
98  CHK_ERRA(E_OUTOFMEMORY)
99  CHK_ERRA(E_INVALIDARG)
100  CHK_ERRA(E_NOINTERFACE)
101  CHK_ERRA(E_POINTER)
102  CHK_ERRA(E_HANDLE)
103  CHK_ERRA(E_ABORT)
104  CHK_ERRA(E_FAIL)
105  CHK_ERRA(E_ACCESSDENIED)
106  CHK_ERRA(E_PENDING)
107  CHK_ERRA(CO_E_INIT_TLS)
108  CHK_ERRA(CO_E_INIT_SHARED_ALLOCATOR)
109  CHK_ERRA(CO_E_INIT_MEMORY_ALLOCATOR)
110  CHK_ERRA(CO_E_INIT_CLASS_CACHE)
111  CHK_ERRA(CO_E_INIT_RPC_CHANNEL)
112  CHK_ERRA(CO_E_INIT_TLS_SET_CHANNEL_CONTROL)
113  CHK_ERRA(CO_E_INIT_TLS_CHANNEL_CONTROL)
114  CHK_ERRA(CO_E_INIT_UNACCEPTED_USER_ALLOCATOR)
115  CHK_ERRA(CO_E_INIT_SCM_MUTEX_EXISTS)
116  CHK_ERRA(CO_E_INIT_SCM_FILE_MAPPING_EXISTS)
117  CHK_ERRA(CO_E_INIT_SCM_MAP_VIEW_OF_FILE)
118  CHK_ERRA(CO_E_INIT_SCM_EXEC_FAILURE)
119  CHK_ERRA(CO_E_INIT_ONLY_SINGLE_THREADED)
120  CHK_ERRA(CO_E_CANT_REMOTE)
121  CHK_ERRA(CO_E_BAD_SERVER_NAME)
122  CHK_ERRA(CO_E_WRONG_SERVER_IDENTITY)
123  CHK_ERRA(CO_E_OLE1DDE_DISABLED)
124  CHK_ERRA(CO_E_RUNAS_SYNTAX)
125  CHK_ERRA(CO_E_CREATEPROCESS_FAILURE)
126  CHK_ERRA(CO_E_RUNAS_CREATEPROCESS_FAILURE)
127  CHK_ERRA(CO_E_RUNAS_LOGON_FAILURE)
128  CHK_ERRA(CO_E_LAUNCH_PERMSSION_DENIED)
129  CHK_ERRA(CO_E_START_SERVICE_FAILURE)
130  CHK_ERRA(CO_E_REMOTE_COMMUNICATION_FAILURE)
131  CHK_ERRA(CO_E_SERVER_START_TIMEOUT)
132  CHK_ERRA(CO_E_CLSREG_INCONSISTENT)
133  CHK_ERRA(CO_E_IIDREG_INCONSISTENT)
134  CHK_ERRA(CO_E_NOT_SUPPORTED)
135  CHK_ERRA(CO_E_RELOAD_DLL)
136  CHK_ERRA(CO_E_MSI_ERROR)
137  CHK_ERRA(OLE_E_FIRST)
138  CHK_ERRA(OLE_E_LAST)
139  CHK_ERRA(OLE_S_FIRST)
140  CHK_ERRA(OLE_S_LAST)
141 // CHK_ERRA(OLE_E_OLEVERB)
142  CHK_ERRA(OLE_E_ADVF)
143  CHK_ERRA(OLE_E_ENUM_NOMORE)
144  CHK_ERRA(OLE_E_ADVISENOTSUPPORTED)
145  CHK_ERRA(OLE_E_NOCONNECTION)
146  CHK_ERRA(OLE_E_NOTRUNNING)
147  CHK_ERRA(OLE_E_NOCACHE)
148  CHK_ERRA(OLE_E_BLANK)
149  CHK_ERRA(OLE_E_CLASSDIFF)
150  CHK_ERRA(OLE_E_CANT_GETMONIKER)
151  CHK_ERRA(OLE_E_CANT_BINDTOSOURCE)
152  CHK_ERRA(OLE_E_STATIC)
153  CHK_ERRA(OLE_E_PROMPTSAVECANCELLED)
154  CHK_ERRA(OLE_E_INVALIDRECT)
155  CHK_ERRA(OLE_E_WRONGCOMPOBJ)
156  CHK_ERRA(OLE_E_INVALIDHWND)
157  CHK_ERRA(OLE_E_NOT_INPLACEACTIVE)
158  CHK_ERRA(OLE_E_CANTCONVERT)
159  CHK_ERRA(OLE_E_NOSTORAGE)
160  CHK_ERRA(DV_E_FORMATETC)
161  CHK_ERRA(DV_E_DVTARGETDEVICE)
162  CHK_ERRA(DV_E_STGMEDIUM)
163  CHK_ERRA(DV_E_STATDATA)
164  CHK_ERRA(DV_E_LINDEX)
165  CHK_ERRA(DV_E_TYMED)
166  CHK_ERRA(DV_E_CLIPFORMAT)
167  CHK_ERRA(DV_E_DVASPECT)
168  CHK_ERRA(DV_E_DVTARGETDEVICE_SIZE)
169  CHK_ERRA(DV_E_NOIVIEWOBJECT)
170  CHK_ERRA(DRAGDROP_E_FIRST)
171  CHK_ERRA(DRAGDROP_E_LAST)
172  CHK_ERRA(DRAGDROP_S_FIRST)
173  CHK_ERRA(DRAGDROP_S_LAST)
174 // CHK_ERRA(DRAGDROP_E_NOTREGISTERED)
175  CHK_ERRA(DRAGDROP_E_ALREADYREGISTERED)
176  CHK_ERRA(DRAGDROP_E_INVALIDHWND)
177  CHK_ERRA(CLASSFACTORY_E_FIRST)
178  CHK_ERRA(CLASSFACTORY_E_LAST)
179  CHK_ERRA(CLASSFACTORY_S_FIRST)
180  CHK_ERRA(CLASSFACTORY_S_LAST)
181 // CHK_ERRA(CLASS_E_NOAGGREGATION)
182  CHK_ERRA(CLASS_E_CLASSNOTAVAILABLE)
183  CHK_ERRA(CLASS_E_NOTLICENSED)
184  CHK_ERRA(MARSHAL_E_FIRST)
185  CHK_ERRA(MARSHAL_E_LAST)
186  CHK_ERRA(MARSHAL_S_FIRST)
187  CHK_ERRA(MARSHAL_S_LAST)
188  CHK_ERRA(DATA_E_FIRST)
189  CHK_ERRA(DATA_E_LAST)
190  CHK_ERRA(DATA_S_FIRST)
191  CHK_ERRA(DATA_S_LAST)
192  CHK_ERRA(VIEW_E_FIRST)
193  CHK_ERRA(VIEW_E_LAST)
194  CHK_ERRA(VIEW_S_FIRST)
195  CHK_ERRA(VIEW_S_LAST)
196 // CHK_ERRA(VIEW_E_DRAW)
197  CHK_ERRA(REGDB_E_FIRST)
198  CHK_ERRA(REGDB_E_LAST)
199  CHK_ERRA(REGDB_S_FIRST)
200  CHK_ERRA(REGDB_S_LAST)
201 // CHK_ERRA(REGDB_E_READREGDB)
202  CHK_ERRA(REGDB_E_WRITEREGDB)
203  CHK_ERRA(REGDB_E_KEYMISSING)
204  CHK_ERRA(REGDB_E_INVALIDVALUE)
205  CHK_ERRA(REGDB_E_CLASSNOTREG)
206  CHK_ERRA(REGDB_E_IIDNOTREG)
207  CHK_ERRA(CAT_E_FIRST)
208  CHK_ERRA(CAT_E_LAST)
209 // CHK_ERRA(CAT_E_CATIDNOEXIST)
210 // CHK_ERRA(CAT_E_NODESCRIPTION)
211  CHK_ERRA(CS_E_FIRST)
212  CHK_ERRA(CS_E_LAST)
213 // CHK_ERRA(CS_E_PACKAGE_NOTFOUND)
214  CHK_ERRA(CS_E_NOT_DELETABLE)
215  CHK_ERRA(CS_E_CLASS_NOTFOUND)
216  CHK_ERRA(CS_E_INVALID_VERSION)
217  CHK_ERRA(CS_E_NO_CLASSSTORE)
218  CHK_ERRA(CS_E_OBJECT_NOTFOUND)
219  CHK_ERRA(CS_E_OBJECT_ALREADY_EXISTS)
220  CHK_ERRA(CS_E_INVALID_PATH)
221  CHK_ERRA(CS_E_NETWORK_ERROR)
222  CHK_ERRA(CS_E_ADMIN_LIMIT_EXCEEDED)
223  CHK_ERRA(CS_E_SCHEMA_MISMATCH)
224 // CHK_ERRA(CS_E_INTERNAL_ERROR)
225  CHK_ERRA(CACHE_E_FIRST)
226  CHK_ERRA(CACHE_E_LAST)
227  CHK_ERRA(CACHE_S_FIRST)
228  CHK_ERRA(CACHE_S_LAST)
229 // CHK_ERRA(CACHE_E_NOCACHE_UPDATED)
230  CHK_ERRA(OLEOBJ_E_FIRST)
231  CHK_ERRA(OLEOBJ_E_LAST)
232  CHK_ERRA(OLEOBJ_S_FIRST)
233  CHK_ERRA(OLEOBJ_S_LAST)
234 // CHK_ERRA(OLEOBJ_E_NOVERBS)
235  CHK_ERRA(OLEOBJ_E_INVALIDVERB)
236  CHK_ERRA(CLIENTSITE_E_FIRST)
237  CHK_ERRA(CLIENTSITE_E_LAST)
238  CHK_ERRA(CLIENTSITE_S_FIRST)
239  CHK_ERRA(CLIENTSITE_S_LAST)
240  CHK_ERRA(INPLACE_E_NOTUNDOABLE)
241  CHK_ERRA(INPLACE_E_NOTOOLSPACE)
242 // CHK_ERRA(INPLACE_E_FIRST)
243  CHK_ERRA(INPLACE_E_LAST)
244  CHK_ERRA(INPLACE_S_FIRST)
245  CHK_ERRA(INPLACE_S_LAST)
246  CHK_ERRA(ENUM_E_FIRST)
247  CHK_ERRA(ENUM_E_LAST)
248  CHK_ERRA(ENUM_S_FIRST)
249  CHK_ERRA(ENUM_S_LAST)
250  CHK_ERRA(CONVERT10_E_FIRST)
251  CHK_ERRA(CONVERT10_E_LAST)
252  CHK_ERRA(CONVERT10_S_FIRST)
253  CHK_ERRA(CONVERT10_S_LAST)
254 // CHK_ERRA(CONVERT10_E_OLESTREAM_GET)
255  CHK_ERRA(CONVERT10_E_OLESTREAM_PUT)
256  CHK_ERRA(CONVERT10_E_OLESTREAM_FMT)
257  CHK_ERRA(CONVERT10_E_OLESTREAM_BITMAP_TO_DIB)
258  CHK_ERRA(CONVERT10_E_STG_FMT)
259  CHK_ERRA(CONVERT10_E_STG_NO_STD_STREAM)
260  CHK_ERRA(CONVERT10_E_STG_DIB_TO_BITMAP)
261  CHK_ERRA(CLIPBRD_E_FIRST)
262  CHK_ERRA(CLIPBRD_E_LAST)
263  CHK_ERRA(CLIPBRD_S_FIRST)
264  CHK_ERRA(CLIPBRD_S_LAST)
265 // CHK_ERRA(CLIPBRD_E_CANT_OPEN)
266  CHK_ERRA(CLIPBRD_E_CANT_EMPTY)
267  CHK_ERRA(CLIPBRD_E_CANT_SET)
268  CHK_ERRA(CLIPBRD_E_BAD_DATA)
269  CHK_ERRA(CLIPBRD_E_CANT_CLOSE)
270  CHK_ERRA(MK_E_FIRST)
271  CHK_ERRA(MK_E_LAST)
272  CHK_ERRA(MK_S_FIRST)
273  CHK_ERRA(MK_S_LAST)
274 // CHK_ERRA(MK_E_CONNECTMANUALLY)
275  CHK_ERRA(MK_E_EXCEEDEDDEADLINE)
276  CHK_ERRA(MK_E_NEEDGENERIC)
277  CHK_ERRA(MK_E_UNAVAILABLE)
278  CHK_ERRA(MK_E_SYNTAX)
279  CHK_ERRA(MK_E_NOOBJECT)
280  CHK_ERRA(MK_E_INVALIDEXTENSION)
281  CHK_ERRA(MK_E_INTERMEDIATEINTERFACENOTSUPPORTED)
282  CHK_ERRA(MK_E_NOTBINDABLE)
283  CHK_ERRA(MK_E_NOTBOUND)
284  CHK_ERRA(MK_E_CANTOPENFILE)
285  CHK_ERRA(MK_E_MUSTBOTHERUSER)
286  CHK_ERRA(MK_E_NOINVERSE)
287  CHK_ERRA(MK_E_NOSTORAGE)
288  CHK_ERRA(MK_E_NOPREFIX)
289 // CHK_ERRA(MK_E_ENUMERATION_FAILED)
290  CHK_ERRA(CO_E_NOTINITIALIZED)
291  CHK_ERRA(CO_E_ALREADYINITIALIZED)
292  CHK_ERRA(CO_E_CANTDETERMINECLASS)
293  CHK_ERRA(CO_E_CLASSSTRING)
294  CHK_ERRA(CO_E_IIDSTRING)
295  CHK_ERRA(CO_E_APPNOTFOUND)
296  CHK_ERRA(CO_E_APPSINGLEUSE)
297  CHK_ERRA(CO_E_ERRORINAPP)
298  CHK_ERRA(CO_E_DLLNOTFOUND)
299  CHK_ERRA(CO_E_ERRORINDLL)
300  CHK_ERRA(CO_E_WRONGOSFORAPP)
301  CHK_ERRA(CO_E_OBJNOTREG)
302  CHK_ERRA(CO_E_OBJISREG)
303  CHK_ERRA(CO_E_OBJNOTCONNECTED)
304  CHK_ERRA(CO_E_APPDIDNTREG)
305  CHK_ERRA(CO_E_RELEASED)
306 // CHK_ERRA(OLE_S_USEREG)
307  CHK_ERRA(OLE_S_STATIC)
308  CHK_ERRA(OLE_S_MAC_CLIPFORMAT)
309 // CHK_ERRA(DRAGDROP_S_DROP)
310  CHK_ERRA(DRAGDROP_S_CANCEL)
311  CHK_ERRA(DRAGDROP_S_USEDEFAULTCURSORS)
312 // CHK_ERRA(DATA_S_SAMEFORMATETC)
313 // CHK_ERRA(VIEW_S_ALREADY_FROZEN)
314 // CHK_ERRA(CACHE_S_FORMATETC_NOTSUPPORTED)
315  CHK_ERRA(CACHE_S_SAMECACHE)
316  CHK_ERRA(CACHE_S_SOMECACHES_NOTUPDATED)
317 // CHK_ERRA(OLEOBJ_S_INVALIDVERB)
318  CHK_ERRA(OLEOBJ_S_CANNOT_DOVERB_NOW)
319  CHK_ERRA(OLEOBJ_S_INVALIDHWND)
320 // CHK_ERRA(INPLACE_S_TRUNCATED)
321 // CHK_ERRA(CONVERT10_S_NO_PRESENTATION)
322  CHK_ERRA(MK_S_REDUCED_TO_SELF)
323  CHK_ERRA(MK_S_ME)
324  CHK_ERRA(MK_S_HIM)
325  CHK_ERRA(MK_S_US)
326  CHK_ERRA(MK_S_MONIKERALREADYREGISTERED)
327  CHK_ERRA(CO_E_CLASS_CREATE_FAILED)
328  CHK_ERRA(CO_E_SCM_ERROR)
329  CHK_ERRA(CO_E_SCM_RPC_FAILURE)
330  CHK_ERRA(CO_E_BAD_PATH)
331  CHK_ERRA(CO_E_SERVER_EXEC_FAILURE)
332  CHK_ERRA(CO_E_OBJSRV_RPC_FAILURE)
333  CHK_ERRA(MK_E_NO_NORMALIZED)
334  CHK_ERRA(CO_E_SERVER_STOPPING)
335  CHK_ERRA(MEM_E_INVALID_ROOT)
336  CHK_ERRA(MEM_E_INVALID_LINK)
337  CHK_ERRA(MEM_E_INVALID_SIZE)
338  CHK_ERRA(CO_S_NOTALLINTERFACES)
339  CHK_ERRA(DISP_E_UNKNOWNINTERFACE)
340  CHK_ERRA(DISP_E_MEMBERNOTFOUND)
341  CHK_ERRA(DISP_E_PARAMNOTFOUND)
342  CHK_ERRA(DISP_E_TYPEMISMATCH)
343  CHK_ERRA(DISP_E_UNKNOWNNAME)
344  CHK_ERRA(DISP_E_NONAMEDARGS)
345  CHK_ERRA(DISP_E_BADVARTYPE)
346  CHK_ERRA(DISP_E_EXCEPTION)
347  CHK_ERRA(DISP_E_OVERFLOW)
348  CHK_ERRA(DISP_E_BADINDEX)
349  CHK_ERRA(DISP_E_UNKNOWNLCID)
350  CHK_ERRA(DISP_E_ARRAYISLOCKED)
351  CHK_ERRA(DISP_E_BADPARAMCOUNT)
352  CHK_ERRA(DISP_E_PARAMNOTOPTIONAL)
353  CHK_ERRA(DISP_E_BADCALLEE)
354  CHK_ERRA(DISP_E_NOTACOLLECTION)
355  CHK_ERRA(DISP_E_DIVBYZERO)
356  CHK_ERRA(DISP_E_BUFFERTOOSMALL)
357  CHK_ERRA(TYPE_E_BUFFERTOOSMALL)
358  CHK_ERRA(TYPE_E_FIELDNOTFOUND)
359  CHK_ERRA(TYPE_E_INVDATAREAD)
360  CHK_ERRA(TYPE_E_UNSUPFORMAT)
361  CHK_ERRA(TYPE_E_REGISTRYACCESS)
362  CHK_ERRA(TYPE_E_LIBNOTREGISTERED)
363  CHK_ERRA(TYPE_E_UNDEFINEDTYPE)
364  CHK_ERRA(TYPE_E_QUALIFIEDNAMEDISALLOWED)
365  CHK_ERRA(TYPE_E_INVALIDSTATE)
366  CHK_ERRA(TYPE_E_WRONGTYPEKIND)
367  CHK_ERRA(TYPE_E_ELEMENTNOTFOUND)
368  CHK_ERRA(TYPE_E_AMBIGUOUSNAME)
369  CHK_ERRA(TYPE_E_NAMECONFLICT)
370  CHK_ERRA(TYPE_E_UNKNOWNLCID)
371  CHK_ERRA(TYPE_E_DLLFUNCTIONNOTFOUND)
372  CHK_ERRA(TYPE_E_BADMODULEKIND)
373  CHK_ERRA(TYPE_E_SIZETOOBIG)
374  CHK_ERRA(TYPE_E_DUPLICATEID)
375  CHK_ERRA(TYPE_E_INVALIDID)
376  CHK_ERRA(TYPE_E_TYPEMISMATCH)
377  CHK_ERRA(TYPE_E_OUTOFBOUNDS)
378  CHK_ERRA(TYPE_E_IOERROR)
379  CHK_ERRA(TYPE_E_CANTCREATETMPFILE)
380  CHK_ERRA(TYPE_E_CANTLOADLIBRARY)
381  CHK_ERRA(TYPE_E_INCONSISTENTPROPFUNCS)
382  CHK_ERRA(TYPE_E_CIRCULARTYPE)
383  CHK_ERRA(STG_E_INVALIDFUNCTION)
384  CHK_ERRA(STG_E_FILENOTFOUND)
385  CHK_ERRA(STG_E_PATHNOTFOUND)
386  CHK_ERRA(STG_E_TOOMANYOPENFILES)
387  CHK_ERRA(STG_E_ACCESSDENIED)
388  CHK_ERRA(STG_E_INVALIDHANDLE)
389  CHK_ERRA(STG_E_INSUFFICIENTMEMORY)
390  CHK_ERRA(STG_E_INVALIDPOINTER)
391  CHK_ERRA(STG_E_NOMOREFILES)
392  CHK_ERRA(STG_E_DISKISWRITEPROTECTED)
393  CHK_ERRA(STG_E_SEEKERROR)
394  CHK_ERRA(STG_E_WRITEFAULT)
395  CHK_ERRA(STG_E_READFAULT)
396  CHK_ERRA(STG_E_SHAREVIOLATION)
397  CHK_ERRA(STG_E_LOCKVIOLATION)
398  CHK_ERRA(STG_E_FILEALREADYEXISTS)
399  CHK_ERRA(STG_E_INVALIDPARAMETER)
400  CHK_ERRA(STG_E_MEDIUMFULL)
401  CHK_ERRA(STG_E_PROPSETMISMATCHED)
402  CHK_ERRA(STG_E_ABNORMALAPIEXIT)
403  CHK_ERRA(STG_E_INVALIDHEADER)
404  CHK_ERRA(STG_E_INVALIDNAME)
405  CHK_ERRA(STG_E_UNKNOWN)
406  CHK_ERRA(STG_E_UNIMPLEMENTEDFUNCTION)
407  CHK_ERRA(STG_E_INVALIDFLAG)
408  CHK_ERRA(STG_E_INUSE)
409  CHK_ERRA(STG_E_NOTCURRENT)
410  CHK_ERRA(STG_E_REVERTED)
411  CHK_ERRA(STG_E_CANTSAVE)
412  CHK_ERRA(STG_E_OLDFORMAT)
413  CHK_ERRA(STG_E_OLDDLL)
414  CHK_ERRA(STG_E_SHAREREQUIRED)
415  CHK_ERRA(STG_E_NOTFILEBASEDSTORAGE)
416  CHK_ERRA(STG_E_EXTANTMARSHALLINGS)
417  CHK_ERRA(STG_E_DOCFILECORRUPT)
418  CHK_ERRA(STG_E_BADBASEADDRESS)
419  CHK_ERRA(STG_E_DOCFILETOOLARGE)
420  CHK_ERRA(STG_E_NOTSIMPLEFORMAT)
421  CHK_ERRA(STG_E_INCOMPLETE)
422  CHK_ERRA(STG_E_TERMINATED)
423  CHK_ERRA(STG_S_CONVERTED)
424  CHK_ERRA(STG_S_BLOCK)
425  CHK_ERRA(STG_S_RETRYNOW)
426  CHK_ERRA(STG_S_MONITORING)
427  CHK_ERRA(STG_S_MULTIPLEOPENS)
428  CHK_ERRA(STG_S_CONSOLIDATIONFAILED)
429  CHK_ERRA(STG_S_CANNOTCONSOLIDATE)
430  CHK_ERRA(RPC_E_CALL_REJECTED)
431  CHK_ERRA(RPC_E_CALL_CANCELED)
432  CHK_ERRA(RPC_E_CANTPOST_INSENDCALL)
433  CHK_ERRA(RPC_E_CANTCALLOUT_INASYNCCALL)
434  CHK_ERRA(RPC_E_CANTCALLOUT_INEXTERNALCALL)
435  CHK_ERRA(RPC_E_CONNECTION_TERMINATED)
436  CHK_ERRA(RPC_E_SERVER_DIED)
437  CHK_ERRA(RPC_E_CLIENT_DIED)
438  CHK_ERRA(RPC_E_INVALID_DATAPACKET)
439  CHK_ERRA(RPC_E_CANTTRANSMIT_CALL)
440  CHK_ERRA(RPC_E_CLIENT_CANTMARSHAL_DATA)
441  CHK_ERRA(RPC_E_CLIENT_CANTUNMARSHAL_DATA)
442  CHK_ERRA(RPC_E_SERVER_CANTMARSHAL_DATA)
443  CHK_ERRA(RPC_E_SERVER_CANTUNMARSHAL_DATA)
444  CHK_ERRA(RPC_E_INVALID_DATA)
445  CHK_ERRA(RPC_E_INVALID_PARAMETER)
446  CHK_ERRA(RPC_E_CANTCALLOUT_AGAIN)
447  CHK_ERRA(RPC_E_SERVER_DIED_DNE)
448  CHK_ERRA(RPC_E_SYS_CALL_FAILED)
449  CHK_ERRA(RPC_E_OUT_OF_RESOURCES)
450  CHK_ERRA(RPC_E_ATTEMPTED_MULTITHREAD)
451  CHK_ERRA(RPC_E_NOT_REGISTERED)
452  CHK_ERRA(RPC_E_FAULT)
453  CHK_ERRA(RPC_E_SERVERFAULT)
454  CHK_ERRA(RPC_E_CHANGED_MODE)
455  CHK_ERRA(RPC_E_INVALIDMETHOD)
456  CHK_ERRA(RPC_E_DISCONNECTED)
457  CHK_ERRA(RPC_E_RETRY)
458  CHK_ERRA(RPC_E_SERVERCALL_RETRYLATER)
459  CHK_ERRA(RPC_E_SERVERCALL_REJECTED)
460  CHK_ERRA(RPC_E_INVALID_CALLDATA)
461  CHK_ERRA(RPC_E_CANTCALLOUT_ININPUTSYNCCALL)
462  CHK_ERRA(RPC_E_WRONG_THREAD)
463  CHK_ERRA(RPC_E_THREAD_NOT_INIT)
464  CHK_ERRA(RPC_E_VERSION_MISMATCH)
465  CHK_ERRA(RPC_E_INVALID_HEADER)
466  CHK_ERRA(RPC_E_INVALID_EXTENSION)
467  CHK_ERRA(RPC_E_INVALID_IPID)
468  CHK_ERRA(RPC_E_INVALID_OBJECT)
469  CHK_ERRA(RPC_S_CALLPENDING)
470  CHK_ERRA(RPC_S_WAITONTIMER)
471  CHK_ERRA(RPC_E_CALL_COMPLETE)
472  CHK_ERRA(RPC_E_UNSECURE_CALL)
473  CHK_ERRA(RPC_E_TOO_LATE)
474  CHK_ERRA(RPC_E_NO_GOOD_SECURITY_PACKAGES)
475  CHK_ERRA(RPC_E_ACCESS_DENIED)
476  CHK_ERRA(RPC_E_REMOTE_DISABLED)
477  CHK_ERRA(RPC_E_INVALID_OBJREF)
478  CHK_ERRA(RPC_E_NO_CONTEXT)
479  CHK_ERRA(RPC_E_TIMEOUT)
480  CHK_ERRA(RPC_E_NO_SYNC)
481  CHK_ERRA(RPC_E_FULLSIC_REQUIRED)
482  CHK_ERRA(RPC_E_INVALID_STD_NAME)
483  CHK_ERRA(CO_E_FAILEDTOIMPERSONATE)
484  CHK_ERRA(CO_E_FAILEDTOGETSECCTX)
485  CHK_ERRA(CO_E_FAILEDTOOPENTHREADTOKEN)
486  CHK_ERRA(CO_E_FAILEDTOGETTOKENINFO)
487  CHK_ERRA(CO_E_TRUSTEEDOESNTMATCHCLIENT)
488  CHK_ERRA(CO_E_FAILEDTOQUERYCLIENTBLANKET)
489  CHK_ERRA(CO_E_FAILEDTOSETDACL)
490  CHK_ERRA(CO_E_ACCESSCHECKFAILED)
491  CHK_ERRA(CO_E_NETACCESSAPIFAILED)
492  CHK_ERRA(CO_E_WRONGTRUSTEENAMESYNTAX)
493  CHK_ERRA(CO_E_INVALIDSID)
494  CHK_ERRA(CO_E_CONVERSIONFAILED)
495  CHK_ERRA(CO_E_NOMATCHINGSIDFOUND)
496  CHK_ERRA(CO_E_LOOKUPACCSIDFAILED)
497  CHK_ERRA(CO_E_NOMATCHINGNAMEFOUND)
498  CHK_ERRA(CO_E_LOOKUPACCNAMEFAILED)
499  CHK_ERRA(CO_E_SETSERLHNDLFAILED)
500  CHK_ERRA(CO_E_FAILEDTOGETWINDIR)
501  CHK_ERRA(CO_E_PATHTOOLONG)
502  CHK_ERRA(CO_E_FAILEDTOGENUUID)
503  CHK_ERRA(CO_E_FAILEDTOCREATEFILE)
504  CHK_ERRA(CO_E_FAILEDTOCLOSEHANDLE)
505  CHK_ERRA(CO_E_EXCEEDSYSACLLIMIT)
506  CHK_ERRA(CO_E_ACESINWRONGORDER)
507  CHK_ERRA(CO_E_INCOMPATIBLESTREAMVERSION)
508  CHK_ERRA(CO_E_FAILEDTOOPENPROCESSTOKEN)
509  CHK_ERRA(CO_E_DECODEFAILED)
510  CHK_ERRA(CO_E_ACNOTINITIALIZED)
511  CHK_ERRA(RPC_E_UNEXPECTED)
512  CHK_ERRA(NTE_BAD_UID)
513  CHK_ERRA(NTE_BAD_HASH)
514  CHK_ERRA(NTE_BAD_KEY)
515  CHK_ERRA(NTE_BAD_LEN)
516  CHK_ERRA(NTE_BAD_DATA)
517  CHK_ERRA(NTE_BAD_SIGNATURE)
518  CHK_ERRA(NTE_BAD_VER)
519  CHK_ERRA(NTE_BAD_ALGID)
520  CHK_ERRA(NTE_BAD_FLAGS)
521  CHK_ERRA(NTE_BAD_TYPE)
522  CHK_ERRA(NTE_BAD_KEY_STATE)
523  CHK_ERRA(NTE_BAD_HASH_STATE)
524  CHK_ERRA(NTE_NO_KEY)
525  CHK_ERRA(NTE_NO_MEMORY)
526  CHK_ERRA(NTE_EXISTS)
527  CHK_ERRA(NTE_PERM)
528  CHK_ERRA(NTE_NOT_FOUND)
529  CHK_ERRA(NTE_DOUBLE_ENCRYPT)
530  CHK_ERRA(NTE_BAD_PROVIDER)
531  CHK_ERRA(NTE_BAD_PROV_TYPE)
532  CHK_ERRA(NTE_BAD_PUBLIC_KEY)
533  CHK_ERRA(NTE_BAD_KEYSET)
534  CHK_ERRA(NTE_PROV_TYPE_NOT_DEF)
535  CHK_ERRA(NTE_PROV_TYPE_ENTRY_BAD)
536  CHK_ERRA(NTE_KEYSET_NOT_DEF)
537  CHK_ERRA(NTE_KEYSET_ENTRY_BAD)
538  CHK_ERRA(NTE_PROV_TYPE_NO_MATCH)
539  CHK_ERRA(NTE_SIGNATURE_FILE_BAD)
540  CHK_ERRA(NTE_PROVIDER_DLL_FAIL)
541  CHK_ERRA(NTE_PROV_DLL_NOT_FOUND)
542  CHK_ERRA(NTE_BAD_KEYSET_PARAM)
543  CHK_ERRA(NTE_FAIL)
544  CHK_ERRA(NTE_SYS_ERR)
545  CHK_ERRA(NTE_SILENT_CONTEXT)
546  CHK_ERRA(NTE_TOKEN_KEYSET_STORAGE_FULL)
547  CHK_ERRA(CRYPT_E_MSG_ERROR)
548  CHK_ERRA(CRYPT_E_UNKNOWN_ALGO)
549  CHK_ERRA(CRYPT_E_OID_FORMAT)
550  CHK_ERRA(CRYPT_E_INVALID_MSG_TYPE)
551  CHK_ERRA(CRYPT_E_UNEXPECTED_ENCODING)
552  CHK_ERRA(CRYPT_E_AUTH_ATTR_MISSING)
553  CHK_ERRA(CRYPT_E_HASH_VALUE)
554  CHK_ERRA(CRYPT_E_INVALID_INDEX)
555  CHK_ERRA(CRYPT_E_ALREADY_DECRYPTED)
556  CHK_ERRA(CRYPT_E_NOT_DECRYPTED)
557  CHK_ERRA(CRYPT_E_RECIPIENT_NOT_FOUND)
558  CHK_ERRA(CRYPT_E_CONTROL_TYPE)
559  CHK_ERRA(CRYPT_E_ISSUER_SERIALNUMBER)
560  CHK_ERRA(CRYPT_E_SIGNER_NOT_FOUND)
561  CHK_ERRA(CRYPT_E_ATTRIBUTES_MISSING)
562  CHK_ERRA(CRYPT_E_STREAM_MSG_NOT_READY)
563  CHK_ERRA(CRYPT_E_STREAM_INSUFFICIENT_DATA)
564  CHK_ERRA(CRYPT_E_BAD_LEN)
565  CHK_ERRA(CRYPT_E_BAD_ENCODE)
566  CHK_ERRA(CRYPT_E_FILE_ERROR)
567  CHK_ERRA(CRYPT_E_NOT_FOUND)
568  CHK_ERRA(CRYPT_E_EXISTS)
569  CHK_ERRA(CRYPT_E_NO_PROVIDER)
570  CHK_ERRA(CRYPT_E_SELF_SIGNED)
571  CHK_ERRA(CRYPT_E_DELETED_PREV)
572  CHK_ERRA(CRYPT_E_NO_MATCH)
573  CHK_ERRA(CRYPT_E_UNEXPECTED_MSG_TYPE)
574  CHK_ERRA(CRYPT_E_NO_KEY_PROPERTY)
575  CHK_ERRA(CRYPT_E_NO_DECRYPT_CERT)
576  CHK_ERRA(CRYPT_E_BAD_MSG)
577  CHK_ERRA(CRYPT_E_NO_SIGNER)
578  CHK_ERRA(CRYPT_E_PENDING_CLOSE)
579  CHK_ERRA(CRYPT_E_REVOKED)
580  CHK_ERRA(CRYPT_E_NO_REVOCATION_DLL)
581  CHK_ERRA(CRYPT_E_NO_REVOCATION_CHECK)
582  CHK_ERRA(CRYPT_E_REVOCATION_OFFLINE)
583  CHK_ERRA(CRYPT_E_NOT_IN_REVOCATION_DATABASE)
584  CHK_ERRA(CRYPT_E_INVALID_NUMERIC_STRING)
585  CHK_ERRA(CRYPT_E_INVALID_PRINTABLE_STRING)
586  CHK_ERRA(CRYPT_E_INVALID_IA5_STRING)
587  CHK_ERRA(CRYPT_E_INVALID_X500_STRING)
588  CHK_ERRA(CRYPT_E_NOT_CHAR_STRING)
589  CHK_ERRA(CRYPT_E_FILERESIZED)
590  CHK_ERRA(CRYPT_E_SECURITY_SETTINGS)
591  CHK_ERRA(CRYPT_E_NO_VERIFY_USAGE_DLL)
592  CHK_ERRA(CRYPT_E_NO_VERIFY_USAGE_CHECK)
593  CHK_ERRA(CRYPT_E_VERIFY_USAGE_OFFLINE)
594  CHK_ERRA(CRYPT_E_NOT_IN_CTL)
595  CHK_ERRA(CRYPT_E_NO_TRUSTED_SIGNER)
596  CHK_ERRA(CRYPT_E_OSS_ERROR)
597  CHK_ERRA(OSS_MORE_BUF)
598  CHK_ERRA(OSS_NEGATIVE_UINTEGER)
599  CHK_ERRA(OSS_PDU_RANGE)
600  CHK_ERRA(OSS_MORE_INPUT)
601  CHK_ERRA(OSS_DATA_ERROR)
602  CHK_ERRA(OSS_BAD_ARG)
603  CHK_ERRA(OSS_BAD_VERSION)
604  CHK_ERRA(OSS_OUT_MEMORY)
605  CHK_ERRA(OSS_PDU_MISMATCH)
606  CHK_ERRA(OSS_LIMITED)
607  CHK_ERRA(OSS_BAD_PTR)
608  CHK_ERRA(OSS_BAD_TIME)
609  CHK_ERRA(OSS_INDEFINITE_NOT_SUPPORTED)
610  CHK_ERRA(OSS_MEM_ERROR)
611  CHK_ERRA(OSS_BAD_TABLE)
612  CHK_ERRA(OSS_TOO_LONG)
613  CHK_ERRA(OSS_CONSTRAINT_VIOLATED)
614  CHK_ERRA(OSS_FATAL_ERROR)
615  CHK_ERRA(OSS_ACCESS_SERIALIZATION_ERROR)
616  CHK_ERRA(OSS_NULL_TBL)
617  CHK_ERRA(OSS_NULL_FCN)
618  CHK_ERRA(OSS_BAD_ENCRULES)
619  CHK_ERRA(OSS_UNAVAIL_ENCRULES)
620  CHK_ERRA(OSS_CANT_OPEN_TRACE_WINDOW)
621  CHK_ERRA(OSS_UNIMPLEMENTED)
622  CHK_ERRA(OSS_OID_DLL_NOT_LINKED)
623  CHK_ERRA(OSS_CANT_OPEN_TRACE_FILE)
624  CHK_ERRA(OSS_TRACE_FILE_ALREADY_OPEN)
625  CHK_ERRA(OSS_TABLE_MISMATCH)
626  CHK_ERRA(OSS_TYPE_NOT_SUPPORTED)
627  CHK_ERRA(OSS_REAL_DLL_NOT_LINKED)
628  CHK_ERRA(OSS_REAL_CODE_NOT_LINKED)
629  CHK_ERRA(OSS_OUT_OF_RANGE)
630  CHK_ERRA(OSS_COPIER_DLL_NOT_LINKED)
631  CHK_ERRA(OSS_CONSTRAINT_DLL_NOT_LINKED)
632  CHK_ERRA(OSS_COMPARATOR_DLL_NOT_LINKED)
633  CHK_ERRA(OSS_COMPARATOR_CODE_NOT_LINKED)
634  CHK_ERRA(OSS_MEM_MGR_DLL_NOT_LINKED)
635  CHK_ERRA(OSS_PDV_DLL_NOT_LINKED)
636  CHK_ERRA(OSS_PDV_CODE_NOT_LINKED)
637  CHK_ERRA(OSS_API_DLL_NOT_LINKED)
638  CHK_ERRA(OSS_BERDER_DLL_NOT_LINKED)
639  CHK_ERRA(OSS_PER_DLL_NOT_LINKED)
640  CHK_ERRA(OSS_OPEN_TYPE_ERROR)
641  CHK_ERRA(OSS_MUTEX_NOT_CREATED)
642  CHK_ERRA(OSS_CANT_CLOSE_TRACE_FILE)
643  CHK_ERRA(CERTSRV_E_BAD_REQUESTSUBJECT)
644  CHK_ERRA(CERTSRV_E_NO_REQUEST)
645  CHK_ERRA(CERTSRV_E_BAD_REQUESTSTATUS)
646  CHK_ERRA(CERTSRV_E_PROPERTY_EMPTY)
647  CHK_ERRA(CERTSRV_E_INVALID_CA_CERTIFICATE)
648  CHK_ERRA(CERTSRV_E_UNSUPPORTED_CERT_TYPE)
649  CHK_ERRA(CERTSRV_E_NO_CERT_TYPE)
650  CHK_ERRA(TRUST_E_SYSTEM_ERROR)
651  CHK_ERRA(TRUST_E_NO_SIGNER_CERT)
652  CHK_ERRA(TRUST_E_COUNTER_SIGNER)
653  CHK_ERRA(TRUST_E_CERT_SIGNATURE)
654  CHK_ERRA(TRUST_E_TIME_STAMP)
655  CHK_ERRA(TRUST_E_BAD_DIGEST)
656  CHK_ERRA(TRUST_E_BASIC_CONSTRAINTS)
657  CHK_ERRA(TRUST_E_FINANCIAL_CRITERIA)
658 // CHK_ERRA(NTE_OP_OK)
659  CHK_ERRA(TRUST_E_PROVIDER_UNKNOWN)
660  CHK_ERRA(TRUST_E_ACTION_UNKNOWN)
661  CHK_ERRA(TRUST_E_SUBJECT_FORM_UNKNOWN)
662  CHK_ERRA(TRUST_E_SUBJECT_NOT_TRUSTED)
663  CHK_ERRA(DIGSIG_E_ENCODE)
664  CHK_ERRA(DIGSIG_E_DECODE)
665  CHK_ERRA(DIGSIG_E_EXTENSIBILITY)
666  CHK_ERRA(DIGSIG_E_CRYPTO)
667  CHK_ERRA(PERSIST_E_SIZEDEFINITE)
668  CHK_ERRA(PERSIST_E_SIZEINDEFINITE)
669  CHK_ERRA(PERSIST_E_NOTSELFSIZING)
670  CHK_ERRA(TRUST_E_NOSIGNATURE)
671  CHK_ERRA(CERT_E_EXPIRED)
672  CHK_ERRA(CERT_E_VALIDITYPERIODNESTING)
673  CHK_ERRA(CERT_E_ROLE)
674  CHK_ERRA(CERT_E_PATHLENCONST)
675  CHK_ERRA(CERT_E_CRITICAL)
676  CHK_ERRA(CERT_E_PURPOSE)
677  CHK_ERRA(CERT_E_ISSUERCHAINING)
678  CHK_ERRA(CERT_E_MALFORMED)
679  CHK_ERRA(CERT_E_UNTRUSTEDROOT)
680  CHK_ERRA(CERT_E_CHAINING)
681  CHK_ERRA(TRUST_E_FAIL)
682  CHK_ERRA(CERT_E_REVOKED)
683  CHK_ERRA(CERT_E_UNTRUSTEDTESTROOT)
684  CHK_ERRA(CERT_E_REVOCATION_FAILURE)
685  CHK_ERRA(CERT_E_CN_NO_MATCH)
686  CHK_ERRA(CERT_E_WRONG_USAGE)
687  CHK_ERRA(SPAPI_E_EXPECTED_SECTION_NAME)
688  CHK_ERRA(SPAPI_E_BAD_SECTION_NAME_LINE)
689  CHK_ERRA(SPAPI_E_SECTION_NAME_TOO_LONG)
690  CHK_ERRA(SPAPI_E_GENERAL_SYNTAX)
691  CHK_ERRA(SPAPI_E_WRONG_INF_STYLE)
692  CHK_ERRA(SPAPI_E_SECTION_NOT_FOUND)
693  CHK_ERRA(SPAPI_E_LINE_NOT_FOUND)
694  CHK_ERRA(SPAPI_E_NO_BACKUP)
695  CHK_ERRA(SPAPI_E_NO_ASSOCIATED_CLASS)
696  CHK_ERRA(SPAPI_E_CLASS_MISMATCH)
697  CHK_ERRA(SPAPI_E_DUPLICATE_FOUND)
698  CHK_ERRA(SPAPI_E_NO_DRIVER_SELECTED)
699  CHK_ERRA(SPAPI_E_KEY_DOES_NOT_EXIST)
700  CHK_ERRA(SPAPI_E_INVALID_DEVINST_NAME)
701  CHK_ERRA(SPAPI_E_INVALID_CLASS)
702  CHK_ERRA(SPAPI_E_DEVINST_ALREADY_EXISTS)
703  CHK_ERRA(SPAPI_E_DEVINFO_NOT_REGISTERED)
704  CHK_ERRA(SPAPI_E_INVALID_REG_PROPERTY)
705  CHK_ERRA(SPAPI_E_NO_INF)
706  CHK_ERRA(SPAPI_E_NO_SUCH_DEVINST)
707  CHK_ERRA(SPAPI_E_CANT_LOAD_CLASS_ICON)
708  CHK_ERRA(SPAPI_E_INVALID_CLASS_INSTALLER)
709  CHK_ERRA(SPAPI_E_DI_DO_DEFAULT)
710  CHK_ERRA(SPAPI_E_DI_NOFILECOPY)
711  CHK_ERRA(SPAPI_E_INVALID_HWPROFILE)
712  CHK_ERRA(SPAPI_E_NO_DEVICE_SELECTED)
713  CHK_ERRA(SPAPI_E_DEVINFO_LIST_LOCKED)
714  CHK_ERRA(SPAPI_E_DEVINFO_DATA_LOCKED)
715  CHK_ERRA(SPAPI_E_DI_BAD_PATH)
716  CHK_ERRA(SPAPI_E_NO_CLASSINSTALL_PARAMS)
717  CHK_ERRA(SPAPI_E_FILEQUEUE_LOCKED)
718  CHK_ERRA(SPAPI_E_BAD_SERVICE_INSTALLSECT)
719  CHK_ERRA(SPAPI_E_NO_CLASS_DRIVER_LIST)
720  CHK_ERRA(SPAPI_E_NO_ASSOCIATED_SERVICE)
721  CHK_ERRA(SPAPI_E_NO_DEFAULT_DEVICE_INTERFACE)
722  CHK_ERRA(SPAPI_E_DEVICE_INTERFACE_ACTIVE)
723  CHK_ERRA(SPAPI_E_DEVICE_INTERFACE_REMOVED)
724  CHK_ERRA(SPAPI_E_BAD_INTERFACE_INSTALLSECT)
725  CHK_ERRA(SPAPI_E_NO_SUCH_INTERFACE_CLASS)
726  CHK_ERRA(SPAPI_E_INVALID_REFERENCE_STRING)
727  CHK_ERRA(SPAPI_E_INVALID_MACHINENAME)
728  CHK_ERRA(SPAPI_E_REMOTE_COMM_FAILURE)
729  CHK_ERRA(SPAPI_E_MACHINE_UNAVAILABLE)
730  CHK_ERRA(SPAPI_E_NO_CONFIGMGR_SERVICES)
731  CHK_ERRA(SPAPI_E_INVALID_PROPPAGE_PROVIDER)
732  CHK_ERRA(SPAPI_E_NO_SUCH_DEVICE_INTERFACE)
733  CHK_ERRA(SPAPI_E_DI_POSTPROCESSING_REQUIRED)
734  CHK_ERRA(SPAPI_E_INVALID_COINSTALLER)
735  CHK_ERRA(SPAPI_E_NO_COMPAT_DRIVERS)
736  CHK_ERRA(SPAPI_E_NO_DEVICE_ICON)
737  CHK_ERRA(SPAPI_E_INVALID_INF_LOGCONFIG)
738  CHK_ERRA(SPAPI_E_DI_DONT_INSTALL)
739  CHK_ERRA(SPAPI_E_INVALID_FILTER_DRIVER)
740  CHK_ERRA(SPAPI_E_NON_WINDOWS_NT_DRIVER)
741  CHK_ERRA(SPAPI_E_NON_WINDOWS_DRIVER)
742  CHK_ERRA(SPAPI_E_NO_CATALOG_FOR_OEM_INF)
743  CHK_ERRA(SPAPI_E_DEVINSTALL_QUEUE_NONNATIVE)
744  CHK_ERRA(SPAPI_E_ERROR_NOT_INSTALLED)
745 // CHK_ERRA(SCARD_S_SUCCESS)
746  CHK_ERRA(SCARD_F_INTERNAL_ERROR)
747  CHK_ERRA(SCARD_E_CANCELLED)
748  CHK_ERRA(SCARD_E_INVALID_HANDLE)
749  CHK_ERRA(SCARD_E_INVALID_PARAMETER)
750  CHK_ERRA(SCARD_E_INVALID_TARGET)
751  CHK_ERRA(SCARD_E_NO_MEMORY)
752  CHK_ERRA(SCARD_F_WAITED_TOO_LONG)
753  CHK_ERRA(SCARD_E_INSUFFICIENT_BUFFER)
754  CHK_ERRA(SCARD_E_UNKNOWN_READER)
755  CHK_ERRA(SCARD_E_TIMEOUT)
756  CHK_ERRA(SCARD_E_SHARING_VIOLATION)
757  CHK_ERRA(SCARD_E_NO_SMARTCARD)
758  CHK_ERRA(SCARD_E_UNKNOWN_CARD)
759  CHK_ERRA(SCARD_E_CANT_DISPOSE)
760  CHK_ERRA(SCARD_E_PROTO_MISMATCH)
761  CHK_ERRA(SCARD_E_NOT_READY)
762  CHK_ERRA(SCARD_E_INVALID_VALUE)
763  CHK_ERRA(SCARD_E_SYSTEM_CANCELLED)
764  CHK_ERRA(SCARD_F_COMM_ERROR)
765  CHK_ERRA(SCARD_F_UNKNOWN_ERROR)
766  CHK_ERRA(SCARD_E_INVALID_ATR)
767  CHK_ERRA(SCARD_E_NOT_TRANSACTED)
768  CHK_ERRA(SCARD_E_READER_UNAVAILABLE)
769  CHK_ERRA(SCARD_P_SHUTDOWN)
770  CHK_ERRA(SCARD_E_PCI_TOO_SMALL)
771  CHK_ERRA(SCARD_E_READER_UNSUPPORTED)
772  CHK_ERRA(SCARD_E_DUPLICATE_READER)
773  CHK_ERRA(SCARD_E_CARD_UNSUPPORTED)
774  CHK_ERRA(SCARD_E_NO_SERVICE)
775  CHK_ERRA(SCARD_E_SERVICE_STOPPED)
776  CHK_ERRA(SCARD_E_UNEXPECTED)
777  CHK_ERRA(SCARD_E_ICC_INSTALLATION)
778  CHK_ERRA(SCARD_E_ICC_CREATEORDER)
779  CHK_ERRA(SCARD_E_UNSUPPORTED_FEATURE)
780  CHK_ERRA(SCARD_E_DIR_NOT_FOUND)
781  CHK_ERRA(SCARD_E_FILE_NOT_FOUND)
782  CHK_ERRA(SCARD_E_NO_DIR)
783  CHK_ERRA(SCARD_E_NO_FILE)
784  CHK_ERRA(SCARD_E_NO_ACCESS)
785  CHK_ERRA(SCARD_E_WRITE_TOO_MANY)
786  CHK_ERRA(SCARD_E_BAD_SEEK)
787  CHK_ERRA(SCARD_E_INVALID_CHV)
788  CHK_ERRA(SCARD_E_UNKNOWN_RES_MNG)
789  CHK_ERRA(SCARD_E_NO_SUCH_CERTIFICATE)
790  CHK_ERRA(SCARD_E_CERTIFICATE_UNAVAILABLE)
791  CHK_ERRA(SCARD_E_NO_READERS_AVAILABLE)
792  CHK_ERRA(SCARD_E_COMM_DATA_LOST)
793  CHK_ERRA(SCARD_W_UNSUPPORTED_CARD)
794  CHK_ERRA(SCARD_W_UNRESPONSIVE_CARD)
795  CHK_ERRA(SCARD_W_UNPOWERED_CARD)
796  CHK_ERRA(SCARD_W_RESET_CARD)
797  CHK_ERRA(SCARD_W_REMOVED_CARD)
798  CHK_ERRA(SCARD_W_SECURITY_VIOLATION)
799  CHK_ERRA(SCARD_W_WRONG_CHV)
800  CHK_ERRA(SCARD_W_CHV_BLOCKED)
801  CHK_ERRA(SCARD_W_EOF)
802  CHK_ERRA(SCARD_W_CANCELLED_BY_USER)
803  CHK_ERR_WIN32_ONLY(ERROR_INVALID_FUNCTION, "ERROR_INVALID_FUNCTION")
804  CHK_ERR_WIN32A(ERROR_FILE_NOT_FOUND)
805  CHK_ERR_WIN32A(ERROR_PATH_NOT_FOUND)
806  CHK_ERR_WIN32A(ERROR_TOO_MANY_OPEN_FILES)
807  CHK_ERRA(ERROR_ACCESS_DENIED)
808  CHK_ERRA(ERROR_INVALID_HANDLE)
809  CHK_ERR_WIN32A(ERROR_ARENA_TRASHED)
810  CHK_ERR_WIN32A(ERROR_NOT_ENOUGH_MEMORY)
811  CHK_ERR_WIN32A(ERROR_INVALID_BLOCK)
812  CHK_ERR_WIN32A(ERROR_BAD_ENVIRONMENT)
813  CHK_ERR_WIN32A(ERROR_BAD_FORMAT)
814  CHK_ERR_WIN32A(ERROR_INVALID_ACCESS)
815  CHK_ERR_WIN32A(ERROR_INVALID_DATA)
816  CHK_ERRA(ERROR_OUTOFMEMORY)
817  CHK_ERR_WIN32A(ERROR_INVALID_DRIVE)
818  CHK_ERR_WIN32A(ERROR_CURRENT_DIRECTORY)
819  CHK_ERR_WIN32A(ERROR_NOT_SAME_DEVICE)
820  CHK_ERR_WIN32A(ERROR_NO_MORE_FILES)
821  CHK_ERR_WIN32A(ERROR_WRITE_PROTECT)
822  CHK_ERR_WIN32A(ERROR_BAD_UNIT)
823  CHK_ERR_WIN32A(ERROR_NOT_READY)
824  CHK_ERR_WIN32A(ERROR_BAD_COMMAND)
825  CHK_ERR_WIN32A(ERROR_CRC)
826  CHK_ERR_WIN32A(ERROR_BAD_LENGTH)
827  CHK_ERR_WIN32A(ERROR_SEEK)
828  CHK_ERR_WIN32A(ERROR_NOT_DOS_DISK)
829  CHK_ERR_WIN32A(ERROR_SECTOR_NOT_FOUND)
830  CHK_ERR_WIN32A(ERROR_OUT_OF_PAPER)
831  CHK_ERR_WIN32A(ERROR_WRITE_FAULT)
832  CHK_ERR_WIN32A(ERROR_READ_FAULT)
833  CHK_ERR_WIN32A(ERROR_GEN_FAILURE)
834  CHK_ERR_WIN32A(ERROR_SHARING_VIOLATION)
835  CHK_ERR_WIN32A(ERROR_LOCK_VIOLATION)
836  CHK_ERR_WIN32A(ERROR_WRONG_DISK)
837  CHK_ERR_WIN32A(ERROR_SHARING_BUFFER_EXCEEDED)
838  CHK_ERR_WIN32A(ERROR_HANDLE_EOF)
839  CHK_ERR_WIN32A(ERROR_HANDLE_DISK_FULL)
840  CHK_ERR_WIN32A(ERROR_NOT_SUPPORTED)
841  CHK_ERR_WIN32A(ERROR_REM_NOT_LIST)
842  CHK_ERR_WIN32A(ERROR_DUP_NAME)
843  CHK_ERR_WIN32A(ERROR_BAD_NETPATH)
844  CHK_ERR_WIN32A(ERROR_NETWORK_BUSY)
845  CHK_ERR_WIN32A(ERROR_DEV_NOT_EXIST)
846  CHK_ERR_WIN32A(ERROR_TOO_MANY_CMDS)
847  CHK_ERR_WIN32A(ERROR_ADAP_HDW_ERR)
848  CHK_ERR_WIN32A(ERROR_BAD_NET_RESP)
849  CHK_ERR_WIN32A(ERROR_UNEXP_NET_ERR)
850  CHK_ERR_WIN32A(ERROR_BAD_REM_ADAP)
851  CHK_ERR_WIN32A(ERROR_PRINTQ_FULL)
852  CHK_ERR_WIN32A(ERROR_NO_SPOOL_SPACE)
853  CHK_ERR_WIN32A(ERROR_PRINT_CANCELLED)
854  CHK_ERR_WIN32A(ERROR_NETNAME_DELETED)
855  CHK_ERR_WIN32A(ERROR_NETWORK_ACCESS_DENIED)
856  CHK_ERR_WIN32A(ERROR_BAD_DEV_TYPE)
857  CHK_ERR_WIN32A(ERROR_BAD_NET_NAME)
858  CHK_ERR_WIN32A(ERROR_TOO_MANY_NAMES)
859  CHK_ERR_WIN32A(ERROR_TOO_MANY_SESS)
860  CHK_ERR_WIN32A(ERROR_SHARING_PAUSED)
861  CHK_ERR_WIN32A(ERROR_REQ_NOT_ACCEP)
862  CHK_ERR_WIN32A(ERROR_REDIR_PAUSED)
863  CHK_ERR_WIN32A(ERROR_FILE_EXISTS)
864  CHK_ERR_WIN32A(ERROR_CANNOT_MAKE)
865  CHK_ERR_WIN32A(ERROR_FAIL_I24)
866  CHK_ERR_WIN32A(ERROR_OUT_OF_STRUCTURES)
867  CHK_ERR_WIN32A(ERROR_ALREADY_ASSIGNED)
868  CHK_ERR_WIN32A(ERROR_INVALID_PASSWORD)
869  CHK_ERRA(ERROR_INVALID_PARAMETER)
870  CHK_ERR_WIN32A(ERROR_NET_WRITE_FAULT)
871  CHK_ERR_WIN32A(ERROR_NO_PROC_SLOTS)
872  CHK_ERR_WIN32A(ERROR_TOO_MANY_SEMAPHORES)
873  CHK_ERR_WIN32A(ERROR_EXCL_SEM_ALREADY_OWNED)
874  CHK_ERR_WIN32A(ERROR_SEM_IS_SET)
875  CHK_ERR_WIN32A(ERROR_TOO_MANY_SEM_REQUESTS)
876  CHK_ERR_WIN32A(ERROR_INVALID_AT_INTERRUPT_TIME)
877  CHK_ERR_WIN32A(ERROR_SEM_OWNER_DIED)
878  CHK_ERR_WIN32A(ERROR_SEM_USER_LIMIT)
879  CHK_ERR_WIN32A(ERROR_DISK_CHANGE)
880  CHK_ERR_WIN32A(ERROR_DRIVE_LOCKED)
881  CHK_ERR_WIN32A(ERROR_BROKEN_PIPE)
882  CHK_ERR_WIN32A(ERROR_OPEN_FAILED)
883  CHK_ERR_WIN32A(ERROR_BUFFER_OVERFLOW)
884  CHK_ERR_WIN32A(ERROR_DISK_FULL)
885  CHK_ERR_WIN32A(ERROR_NO_MORE_SEARCH_HANDLES)
886  CHK_ERR_WIN32A(ERROR_INVALID_TARGET_HANDLE)
887  CHK_ERR_WIN32A(ERROR_INVALID_CATEGORY)
888  CHK_ERR_WIN32A(ERROR_INVALID_VERIFY_SWITCH)
889  CHK_ERR_WIN32A(ERROR_BAD_DRIVER_LEVEL)
890  CHK_ERR_WIN32A(ERROR_CALL_NOT_IMPLEMENTED)
891  CHK_ERR_WIN32A(ERROR_SEM_TIMEOUT)
892  CHK_ERR_WIN32A(ERROR_INSUFFICIENT_BUFFER)
893  CHK_ERR_WIN32A(ERROR_INVALID_NAME)
894  CHK_ERR_WIN32A(ERROR_INVALID_LEVEL)
895  CHK_ERR_WIN32A(ERROR_NO_VOLUME_LABEL)
896  CHK_ERR_WIN32A(ERROR_MOD_NOT_FOUND)
897  CHK_ERR_WIN32A(ERROR_PROC_NOT_FOUND)
898  CHK_ERR_WIN32A(ERROR_WAIT_NO_CHILDREN)
899  CHK_ERR_WIN32A(ERROR_CHILD_NOT_COMPLETE)
900  CHK_ERR_WIN32A(ERROR_DIRECT_ACCESS_HANDLE)
901  CHK_ERR_WIN32A(ERROR_NEGATIVE_SEEK)
902  CHK_ERR_WIN32A(ERROR_SEEK_ON_DEVICE)
903  CHK_ERR_WIN32A(ERROR_IS_JOIN_TARGET)
904  CHK_ERR_WIN32A(ERROR_IS_JOINED)
905  CHK_ERR_WIN32A(ERROR_IS_SUBSTED)
906  CHK_ERR_WIN32A(ERROR_NOT_JOINED)
907  CHK_ERR_WIN32A(ERROR_NOT_SUBSTED)
908  CHK_ERR_WIN32A(ERROR_JOIN_TO_JOIN)
909  CHK_ERR_WIN32A(ERROR_SUBST_TO_SUBST)
910  CHK_ERR_WIN32A(ERROR_JOIN_TO_SUBST)
911  CHK_ERR_WIN32A(ERROR_SUBST_TO_JOIN)
912  CHK_ERR_WIN32A(ERROR_BUSY_DRIVE)
913  CHK_ERR_WIN32A(ERROR_SAME_DRIVE)
914  CHK_ERR_WIN32A(ERROR_DIR_NOT_ROOT)
915  CHK_ERR_WIN32A(ERROR_DIR_NOT_EMPTY)
916  CHK_ERR_WIN32A(ERROR_IS_SUBST_PATH)
917  CHK_ERR_WIN32A(ERROR_IS_JOIN_PATH)
918  CHK_ERR_WIN32A(ERROR_PATH_BUSY)
919  CHK_ERR_WIN32A(ERROR_IS_SUBST_TARGET)
920  CHK_ERR_WIN32A(ERROR_SYSTEM_TRACE)
921  CHK_ERR_WIN32A(ERROR_INVALID_EVENT_COUNT)
922  CHK_ERR_WIN32A(ERROR_TOO_MANY_MUXWAITERS)
923  CHK_ERR_WIN32A(ERROR_INVALID_LIST_FORMAT)
924  CHK_ERR_WIN32A(ERROR_LABEL_TOO_LONG)
925  CHK_ERR_WIN32A(ERROR_TOO_MANY_TCBS)
926  CHK_ERR_WIN32A(ERROR_SIGNAL_REFUSED)
927  CHK_ERR_WIN32A(ERROR_DISCARDED)
928  CHK_ERR_WIN32A(ERROR_NOT_LOCKED)
929  CHK_ERR_WIN32A(ERROR_BAD_THREADID_ADDR)
930  CHK_ERR_WIN32A(ERROR_BAD_ARGUMENTS)
931  CHK_ERR_WIN32A(ERROR_BAD_PATHNAME)
932  CHK_ERR_WIN32A(ERROR_SIGNAL_PENDING)
933  CHK_ERR_WIN32A(ERROR_MAX_THRDS_REACHED)
934  CHK_ERR_WIN32A(ERROR_LOCK_FAILED)
935  CHK_ERR_WIN32A(ERROR_BUSY)
936  CHK_ERR_WIN32A(ERROR_CANCEL_VIOLATION)
937  CHK_ERR_WIN32A(ERROR_ATOMIC_LOCKS_NOT_SUPPORTED)
938  CHK_ERR_WIN32A(ERROR_INVALID_SEGMENT_NUMBER)
939  CHK_ERR_WIN32A(ERROR_INVALID_ORDINAL)
940  CHK_ERR_WIN32A(ERROR_ALREADY_EXISTS)
941  CHK_ERR_WIN32A(ERROR_INVALID_FLAG_NUMBER)
942  CHK_ERR_WIN32A(ERROR_SEM_NOT_FOUND)
943  CHK_ERR_WIN32A(ERROR_INVALID_STARTING_CODESEG)
944  CHK_ERR_WIN32A(ERROR_INVALID_STACKSEG)
945  CHK_ERR_WIN32A(ERROR_INVALID_MODULETYPE)
946  CHK_ERR_WIN32A(ERROR_INVALID_EXE_SIGNATURE)
947  CHK_ERR_WIN32A(ERROR_EXE_MARKED_INVALID)
948  CHK_ERR_WIN32A(ERROR_BAD_EXE_FORMAT)
949  CHK_ERR_WIN32A(ERROR_ITERATED_DATA_EXCEEDS_64k)
950  CHK_ERR_WIN32A(ERROR_INVALID_MINALLOCSIZE)
951  CHK_ERR_WIN32A(ERROR_DYNLINK_FROM_INVALID_RING)
952  CHK_ERR_WIN32A(ERROR_IOPL_NOT_ENABLED)
953  CHK_ERR_WIN32A(ERROR_INVALID_SEGDPL)
954  CHK_ERR_WIN32A(ERROR_AUTODATASEG_EXCEEDS_64k)
955  CHK_ERRA(ERROR_RING2SEG_MUST_BE_MOVABLE)
956  CHK_ERRA(ERROR_RELOC_CHAIN_XEEDS_SEGLIM)
957  CHK_ERR_WIN32A(ERROR_INFLOOP_IN_RELOC_CHAIN)
958  CHK_ERR_WIN32A(ERROR_ENVVAR_NOT_FOUND)
959  CHK_ERR_WIN32A(ERROR_NO_SIGNAL_SENT)
960  CHK_ERR_WIN32A(ERROR_FILENAME_EXCED_RANGE)
961  CHK_ERR_WIN32A(ERROR_RING2_STACK_IN_USE)
962  CHK_ERR_WIN32A(ERROR_META_EXPANSION_TOO_LONG)
963  CHK_ERR_WIN32A(ERROR_INVALID_SIGNAL_NUMBER)
964  CHK_ERR_WIN32A(ERROR_THREAD_1_INACTIVE)
965  CHK_ERR_WIN32A(ERROR_LOCKED)
966  CHK_ERR_WIN32A(ERROR_TOO_MANY_MODULES)
967  CHK_ERR_WIN32A(ERROR_NESTING_NOT_ALLOWED)
968  CHK_ERR_WIN32A(ERROR_EXE_MACHINE_TYPE_MISMATCH)
969  CHK_ERR_WIN32A(ERROR_BAD_PIPE)
970  CHK_ERR_WIN32A(ERROR_PIPE_BUSY)
971  CHK_ERR_WIN32A(ERROR_NO_DATA)
972  CHK_ERR_WIN32A(ERROR_PIPE_NOT_CONNECTED)
973  CHK_ERR_WIN32A(ERROR_MORE_DATA)
974  CHK_ERR_WIN32A(ERROR_VC_DISCONNECTED)
975  CHK_ERR_WIN32A(ERROR_INVALID_EA_NAME)
976  CHK_ERR_WIN32A(ERROR_EA_LIST_INCONSISTENT)
977  CHK_ERR_WIN32A(WAIT_TIMEOUT)
978  CHK_ERR_WIN32A(ERROR_NO_MORE_ITEMS)
979  CHK_ERR_WIN32A(ERROR_CANNOT_COPY)
980  CHK_ERR_WIN32A(ERROR_DIRECTORY)
981  CHK_ERR_WIN32A(ERROR_EAS_DIDNT_FIT)
982  CHK_ERR_WIN32A(ERROR_EA_FILE_CORRUPT)
983  CHK_ERR_WIN32A(ERROR_EA_TABLE_FULL)
984  CHK_ERR_WIN32A(ERROR_INVALID_EA_HANDLE)
985  CHK_ERR_WIN32A(ERROR_EAS_NOT_SUPPORTED)
986  CHK_ERR_WIN32A(ERROR_NOT_OWNER)
987  CHK_ERR_WIN32A(ERROR_TOO_MANY_POSTS)
988  CHK_ERR_WIN32A(ERROR_PARTIAL_COPY)
989  CHK_ERR_WIN32A(ERROR_OPLOCK_NOT_GRANTED)
990  CHK_ERR_WIN32A(ERROR_INVALID_OPLOCK_PROTOCOL)
991  CHK_ERR_WIN32A(ERROR_MR_MID_NOT_FOUND)
992  CHK_ERR_WIN32A(ERROR_INVALID_ADDRESS)
993  CHK_ERR_WIN32A(ERROR_ARITHMETIC_OVERFLOW)
994  CHK_ERR_WIN32A(ERROR_PIPE_CONNECTED)
995  CHK_ERR_WIN32A(ERROR_PIPE_LISTENING)
996  CHK_ERR_WIN32A(ERROR_EA_ACCESS_DENIED)
997  CHK_ERR_WIN32A(ERROR_OPERATION_ABORTED)
998  CHK_ERR_WIN32A(ERROR_IO_INCOMPLETE)
999  CHK_ERR_WIN32A(ERROR_IO_PENDING)
1000  CHK_ERR_WIN32A(ERROR_NOACCESS)
1001  CHK_ERR_WIN32A(ERROR_SWAPERROR)
1002  CHK_ERR_WIN32A(ERROR_STACK_OVERFLOW)
1003  CHK_ERR_WIN32A(ERROR_INVALID_MESSAGE)
1004  CHK_ERR_WIN32A(ERROR_CAN_NOT_COMPLETE)
1005  CHK_ERR_WIN32A(ERROR_INVALID_FLAGS)
1006  CHK_ERR_WIN32A(ERROR_UNRECOGNIZED_VOLUME)
1007  CHK_ERR_WIN32A(ERROR_FILE_INVALID)
1008  CHK_ERR_WIN32A(ERROR_FULLSCREEN_MODE)
1009  CHK_ERR_WIN32A(ERROR_NO_TOKEN)
1010  CHK_ERR_WIN32A(ERROR_BADDB)
1011  CHK_ERR_WIN32A(ERROR_BADKEY)
1012  CHK_ERR_WIN32A(ERROR_CANTOPEN)
1013  CHK_ERR_WIN32A(ERROR_CANTREAD)
1014  CHK_ERR_WIN32A(ERROR_CANTWRITE)
1015  CHK_ERR_WIN32A(ERROR_REGISTRY_RECOVERED)
1016  CHK_ERR_WIN32A(ERROR_REGISTRY_CORRUPT)
1017  CHK_ERR_WIN32A(ERROR_REGISTRY_IO_FAILED)
1018  CHK_ERR_WIN32A(ERROR_NOT_REGISTRY_FILE)
1019  CHK_ERR_WIN32A(ERROR_KEY_DELETED)
1020  CHK_ERR_WIN32A(ERROR_NO_LOG_SPACE)
1021  CHK_ERR_WIN32A(ERROR_KEY_HAS_CHILDREN)
1022  CHK_ERR_WIN32A(ERROR_CHILD_MUST_BE_VOLATILE)
1023  CHK_ERR_WIN32A(ERROR_NOTIFY_ENUM_DIR)
1024  CHK_ERR_WIN32A(ERROR_DEPENDENT_SERVICES_RUNNING)
1025  CHK_ERR_WIN32A(ERROR_INVALID_SERVICE_CONTROL)
1026  CHK_ERR_WIN32A(ERROR_SERVICE_REQUEST_TIMEOUT)
1027  CHK_ERR_WIN32A(ERROR_SERVICE_NO_THREAD)
1028  CHK_ERR_WIN32A(ERROR_SERVICE_DATABASE_LOCKED)
1029  CHK_ERR_WIN32A(ERROR_SERVICE_ALREADY_RUNNING)
1030  CHK_ERR_WIN32A(ERROR_INVALID_SERVICE_ACCOUNT)
1031  CHK_ERR_WIN32A(ERROR_SERVICE_DISABLED)
1032  CHK_ERR_WIN32A(ERROR_CIRCULAR_DEPENDENCY)
1033  CHK_ERR_WIN32A(ERROR_SERVICE_DOES_NOT_EXIST)
1034  CHK_ERR_WIN32A(ERROR_SERVICE_CANNOT_ACCEPT_CTRL)
1035  CHK_ERR_WIN32A(ERROR_SERVICE_NOT_ACTIVE)
1036  CHK_ERR_WIN32A(ERROR_FAILED_SERVICE_CONTROLLER_CONNECT)
1037  CHK_ERR_WIN32A(ERROR_EXCEPTION_IN_SERVICE)
1038  CHK_ERR_WIN32A(ERROR_DATABASE_DOES_NOT_EXIST)
1039  CHK_ERR_WIN32A(ERROR_SERVICE_SPECIFIC_ERROR)
1040  CHK_ERR_WIN32A(ERROR_PROCESS_ABORTED)
1041  CHK_ERR_WIN32A(ERROR_SERVICE_DEPENDENCY_FAIL)
1042  CHK_ERR_WIN32A(ERROR_SERVICE_LOGON_FAILED)
1043  CHK_ERR_WIN32A(ERROR_SERVICE_START_HANG)
1044  CHK_ERR_WIN32A(ERROR_INVALID_SERVICE_LOCK)
1045  CHK_ERR_WIN32A(ERROR_SERVICE_MARKED_FOR_DELETE)
1046  CHK_ERR_WIN32A(ERROR_SERVICE_EXISTS)
1047  CHK_ERR_WIN32A(ERROR_ALREADY_RUNNING_LKG)
1048  CHK_ERR_WIN32A(ERROR_SERVICE_DEPENDENCY_DELETED)
1049  CHK_ERR_WIN32A(ERROR_BOOT_ALREADY_ACCEPTED)
1050  CHK_ERR_WIN32A(ERROR_SERVICE_NEVER_STARTED)
1051  CHK_ERR_WIN32A(ERROR_DUPLICATE_SERVICE_NAME)
1052  CHK_ERR_WIN32A(ERROR_DIFFERENT_SERVICE_ACCOUNT)
1053  CHK_ERR_WIN32A(ERROR_CANNOT_DETECT_DRIVER_FAILURE)
1054  CHK_ERR_WIN32A(ERROR_CANNOT_DETECT_PROCESS_ABORT)
1055  CHK_ERR_WIN32A(ERROR_NO_RECOVERY_PROGRAM)
1056  CHK_ERR_WIN32A(ERROR_SERVICE_NOT_IN_EXE)
1057  CHK_ERR_WIN32A(ERROR_END_OF_MEDIA)
1058  CHK_ERR_WIN32A(ERROR_FILEMARK_DETECTED)
1059  CHK_ERR_WIN32A(ERROR_BEGINNING_OF_MEDIA)
1060  CHK_ERR_WIN32A(ERROR_SETMARK_DETECTED)
1061  CHK_ERR_WIN32A(ERROR_NO_DATA_DETECTED)
1062  CHK_ERR_WIN32A(ERROR_PARTITION_FAILURE)
1063  CHK_ERR_WIN32A(ERROR_INVALID_BLOCK_LENGTH)
1064  CHK_ERR_WIN32A(ERROR_DEVICE_NOT_PARTITIONED)
1065  CHK_ERR_WIN32A(ERROR_UNABLE_TO_LOCK_MEDIA)
1066  CHK_ERR_WIN32A(ERROR_UNABLE_TO_UNLOAD_MEDIA)
1067  CHK_ERR_WIN32A(ERROR_MEDIA_CHANGED)
1068  CHK_ERR_WIN32A(ERROR_BUS_RESET)
1069  CHK_ERR_WIN32A(ERROR_NO_MEDIA_IN_DRIVE)
1070  CHK_ERR_WIN32A(ERROR_NO_UNICODE_TRANSLATION)
1071  CHK_ERR_WIN32A(ERROR_DLL_INIT_FAILED)
1072  CHK_ERR_WIN32A(ERROR_SHUTDOWN_IN_PROGRESS)
1073  CHK_ERR_WIN32A(ERROR_NO_SHUTDOWN_IN_PROGRESS)
1074  CHK_ERR_WIN32A(ERROR_IO_DEVICE)
1075  CHK_ERR_WIN32A(ERROR_SERIAL_NO_DEVICE)
1076  CHK_ERR_WIN32A(ERROR_IRQ_BUSY)
1077  CHK_ERR_WIN32A(ERROR_MORE_WRITES)
1078  CHK_ERR_WIN32A(ERROR_COUNTER_TIMEOUT)
1079  CHK_ERR_WIN32A(ERROR_FLOPPY_ID_MARK_NOT_FOUND)
1080  CHK_ERR_WIN32A(ERROR_FLOPPY_WRONG_CYLINDER)
1081  CHK_ERR_WIN32A(ERROR_FLOPPY_UNKNOWN_ERROR)
1082  CHK_ERR_WIN32A(ERROR_FLOPPY_BAD_REGISTERS)
1083  CHK_ERR_WIN32A(ERROR_DISK_RECALIBRATE_FAILED)
1084  CHK_ERR_WIN32A(ERROR_DISK_OPERATION_FAILED)
1085  CHK_ERR_WIN32A(ERROR_DISK_RESET_FAILED)
1086  CHK_ERR_WIN32A(ERROR_EOM_OVERFLOW)
1087  CHK_ERR_WIN32A(ERROR_NOT_ENOUGH_SERVER_MEMORY)
1088  CHK_ERR_WIN32A(ERROR_POSSIBLE_DEADLOCK)
1089  CHK_ERR_WIN32A(ERROR_MAPPED_ALIGNMENT)
1090  CHK_ERR_WIN32A(ERROR_SET_POWER_STATE_VETOED)
1091  CHK_ERR_WIN32A(ERROR_SET_POWER_STATE_FAILED)
1092  CHK_ERR_WIN32A(ERROR_TOO_MANY_LINKS)
1093  CHK_ERR_WIN32A(ERROR_OLD_WIN_VERSION)
1094  CHK_ERR_WIN32A(ERROR_APP_WRONG_OS)
1095  CHK_ERR_WIN32A(ERROR_SINGLE_INSTANCE_APP)
1096  CHK_ERR_WIN32A(ERROR_RMODE_APP)
1097  CHK_ERR_WIN32A(ERROR_INVALID_DLL)
1098  CHK_ERR_WIN32A(ERROR_NO_ASSOCIATION)
1099  CHK_ERR_WIN32A(ERROR_DDE_FAIL)
1100  CHK_ERR_WIN32A(ERROR_DLL_NOT_FOUND)
1101  CHK_ERR_WIN32A(ERROR_NO_MORE_USER_HANDLES)
1102  CHK_ERR_WIN32A(ERROR_MESSAGE_SYNC_ONLY)
1103  CHK_ERR_WIN32A(ERROR_SOURCE_ELEMENT_EMPTY)
1104  CHK_ERR_WIN32A(ERROR_DESTINATION_ELEMENT_FULL)
1105  CHK_ERR_WIN32A(ERROR_ILLEGAL_ELEMENT_ADDRESS)
1106  CHK_ERR_WIN32A(ERROR_MAGAZINE_NOT_PRESENT)
1107  CHK_ERR_WIN32A(ERROR_DEVICE_REINITIALIZATION_NEEDED)
1108  CHK_ERR_WIN32A(ERROR_DEVICE_REQUIRES_CLEANING)
1109  CHK_ERR_WIN32A(ERROR_DEVICE_DOOR_OPEN)
1110  CHK_ERR_WIN32A(ERROR_DEVICE_NOT_CONNECTED)
1111  CHK_ERR_WIN32A(ERROR_NOT_FOUND)
1112  CHK_ERR_WIN32A(ERROR_NO_MATCH)
1113  CHK_ERR_WIN32A(ERROR_SET_NOT_FOUND)
1114  CHK_ERR_WIN32A(ERROR_POINT_NOT_FOUND)
1115  CHK_ERR_WIN32A(ERROR_NO_TRACKING_SERVICE)
1116  CHK_ERR_WIN32A(ERROR_NO_VOLUME_ID)
1117  CHK_ERR_WIN32A(ERROR_UNABLE_TO_REMOVE_REPLACED)
1118  CHK_ERR_WIN32A(ERROR_UNABLE_TO_MOVE_REPLACEMENT)
1119  CHK_ERR_WIN32A(ERROR_UNABLE_TO_MOVE_REPLACEMENT_2)
1120  CHK_ERR_WIN32A(ERROR_JOURNAL_DELETE_IN_PROGRESS)
1121  CHK_ERR_WIN32A(ERROR_JOURNAL_NOT_ACTIVE)
1122  CHK_ERR_WIN32A(ERROR_POTENTIAL_FILE_FOUND)
1123  CHK_ERR_WIN32A(ERROR_BAD_DEVICE)
1124  CHK_ERR_WIN32A(ERROR_CONNECTION_UNAVAIL)
1125  CHK_ERR_WIN32A(ERROR_DEVICE_ALREADY_REMEMBERED)
1126  CHK_ERR_WIN32A(ERROR_NO_NET_OR_BAD_PATH)
1127  CHK_ERR_WIN32A(ERROR_BAD_PROVIDER)
1128  CHK_ERR_WIN32A(ERROR_CANNOT_OPEN_PROFILE)
1129  CHK_ERR_WIN32A(ERROR_BAD_PROFILE)
1130  CHK_ERR_WIN32A(ERROR_NOT_CONTAINER)
1131  CHK_ERR_WIN32A(ERROR_EXTENDED_ERROR)
1132  CHK_ERR_WIN32A(ERROR_INVALID_GROUPNAME)
1133  CHK_ERR_WIN32A(ERROR_INVALID_COMPUTERNAME)
1134  CHK_ERR_WIN32A(ERROR_INVALID_EVENTNAME)
1135  CHK_ERR_WIN32A(ERROR_INVALID_DOMAINNAME)
1136  CHK_ERR_WIN32A(ERROR_INVALID_SERVICENAME)
1137  CHK_ERR_WIN32A(ERROR_INVALID_NETNAME)
1138  CHK_ERR_WIN32A(ERROR_INVALID_SHARENAME)
1139  CHK_ERR_WIN32A(ERROR_INVALID_PASSWORDNAME)
1140  CHK_ERR_WIN32A(ERROR_INVALID_MESSAGENAME)
1141  CHK_ERR_WIN32A(ERROR_INVALID_MESSAGEDEST)
1142  CHK_ERR_WIN32A(ERROR_SESSION_CREDENTIAL_CONFLICT)
1143  CHK_ERR_WIN32A(ERROR_REMOTE_SESSION_LIMIT_EXCEEDED)
1144  CHK_ERR_WIN32A(ERROR_DUP_DOMAINNAME)
1145  CHK_ERR_WIN32A(ERROR_NO_NETWORK)
1146  CHK_ERR_WIN32A(ERROR_CANCELLED)
1147  CHK_ERR_WIN32A(ERROR_USER_MAPPED_FILE)
1148  CHK_ERR_WIN32A(ERROR_CONNECTION_REFUSED)
1149  CHK_ERR_WIN32A(ERROR_GRACEFUL_DISCONNECT)
1150  CHK_ERR_WIN32A(ERROR_ADDRESS_ALREADY_ASSOCIATED)
1151  CHK_ERR_WIN32A(ERROR_ADDRESS_NOT_ASSOCIATED)
1152  CHK_ERR_WIN32A(ERROR_CONNECTION_INVALID)
1153  CHK_ERR_WIN32A(ERROR_CONNECTION_ACTIVE)
1154  CHK_ERR_WIN32A(ERROR_NETWORK_UNREACHABLE)
1155  CHK_ERR_WIN32A(ERROR_HOST_UNREACHABLE)
1156  CHK_ERR_WIN32A(ERROR_PROTOCOL_UNREACHABLE)
1157  CHK_ERR_WIN32A(ERROR_PORT_UNREACHABLE)
1158  CHK_ERR_WIN32A(ERROR_REQUEST_ABORTED)
1159  CHK_ERR_WIN32A(ERROR_CONNECTION_ABORTED)
1160  CHK_ERR_WIN32A(ERROR_RETRY)
1161  CHK_ERR_WIN32A(ERROR_CONNECTION_COUNT_LIMIT)
1162  CHK_ERR_WIN32A(ERROR_LOGIN_TIME_RESTRICTION)
1163  CHK_ERR_WIN32A(ERROR_LOGIN_WKSTA_RESTRICTION)
1164  CHK_ERR_WIN32A(ERROR_INCORRECT_ADDRESS)
1165  CHK_ERR_WIN32A(ERROR_ALREADY_REGISTERED)
1166  CHK_ERR_WIN32A(ERROR_SERVICE_NOT_FOUND)
1167  CHK_ERR_WIN32A(ERROR_NOT_AUTHENTICATED)
1168  CHK_ERR_WIN32A(ERROR_NOT_LOGGED_ON)
1169  CHK_ERR_WIN32A(ERROR_CONTINUE)
1170  CHK_ERR_WIN32A(ERROR_ALREADY_INITIALIZED)
1171  CHK_ERR_WIN32A(ERROR_NO_MORE_DEVICES)
1172  CHK_ERR_WIN32A(ERROR_NO_SUCH_SITE)
1173  CHK_ERR_WIN32A(ERROR_DOMAIN_CONTROLLER_EXISTS)
1174  CHK_ERR_WIN32A(ERROR_NOT_ALL_ASSIGNED)
1175  CHK_ERR_WIN32A(ERROR_SOME_NOT_MAPPED)
1176  CHK_ERR_WIN32A(ERROR_NO_QUOTAS_FOR_ACCOUNT)
1177  CHK_ERR_WIN32A(ERROR_LOCAL_USER_SESSION_KEY)
1178  CHK_ERR_WIN32A(ERROR_NULL_LM_PASSWORD)
1179  CHK_ERR_WIN32A(ERROR_UNKNOWN_REVISION)
1180  CHK_ERR_WIN32A(ERROR_REVISION_MISMATCH)
1181  CHK_ERR_WIN32A(ERROR_INVALID_OWNER)
1182  CHK_ERR_WIN32A(ERROR_INVALID_PRIMARY_GROUP)
1183  CHK_ERR_WIN32A(ERROR_NO_IMPERSONATION_TOKEN)
1184  CHK_ERR_WIN32A(ERROR_CANT_DISABLE_MANDATORY)
1185  CHK_ERR_WIN32A(ERROR_NO_LOGON_SERVERS)
1186  CHK_ERR_WIN32A(ERROR_NO_SUCH_LOGON_SESSION)
1187  CHK_ERR_WIN32A(ERROR_NO_SUCH_PRIVILEGE)
1188  CHK_ERR_WIN32A(ERROR_PRIVILEGE_NOT_HELD)
1189  CHK_ERR_WIN32A(ERROR_INVALID_ACCOUNT_NAME)
1190  CHK_ERR_WIN32A(ERROR_USER_EXISTS)
1191  CHK_ERR_WIN32A(ERROR_NO_SUCH_USER)
1192  CHK_ERR_WIN32A(ERROR_GROUP_EXISTS)
1193  CHK_ERR_WIN32A(ERROR_NO_SUCH_GROUP)
1194  CHK_ERR_WIN32A(ERROR_MEMBER_IN_GROUP)
1195  CHK_ERR_WIN32A(ERROR_MEMBER_NOT_IN_GROUP)
1196  CHK_ERR_WIN32A(ERROR_LAST_ADMIN)
1197  CHK_ERR_WIN32A(ERROR_WRONG_PASSWORD)
1198  CHK_ERR_WIN32A(ERROR_ILL_FORMED_PASSWORD)
1199  CHK_ERR_WIN32A(ERROR_PASSWORD_RESTRICTION)
1200  CHK_ERR_WIN32A(ERROR_LOGON_FAILURE)
1201  CHK_ERR_WIN32A(ERROR_ACCOUNT_RESTRICTION)
1202  CHK_ERR_WIN32A(ERROR_INVALID_LOGON_HOURS)
1203  CHK_ERR_WIN32A(ERROR_INVALID_WORKSTATION)
1204  CHK_ERR_WIN32A(ERROR_PASSWORD_EXPIRED)
1205  CHK_ERR_WIN32A(ERROR_ACCOUNT_DISABLED)
1206  CHK_ERR_WIN32A(ERROR_NONE_MAPPED)
1207  CHK_ERR_WIN32A(ERROR_TOO_MANY_LUIDS_REQUESTED)
1208  CHK_ERR_WIN32A(ERROR_LUIDS_EXHAUSTED)
1209  CHK_ERR_WIN32A(ERROR_INVALID_SUB_AUTHORITY)
1210  CHK_ERR_WIN32A(ERROR_INVALID_ACL)
1211  CHK_ERR_WIN32A(ERROR_INVALID_SID)
1212  CHK_ERR_WIN32A(ERROR_INVALID_SECURITY_DESCR)
1213  CHK_ERR_WIN32A(ERROR_BAD_INHERITANCE_ACL)
1214  CHK_ERR_WIN32A(ERROR_SERVER_DISABLED)
1215  CHK_ERR_WIN32A(ERROR_SERVER_NOT_DISABLED)
1216  CHK_ERR_WIN32A(ERROR_INVALID_ID_AUTHORITY)
1217  CHK_ERR_WIN32A(ERROR_ALLOTTED_SPACE_EXCEEDED)
1218  CHK_ERR_WIN32A(ERROR_INVALID_GROUP_ATTRIBUTES)
1219  CHK_ERR_WIN32A(ERROR_BAD_IMPERSONATION_LEVEL)
1220  CHK_ERR_WIN32A(ERROR_CANT_OPEN_ANONYMOUS)
1221  CHK_ERR_WIN32A(ERROR_BAD_VALIDATION_CLASS)
1222  CHK_ERR_WIN32A(ERROR_BAD_TOKEN_TYPE)
1223  CHK_ERR_WIN32A(ERROR_NO_SECURITY_ON_OBJECT)
1224  CHK_ERR_WIN32A(ERROR_CANT_ACCESS_DOMAIN_INFO)
1225  CHK_ERR_WIN32A(ERROR_INVALID_SERVER_STATE)
1226  CHK_ERR_WIN32A(ERROR_INVALID_DOMAIN_STATE)
1227  CHK_ERR_WIN32A(ERROR_INVALID_DOMAIN_ROLE)
1228  CHK_ERR_WIN32A(ERROR_NO_SUCH_DOMAIN)
1229  CHK_ERR_WIN32A(ERROR_DOMAIN_EXISTS)
1230  CHK_ERR_WIN32A(ERROR_DOMAIN_LIMIT_EXCEEDED)
1231  CHK_ERR_WIN32A(ERROR_INTERNAL_DB_CORRUPTION)
1232  CHK_ERR_WIN32A(ERROR_INTERNAL_ERROR)
1233  CHK_ERR_WIN32A(ERROR_GENERIC_NOT_MAPPED)
1234  CHK_ERR_WIN32A(ERROR_BAD_DESCRIPTOR_FORMAT)
1235  CHK_ERR_WIN32A(ERROR_NOT_LOGON_PROCESS)
1236  CHK_ERR_WIN32A(ERROR_LOGON_SESSION_EXISTS)
1237  CHK_ERR_WIN32A(ERROR_NO_SUCH_PACKAGE)
1238  CHK_ERR_WIN32A(ERROR_BAD_LOGON_SESSION_STATE)
1239  CHK_ERR_WIN32A(ERROR_LOGON_SESSION_COLLISION)
1240  CHK_ERR_WIN32A(ERROR_INVALID_LOGON_TYPE)
1241  CHK_ERR_WIN32A(ERROR_CANNOT_IMPERSONATE)
1242  CHK_ERR_WIN32A(ERROR_RXACT_INVALID_STATE)
1243  CHK_ERR_WIN32A(ERROR_RXACT_COMMIT_FAILURE)
1244  CHK_ERR_WIN32A(ERROR_SPECIAL_ACCOUNT)
1245  CHK_ERR_WIN32A(ERROR_SPECIAL_GROUP)
1246  CHK_ERR_WIN32A(ERROR_SPECIAL_USER)
1247  CHK_ERR_WIN32A(ERROR_MEMBERS_PRIMARY_GROUP)
1248  CHK_ERR_WIN32A(ERROR_TOKEN_ALREADY_IN_USE)
1249  CHK_ERR_WIN32A(ERROR_NO_SUCH_ALIAS)
1250  CHK_ERR_WIN32A(ERROR_MEMBER_NOT_IN_ALIAS)
1251  CHK_ERR_WIN32A(ERROR_MEMBER_IN_ALIAS)
1252  CHK_ERR_WIN32A(ERROR_ALIAS_EXISTS)
1253  CHK_ERR_WIN32A(ERROR_LOGON_NOT_GRANTED)
1254  CHK_ERR_WIN32A(ERROR_TOO_MANY_SECRETS)
1255  CHK_ERR_WIN32A(ERROR_SECRET_TOO_LONG)
1256  CHK_ERR_WIN32A(ERROR_INTERNAL_DB_ERROR)
1257  CHK_ERR_WIN32A(ERROR_TOO_MANY_CONTEXT_IDS)
1258  CHK_ERR_WIN32A(ERROR_LOGON_TYPE_NOT_GRANTED)
1259  CHK_ERR_WIN32A(ERROR_NT_CROSS_ENCRYPTION_REQUIRED)
1260  CHK_ERR_WIN32A(ERROR_NO_SUCH_MEMBER)
1261  CHK_ERR_WIN32A(ERROR_INVALID_MEMBER)
1262  CHK_ERR_WIN32A(ERROR_TOO_MANY_SIDS)
1263  CHK_ERR_WIN32A(ERROR_LM_CROSS_ENCRYPTION_REQUIRED)
1264  CHK_ERR_WIN32A(ERROR_NO_INHERITANCE)
1265  CHK_ERR_WIN32A(ERROR_FILE_CORRUPT)
1266  CHK_ERR_WIN32A(ERROR_DISK_CORRUPT)
1267  CHK_ERR_WIN32A(ERROR_NO_USER_SESSION_KEY)
1268  CHK_ERR_WIN32A(ERROR_LICENSE_QUOTA_EXCEEDED)
1269  CHK_ERR_WIN32A(ERROR_WRONG_TARGET_NAME)
1270  CHK_ERR_WIN32A(ERROR_MUTUAL_AUTH_FAILED)
1271  CHK_ERR_WIN32A(ERROR_TIME_SKEW)
1272  CHK_ERR_WIN32A(ERROR_INVALID_WINDOW_HANDLE)
1273  CHK_ERR_WIN32A(ERROR_INVALID_MENU_HANDLE)
1274  CHK_ERR_WIN32A(ERROR_INVALID_CURSOR_HANDLE)
1275  CHK_ERR_WIN32A(ERROR_INVALID_ACCEL_HANDLE)
1276  CHK_ERR_WIN32A(ERROR_INVALID_HOOK_HANDLE)
1277  CHK_ERR_WIN32A(ERROR_INVALID_DWP_HANDLE)
1278  CHK_ERR_WIN32A(ERROR_TLW_WITH_WSCHILD)
1279  CHK_ERR_WIN32A(ERROR_CANNOT_FIND_WND_CLASS)
1280  CHK_ERR_WIN32A(ERROR_WINDOW_OF_OTHER_THREAD)
1281  CHK_ERR_WIN32A(ERROR_HOTKEY_ALREADY_REGISTERED)
1282  CHK_ERR_WIN32A(ERROR_CLASS_ALREADY_EXISTS)
1283  CHK_ERR_WIN32A(ERROR_CLASS_DOES_NOT_EXIST)
1284  CHK_ERR_WIN32A(ERROR_CLASS_HAS_WINDOWS)
1285  CHK_ERR_WIN32A(ERROR_INVALID_INDEX)
1286  CHK_ERR_WIN32A(ERROR_INVALID_ICON_HANDLE)
1287  CHK_ERR_WIN32A(ERROR_PRIVATE_DIALOG_INDEX)
1288  CHK_ERR_WIN32A(ERROR_LISTBOX_ID_NOT_FOUND)
1289  CHK_ERR_WIN32A(ERROR_NO_WILDCARD_CHARACTERS)
1290  CHK_ERR_WIN32A(ERROR_CLIPBOARD_NOT_OPEN)
1291  CHK_ERR_WIN32A(ERROR_HOTKEY_NOT_REGISTERED)
1292  CHK_ERR_WIN32A(ERROR_WINDOW_NOT_DIALOG)
1293  CHK_ERR_WIN32A(ERROR_CONTROL_ID_NOT_FOUND)
1294  CHK_ERR_WIN32A(ERROR_INVALID_COMBOBOX_MESSAGE)
1295  CHK_ERR_WIN32A(ERROR_WINDOW_NOT_COMBOBOX)
1296  CHK_ERR_WIN32A(ERROR_INVALID_EDIT_HEIGHT)
1297  CHK_ERR_WIN32A(ERROR_DC_NOT_FOUND)
1298  CHK_ERR_WIN32A(ERROR_INVALID_HOOK_FILTER)
1299  CHK_ERR_WIN32A(ERROR_INVALID_FILTER_PROC)
1300  CHK_ERR_WIN32A(ERROR_HOOK_NEEDS_HMOD)
1301  CHK_ERR_WIN32A(ERROR_GLOBAL_ONLY_HOOK)
1302  CHK_ERR_WIN32A(ERROR_JOURNAL_HOOK_SET)
1303  CHK_ERR_WIN32A(ERROR_HOOK_NOT_INSTALLED)
1304  CHK_ERR_WIN32A(ERROR_INVALID_LB_MESSAGE)
1305  CHK_ERR_WIN32A(ERROR_SETCOUNT_ON_BAD_LB)
1306  CHK_ERR_WIN32A(ERROR_LB_WITHOUT_TABSTOPS)
1307  CHK_ERR_WIN32A(ERROR_DESTROY_OBJECT_OF_OTHER_THREAD)
1308  CHK_ERR_WIN32A(ERROR_CHILD_WINDOW_MENU)
1309  CHK_ERR_WIN32A(ERROR_NO_SYSTEM_MENU)
1310  CHK_ERR_WIN32A(ERROR_INVALID_MSGBOX_STYLE)
1311  CHK_ERR_WIN32A(ERROR_INVALID_SPI_VALUE)
1312  CHK_ERR_WIN32A(ERROR_SCREEN_ALREADY_LOCKED)
1313  CHK_ERR_WIN32A(ERROR_HWNDS_HAVE_DIFF_PARENT)
1314  CHK_ERR_WIN32A(ERROR_NOT_CHILD_WINDOW)
1315  CHK_ERR_WIN32A(ERROR_INVALID_GW_COMMAND)
1316  CHK_ERR_WIN32A(ERROR_INVALID_THREAD_ID)
1317  CHK_ERR_WIN32A(ERROR_NON_MDICHILD_WINDOW)
1318  CHK_ERR_WIN32A(ERROR_POPUP_ALREADY_ACTIVE)
1319  CHK_ERR_WIN32A(ERROR_NO_SCROLLBARS)
1320  CHK_ERR_WIN32A(ERROR_INVALID_SCROLLBAR_RANGE)
1321  CHK_ERR_WIN32A(ERROR_INVALID_SHOWWIN_COMMAND)
1322  CHK_ERR_WIN32A(ERROR_NO_SYSTEM_RESOURCES)
1323  CHK_ERR_WIN32A(ERROR_NONPAGED_SYSTEM_RESOURCES)
1324  CHK_ERR_WIN32A(ERROR_PAGED_SYSTEM_RESOURCES)
1325  CHK_ERR_WIN32A(ERROR_WORKING_SET_QUOTA)
1326  CHK_ERR_WIN32A(ERROR_PAGEFILE_QUOTA)
1327  CHK_ERR_WIN32A(ERROR_COMMITMENT_LIMIT)
1328  CHK_ERR_WIN32A(ERROR_MENU_ITEM_NOT_FOUND)
1329  CHK_ERR_WIN32A(ERROR_INVALID_KEYBOARD_HANDLE)
1330  CHK_ERR_WIN32A(ERROR_HOOK_TYPE_NOT_ALLOWED)
1331  CHK_ERR_WIN32A(ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION)
1332  CHK_ERR_WIN32A(ERROR_TIMEOUT)
1333  CHK_ERR_WIN32A(ERROR_INVALID_MONITOR_HANDLE)
1334  CHK_ERR_WIN32A(ERROR_EVENTLOG_FILE_CORRUPT)
1335  CHK_ERR_WIN32A(ERROR_EVENTLOG_CANT_START)
1336  CHK_ERR_WIN32A(ERROR_LOG_FILE_FULL)
1337  CHK_ERR_WIN32A(ERROR_EVENTLOG_FILE_CHANGED)
1338  CHK_ERR_WIN32A(ERROR_INSTALL_USEREXIT)
1339  CHK_ERR_WIN32A(ERROR_INSTALL_FAILURE)
1340  CHK_ERR_WIN32A(ERROR_INSTALL_SUSPEND)
1341  CHK_ERR_WIN32A(ERROR_UNKNOWN_PRODUCT)
1342  CHK_ERR_WIN32A(ERROR_UNKNOWN_FEATURE)
1343  CHK_ERR_WIN32A(ERROR_UNKNOWN_COMPONENT)
1344  CHK_ERR_WIN32A(ERROR_UNKNOWN_PROPERTY)
1345  CHK_ERR_WIN32A(ERROR_INVALID_HANDLE_STATE)
1346  CHK_ERR_WIN32A(ERROR_BAD_CONFIGURATION)
1347  CHK_ERR_WIN32A(ERROR_INDEX_ABSENT)
1348  CHK_ERR_WIN32A(ERROR_INSTALL_SOURCE_ABSENT)
1349  CHK_ERR_WIN32A(ERROR_PRODUCT_UNINSTALLED)
1350  CHK_ERR_WIN32A(ERROR_BAD_QUERY_SYNTAX)
1351  CHK_ERR_WIN32A(ERROR_INVALID_FIELD)
1352  CHK_ERR_WIN32A(ERROR_DEVICE_REMOVED)
1353  CHK_ERR_WIN32A(RPC_S_INVALID_STRING_BINDING)
1354  CHK_ERR_WIN32A(RPC_S_WRONG_KIND_OF_BINDING)
1355  CHK_ERR_WIN32A(RPC_S_INVALID_BINDING)
1356  CHK_ERR_WIN32A(RPC_S_PROTSEQ_NOT_SUPPORTED)
1357  CHK_ERR_WIN32A(RPC_S_INVALID_RPC_PROTSEQ)
1358  CHK_ERR_WIN32A(RPC_S_INVALID_STRING_UUID)
1359  CHK_ERR_WIN32A(RPC_S_INVALID_ENDPOINT_FORMAT)
1360  CHK_ERR_WIN32A(RPC_S_INVALID_NET_ADDR)
1361  CHK_ERR_WIN32A(RPC_S_NO_ENDPOINT_FOUND)
1362  CHK_ERR_WIN32A(RPC_S_INVALID_TIMEOUT)
1363  CHK_ERR_WIN32A(RPC_S_OBJECT_NOT_FOUND)
1364  CHK_ERR_WIN32A(RPC_S_ALREADY_REGISTERED)
1365  CHK_ERR_WIN32A(RPC_S_TYPE_ALREADY_REGISTERED)
1366  CHK_ERR_WIN32A(RPC_S_ALREADY_LISTENING)
1367  CHK_ERR_WIN32A(RPC_S_NO_PROTSEQS_REGISTERED)
1368  CHK_ERR_WIN32A(RPC_S_NOT_LISTENING)
1369  CHK_ERR_WIN32A(RPC_S_UNKNOWN_MGR_TYPE)
1370  CHK_ERR_WIN32A(RPC_S_UNKNOWN_IF)
1371  CHK_ERR_WIN32A(RPC_S_NO_BINDINGS)
1372  CHK_ERR_WIN32A(RPC_S_NO_PROTSEQS)
1373  CHK_ERR_WIN32A(RPC_S_CANT_CREATE_ENDPOINT)
1374  CHK_ERR_WIN32A(RPC_S_OUT_OF_RESOURCES)
1375  CHK_ERR_WIN32A(RPC_S_SERVER_UNAVAILABLE)
1376  CHK_ERR_WIN32A(RPC_S_SERVER_TOO_BUSY)
1377  CHK_ERR_WIN32A(RPC_S_INVALID_NETWORK_OPTIONS)
1378  CHK_ERR_WIN32A(RPC_S_NO_CALL_ACTIVE)
1379  CHK_ERR_WIN32A(RPC_S_CALL_FAILED)
1380  CHK_ERR_WIN32A(RPC_S_CALL_FAILED_DNE)
1381  CHK_ERR_WIN32A(RPC_S_PROTOCOL_ERROR)
1382  CHK_ERR_WIN32A(RPC_S_UNSUPPORTED_TRANS_SYN)
1383  CHK_ERR_WIN32A(RPC_S_UNSUPPORTED_TYPE)
1384  CHK_ERR_WIN32A(RPC_S_INVALID_TAG)
1385  CHK_ERR_WIN32A(RPC_S_INVALID_BOUND)
1386  CHK_ERR_WIN32A(RPC_S_NO_ENTRY_NAME)
1387  CHK_ERR_WIN32A(RPC_S_INVALID_NAME_SYNTAX)
1388  CHK_ERR_WIN32A(RPC_S_UNSUPPORTED_NAME_SYNTAX)
1389  CHK_ERR_WIN32A(RPC_S_UUID_NO_ADDRESS)
1390  CHK_ERR_WIN32A(RPC_S_DUPLICATE_ENDPOINT)
1391  CHK_ERR_WIN32A(RPC_S_UNKNOWN_AUTHN_TYPE)
1392  CHK_ERR_WIN32A(RPC_S_MAX_CALLS_TOO_SMALL)
1393  CHK_ERR_WIN32A(RPC_S_STRING_TOO_LONG)
1394  CHK_ERR_WIN32A(RPC_S_PROTSEQ_NOT_FOUND)
1395  CHK_ERR_WIN32A(RPC_S_PROCNUM_OUT_OF_RANGE)
1396  CHK_ERR_WIN32A(RPC_S_BINDING_HAS_NO_AUTH)
1397  CHK_ERR_WIN32A(RPC_S_UNKNOWN_AUTHN_SERVICE)
1398  CHK_ERR_WIN32A(RPC_S_UNKNOWN_AUTHN_LEVEL)
1399  CHK_ERR_WIN32A(RPC_S_INVALID_AUTH_IDENTITY)
1400  CHK_ERR_WIN32A(RPC_S_UNKNOWN_AUTHZ_SERVICE)
1401  CHK_ERR_WIN32A(EPT_S_INVALID_ENTRY)
1402  CHK_ERR_WIN32A(EPT_S_CANT_PERFORM_OP)
1403  CHK_ERR_WIN32A(EPT_S_NOT_REGISTERED)
1404  CHK_ERR_WIN32A(RPC_S_NOTHING_TO_EXPORT)
1405  CHK_ERR_WIN32A(RPC_S_INCOMPLETE_NAME)
1406  CHK_ERR_WIN32A(RPC_S_INVALID_VERS_OPTION)
1407  CHK_ERR_WIN32A(RPC_S_NO_MORE_MEMBERS)
1408  CHK_ERR_WIN32A(RPC_S_NOT_ALL_OBJS_UNEXPORTED)
1409  CHK_ERR_WIN32A(RPC_S_INTERFACE_NOT_FOUND)
1410  CHK_ERR_WIN32A(RPC_S_ENTRY_ALREADY_EXISTS)
1411  CHK_ERR_WIN32A(RPC_S_ENTRY_NOT_FOUND)
1412  CHK_ERR_WIN32A(RPC_S_NAME_SERVICE_UNAVAILABLE)
1413  CHK_ERR_WIN32A(RPC_S_INVALID_NAF_ID)
1414  CHK_ERR_WIN32A(RPC_S_CANNOT_SUPPORT)
1415  CHK_ERR_WIN32A(RPC_S_NO_CONTEXT_AVAILABLE)
1416  CHK_ERR_WIN32A(RPC_S_INTERNAL_ERROR)
1417  CHK_ERR_WIN32A(RPC_S_ZERO_DIVIDE)
1418  CHK_ERR_WIN32A(RPC_S_ADDRESS_ERROR)
1419  CHK_ERR_WIN32A(RPC_S_FP_DIV_ZERO)
1420  CHK_ERR_WIN32A(RPC_S_FP_UNDERFLOW)
1421  CHK_ERR_WIN32A(RPC_S_FP_OVERFLOW)
1422  CHK_ERR_WIN32A(RPC_X_NO_MORE_ENTRIES)
1423  CHK_ERR_WIN32A(RPC_X_SS_CHAR_TRANS_OPEN_FAIL)
1424  CHK_ERR_WIN32A(RPC_X_SS_CHAR_TRANS_SHORT_FILE)
1425  CHK_ERR_WIN32A(RPC_X_SS_IN_NULL_CONTEXT)
1426  CHK_ERR_WIN32A(RPC_X_SS_CONTEXT_DAMAGED)
1427  CHK_ERR_WIN32A(RPC_X_SS_HANDLES_MISMATCH)
1428  CHK_ERR_WIN32A(RPC_X_SS_CANNOT_GET_CALL_HANDLE)
1429  CHK_ERR_WIN32A(RPC_X_NULL_REF_POINTER)
1430  CHK_ERR_WIN32A(RPC_X_ENUM_VALUE_OUT_OF_RANGE)
1431  CHK_ERR_WIN32A(RPC_X_BYTE_COUNT_TOO_SMALL)
1432  CHK_ERR_WIN32A(RPC_X_BAD_STUB_DATA)
1433  CHK_ERR_WIN32A(ERROR_INVALID_USER_BUFFER)
1434  CHK_ERR_WIN32A(ERROR_UNRECOGNIZED_MEDIA)
1435  CHK_ERR_WIN32A(ERROR_NO_TRUST_LSA_SECRET)
1436  CHK_ERR_WIN32A(ERROR_NO_TRUST_SAM_ACCOUNT)
1437  CHK_ERR_WIN32A(ERROR_TRUSTED_DOMAIN_FAILURE)
1438  CHK_ERR_WIN32A(ERROR_TRUSTED_RELATIONSHIP_FAILURE)
1439  CHK_ERR_WIN32A(ERROR_TRUST_FAILURE)
1440  CHK_ERR_WIN32A(RPC_S_CALL_IN_PROGRESS)
1441  CHK_ERR_WIN32A(ERROR_NETLOGON_NOT_STARTED)
1442  CHK_ERR_WIN32A(ERROR_ACCOUNT_EXPIRED)
1443  CHK_ERR_WIN32A(ERROR_REDIRECTOR_HAS_OPEN_HANDLES)
1444  CHK_ERR_WIN32A(ERROR_PRINTER_DRIVER_ALREADY_INSTALLED)
1445  CHK_ERR_WIN32A(ERROR_UNKNOWN_PORT)
1446  CHK_ERR_WIN32A(ERROR_UNKNOWN_PRINTER_DRIVER)
1447  CHK_ERR_WIN32A(ERROR_UNKNOWN_PRINTPROCESSOR)
1448  CHK_ERR_WIN32A(ERROR_INVALID_SEPARATOR_FILE)
1449  CHK_ERR_WIN32A(ERROR_INVALID_PRIORITY)
1450  CHK_ERR_WIN32A(ERROR_INVALID_PRINTER_NAME)
1451  CHK_ERR_WIN32A(ERROR_PRINTER_ALREADY_EXISTS)
1452  CHK_ERR_WIN32A(ERROR_INVALID_PRINTER_COMMAND)
1453  CHK_ERR_WIN32A(ERROR_INVALID_DATATYPE)
1454  CHK_ERR_WIN32A(ERROR_INVALID_ENVIRONMENT)
1455  CHK_ERR_WIN32A(RPC_S_NO_MORE_BINDINGS)
1456  CHK_ERR_WIN32A(ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT)
1457  CHK_ERR_WIN32A(ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT)
1458  CHK_ERR_WIN32A(ERROR_NOLOGON_SERVER_TRUST_ACCOUNT)
1459  CHK_ERR_WIN32A(ERROR_DOMAIN_TRUST_INCONSISTENT)
1460  CHK_ERR_WIN32A(ERROR_SERVER_HAS_OPEN_HANDLES)
1461  CHK_ERR_WIN32A(ERROR_RESOURCE_DATA_NOT_FOUND)
1462  CHK_ERR_WIN32A(ERROR_RESOURCE_TYPE_NOT_FOUND)
1463  CHK_ERR_WIN32A(ERROR_RESOURCE_NAME_NOT_FOUND)
1464  CHK_ERR_WIN32A(ERROR_RESOURCE_LANG_NOT_FOUND)
1465  CHK_ERR_WIN32A(ERROR_NOT_ENOUGH_QUOTA)
1466  CHK_ERR_WIN32A(RPC_S_NO_INTERFACES)
1467  CHK_ERR_WIN32A(RPC_S_CALL_CANCELLED)
1468  CHK_ERR_WIN32A(RPC_S_BINDING_INCOMPLETE)
1469  CHK_ERR_WIN32A(RPC_S_COMM_FAILURE)
1470  CHK_ERR_WIN32A(RPC_S_UNSUPPORTED_AUTHN_LEVEL)
1471  CHK_ERR_WIN32A(RPC_S_NO_PRINC_NAME)
1472  CHK_ERR_WIN32A(RPC_S_NOT_RPC_ERROR)
1473  CHK_ERR_WIN32A(RPC_S_UUID_LOCAL_ONLY)
1474  CHK_ERR_WIN32A(RPC_S_SEC_PKG_ERROR)
1475  CHK_ERR_WIN32A(RPC_S_NOT_CANCELLED)
1476  CHK_ERR_WIN32A(RPC_X_INVALID_ES_ACTION)
1477  CHK_ERR_WIN32A(RPC_X_WRONG_ES_VERSION)
1478  CHK_ERR_WIN32A(RPC_X_WRONG_STUB_VERSION)
1479  CHK_ERR_WIN32A(RPC_X_INVALID_PIPE_OBJECT)
1480  CHK_ERR_WIN32A(RPC_X_WRONG_PIPE_ORDER)
1481  CHK_ERR_WIN32A(RPC_X_WRONG_PIPE_VERSION)
1482  CHK_ERR_WIN32A(RPC_S_GROUP_MEMBER_NOT_FOUND)
1483  CHK_ERR_WIN32A(EPT_S_CANT_CREATE)
1484  CHK_ERR_WIN32A(RPC_S_INVALID_OBJECT)
1485  CHK_ERR_WIN32A(ERROR_INVALID_TIME)
1486  CHK_ERR_WIN32A(ERROR_INVALID_FORM_NAME)
1487  CHK_ERR_WIN32A(ERROR_INVALID_FORM_SIZE)
1488  CHK_ERR_WIN32A(ERROR_ALREADY_WAITING)
1489  CHK_ERR_WIN32A(ERROR_PRINTER_DELETED)
1490  CHK_ERR_WIN32A(ERROR_INVALID_PRINTER_STATE)
1491  CHK_ERR_WIN32A(ERROR_PASSWORD_MUST_CHANGE)
1492  CHK_ERR_WIN32A(ERROR_DOMAIN_CONTROLLER_NOT_FOUND)
1493  CHK_ERR_WIN32A(ERROR_ACCOUNT_LOCKED_OUT)
1494  CHK_ERR_WIN32A(OR_INVALID_OXID)
1495  CHK_ERR_WIN32A(OR_INVALID_OID)
1496  CHK_ERR_WIN32A(OR_INVALID_SET)
1497  CHK_ERR_WIN32A(RPC_S_SEND_INCOMPLETE)
1498  CHK_ERR_WIN32A(RPC_S_INVALID_ASYNC_HANDLE)
1499  CHK_ERR_WIN32A(RPC_S_INVALID_ASYNC_CALL)
1500  CHK_ERR_WIN32A(RPC_X_PIPE_CLOSED)
1501  CHK_ERR_WIN32A(RPC_X_PIPE_DISCIPLINE_ERROR)
1502  CHK_ERR_WIN32A(RPC_X_PIPE_EMPTY)
1503  CHK_ERR_WIN32A(ERROR_NO_SITENAME)
1504  CHK_ERR_WIN32A(ERROR_CANT_ACCESS_FILE)
1505  CHK_ERR_WIN32A(ERROR_CANT_RESOLVE_FILENAME)
1506  CHK_ERR_WIN32A(ERROR_INVALID_PIXEL_FORMAT)
1507  CHK_ERR_WIN32A(ERROR_BAD_DRIVER)
1508  CHK_ERR_WIN32A(ERROR_INVALID_WINDOW_STYLE)
1509  CHK_ERR_WIN32A(ERROR_METAFILE_NOT_SUPPORTED)
1510  CHK_ERR_WIN32A(ERROR_TRANSFORM_NOT_SUPPORTED)
1511  CHK_ERR_WIN32A(ERROR_CLIPPING_NOT_SUPPORTED)
1512  CHK_ERR_WIN32A(ERROR_INVALID_CMM)
1513  CHK_ERR_WIN32A(ERROR_INVALID_PROFILE)
1514  CHK_ERR_WIN32A(ERROR_TAG_NOT_FOUND)
1515  CHK_ERR_WIN32A(ERROR_TAG_NOT_PRESENT)
1516  CHK_ERR_WIN32A(ERROR_DUPLICATE_TAG)
1517  CHK_ERR_WIN32A(ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE)
1518  CHK_ERR_WIN32A(ERROR_PROFILE_NOT_FOUND)
1519  CHK_ERR_WIN32A(ERROR_INVALID_COLORSPACE)
1520  CHK_ERR_WIN32A(ERROR_ICM_NOT_ENABLED)
1521  CHK_ERR_WIN32A(ERROR_DELETING_ICM_XFORM)
1522  CHK_ERR_WIN32A(ERROR_INVALID_TRANSFORM)
1523  CHK_ERR_WIN32A(ERROR_COLORSPACE_MISMATCH)
1524  CHK_ERR_WIN32A(ERROR_INVALID_COLORINDEX)
1525  CHK_ERR_WIN32A(ERROR_CONNECTED_OTHER_PASSWORD)
1526  CHK_ERR_WIN32A(ERROR_BAD_USERNAME)
1527  CHK_ERR_WIN32A(ERROR_NOT_CONNECTED)
1528  CHK_ERR_WIN32A(ERROR_OPEN_FILES)
1529  CHK_ERR_WIN32A(ERROR_ACTIVE_CONNECTIONS)
1530  CHK_ERR_WIN32A(ERROR_DEVICE_IN_USE)
1531  CHK_ERR_WIN32A(ERROR_UNKNOWN_PRINT_MONITOR)
1532  CHK_ERR_WIN32A(ERROR_PRINTER_DRIVER_IN_USE)
1533  CHK_ERR_WIN32A(ERROR_SPOOL_FILE_NOT_FOUND)
1534  CHK_ERR_WIN32A(ERROR_SPL_NO_STARTDOC)
1535  CHK_ERR_WIN32A(ERROR_SPL_NO_ADDJOB)
1536  CHK_ERR_WIN32A(ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED)
1537  CHK_ERR_WIN32A(ERROR_PRINT_MONITOR_ALREADY_INSTALLED)
1538  CHK_ERR_WIN32A(ERROR_INVALID_PRINT_MONITOR)
1539  CHK_ERR_WIN32A(ERROR_PRINT_MONITOR_IN_USE)
1540  CHK_ERR_WIN32A(ERROR_PRINTER_HAS_JOBS_QUEUED)
1541  CHK_ERR_WIN32A(ERROR_SUCCESS_REBOOT_REQUIRED)
1542  CHK_ERR_WIN32A(ERROR_SUCCESS_RESTART_REQUIRED)
1543  CHK_ERR_WIN32A(ERROR_PRINTER_NOT_FOUND)
1544  CHK_ERR_WIN32A(ERROR_WINS_INTERNAL)
1545  CHK_ERR_WIN32A(ERROR_CAN_NOT_DEL_LOCAL_WINS)
1546  CHK_ERR_WIN32A(ERROR_STATIC_INIT)
1547  CHK_ERR_WIN32A(ERROR_INC_BACKUP)
1548  CHK_ERR_WIN32A(ERROR_FULL_BACKUP)
1549  CHK_ERR_WIN32A(ERROR_REC_NON_EXISTENT)
1550  CHK_ERR_WIN32A(ERROR_RPL_NOT_ALLOWED)
1551  CHK_ERR_WIN32A(ERROR_DHCP_ADDRESS_CONFLICT)
1552  CHK_ERR_WIN32A(ERROR_WMI_GUID_NOT_FOUND)
1553  CHK_ERR_WIN32A(ERROR_WMI_INSTANCE_NOT_FOUND)
1554  CHK_ERR_WIN32A(ERROR_WMI_ITEMID_NOT_FOUND)
1555  CHK_ERR_WIN32A(ERROR_WMI_TRY_AGAIN)
1556  CHK_ERR_WIN32A(ERROR_WMI_DP_NOT_FOUND)
1557  CHK_ERR_WIN32A(ERROR_WMI_UNRESOLVED_INSTANCE_REF)
1558  CHK_ERR_WIN32A(ERROR_WMI_ALREADY_ENABLED)
1559  CHK_ERR_WIN32A(ERROR_WMI_GUID_DISCONNECTED)
1560  CHK_ERR_WIN32A(ERROR_WMI_SERVER_UNAVAILABLE)
1561  CHK_ERR_WIN32A(ERROR_WMI_DP_FAILED)
1562  CHK_ERR_WIN32A(ERROR_WMI_INVALID_MOF)
1563  CHK_ERR_WIN32A(ERROR_WMI_INVALID_REGINFO)
1564  CHK_ERR_WIN32A(ERROR_WMI_ALREADY_DISABLED)
1565  CHK_ERR_WIN32A(ERROR_WMI_READ_ONLY)
1566  CHK_ERR_WIN32A(ERROR_WMI_SET_FAILURE)
1567  CHK_ERR_WIN32A(ERROR_INVALID_MEDIA)
1568  CHK_ERR_WIN32A(ERROR_INVALID_LIBRARY)
1569  CHK_ERR_WIN32A(ERROR_INVALID_MEDIA_POOL)
1570  CHK_ERR_WIN32A(ERROR_DRIVE_MEDIA_MISMATCH)
1571  CHK_ERR_WIN32A(ERROR_MEDIA_OFFLINE)
1572  CHK_ERR_WIN32A(ERROR_LIBRARY_OFFLINE)
1573  CHK_ERR_WIN32A(ERROR_EMPTY)
1574  CHK_ERR_WIN32A(ERROR_NOT_EMPTY)
1575  CHK_ERR_WIN32A(ERROR_MEDIA_UNAVAILABLE)
1576  CHK_ERR_WIN32A(ERROR_RESOURCE_DISABLED)
1577  CHK_ERR_WIN32A(ERROR_INVALID_CLEANER)
1578  CHK_ERR_WIN32A(ERROR_UNABLE_TO_CLEAN)
1579  CHK_ERR_WIN32A(ERROR_OBJECT_NOT_FOUND)
1580  CHK_ERR_WIN32A(ERROR_DATABASE_FAILURE)
1581  CHK_ERR_WIN32A(ERROR_DATABASE_FULL)
1582  CHK_ERR_WIN32A(ERROR_MEDIA_INCOMPATIBLE)
1583  CHK_ERR_WIN32A(ERROR_RESOURCE_NOT_PRESENT)
1584  CHK_ERR_WIN32A(ERROR_INVALID_OPERATION)
1585  CHK_ERR_WIN32A(ERROR_MEDIA_NOT_AVAILABLE)
1586  CHK_ERR_WIN32A(ERROR_DEVICE_NOT_AVAILABLE)
1587  CHK_ERR_WIN32A(ERROR_REQUEST_REFUSED)
1588  CHK_ERR_WIN32A(ERROR_INVALID_DRIVE_OBJECT)
1589  CHK_ERR_WIN32A(ERROR_LIBRARY_FULL)
1590  CHK_ERR_WIN32A(ERROR_MEDIUM_NOT_ACCESSIBLE)
1591  CHK_ERR_WIN32A(ERROR_UNABLE_TO_LOAD_MEDIUM)
1592  CHK_ERR_WIN32A(ERROR_UNABLE_TO_INVENTORY_DRIVE)
1593  CHK_ERR_WIN32A(ERROR_UNABLE_TO_INVENTORY_SLOT)
1594  CHK_ERR_WIN32A(ERROR_UNABLE_TO_INVENTORY_TRANSPORT)
1595  CHK_ERR_WIN32A(ERROR_TRANSPORT_FULL)
1596  CHK_ERR_WIN32A(ERROR_CONTROLLING_IEPORT)
1597  CHK_ERR_WIN32A(ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA)
1598  CHK_ERR_WIN32A(ERROR_CLEANER_SLOT_SET)
1599  CHK_ERR_WIN32A(ERROR_CLEANER_SLOT_NOT_SET)
1600  CHK_ERR_WIN32A(ERROR_CLEANER_CARTRIDGE_SPENT)
1601  CHK_ERR_WIN32A(ERROR_UNEXPECTED_OMID)
1602  CHK_ERR_WIN32A(ERROR_CANT_DELETE_LAST_ITEM)
1603  CHK_ERR_WIN32A(ERROR_MESSAGE_EXCEEDS_MAX_SIZE)
1604  CHK_ERR_WIN32A(ERROR_FILE_OFFLINE)
1605  CHK_ERR_WIN32A(ERROR_REMOTE_STORAGE_NOT_ACTIVE)
1606  CHK_ERR_WIN32A(ERROR_REMOTE_STORAGE_MEDIA_ERROR)
1607  CHK_ERR_WIN32A(ERROR_NOT_A_REPARSE_POINT)
1608  CHK_ERR_WIN32A(ERROR_REPARSE_ATTRIBUTE_CONFLICT)
1609  CHK_ERR_WIN32A(ERROR_INVALID_REPARSE_DATA)
1610  CHK_ERR_WIN32A(ERROR_DEPENDENT_RESOURCE_EXISTS)
1611  CHK_ERR_WIN32A(ERROR_DEPENDENCY_NOT_FOUND)
1612  CHK_ERR_WIN32A(ERROR_DEPENDENCY_ALREADY_EXISTS)
1613  CHK_ERR_WIN32A(ERROR_RESOURCE_NOT_ONLINE)
1614  CHK_ERR_WIN32A(ERROR_HOST_NODE_NOT_AVAILABLE)
1615  CHK_ERR_WIN32A(ERROR_RESOURCE_NOT_AVAILABLE)
1616  CHK_ERR_WIN32A(ERROR_RESOURCE_NOT_FOUND)
1617  CHK_ERR_WIN32A(ERROR_SHUTDOWN_CLUSTER)
1618  CHK_ERR_WIN32A(ERROR_CANT_EVICT_ACTIVE_NODE)
1619  CHK_ERR_WIN32A(ERROR_OBJECT_ALREADY_EXISTS)
1620  CHK_ERR_WIN32A(ERROR_OBJECT_IN_LIST)
1621  CHK_ERR_WIN32A(ERROR_GROUP_NOT_AVAILABLE)
1622  CHK_ERR_WIN32A(ERROR_GROUP_NOT_FOUND)
1623  CHK_ERR_WIN32A(ERROR_GROUP_NOT_ONLINE)
1624  CHK_ERR_WIN32A(ERROR_HOST_NODE_NOT_RESOURCE_OWNER)
1625  CHK_ERR_WIN32A(ERROR_HOST_NODE_NOT_GROUP_OWNER)
1626  CHK_ERR_WIN32A(ERROR_RESMON_CREATE_FAILED)
1627  CHK_ERR_WIN32A(ERROR_RESMON_ONLINE_FAILED)
1628  CHK_ERR_WIN32A(ERROR_RESOURCE_ONLINE)
1629  CHK_ERR_WIN32A(ERROR_QUORUM_RESOURCE)
1630  CHK_ERR_WIN32A(ERROR_NOT_QUORUM_CAPABLE)
1631  CHK_ERR_WIN32A(ERROR_CLUSTER_SHUTTING_DOWN)
1632  CHK_ERR_WIN32A(ERROR_INVALID_STATE)
1633  CHK_ERR_WIN32A(ERROR_RESOURCE_PROPERTIES_STORED)
1634  CHK_ERR_WIN32A(ERROR_NOT_QUORUM_CLASS)
1635  CHK_ERR_WIN32A(ERROR_CORE_RESOURCE)
1636  CHK_ERR_WIN32A(ERROR_QUORUM_RESOURCE_ONLINE_FAILED)
1637  CHK_ERR_WIN32A(ERROR_QUORUMLOG_OPEN_FAILED)
1638  CHK_ERR_WIN32A(ERROR_CLUSTERLOG_CORRUPT)
1639  CHK_ERR_WIN32A(ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE)
1640  CHK_ERR_WIN32A(ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE)
1641  CHK_ERR_WIN32A(ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND)
1642  CHK_ERR_WIN32A(ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE)
1643  CHK_ERR_WIN32A(ERROR_ENCRYPTION_FAILED)
1644  CHK_ERR_WIN32A(ERROR_DECRYPTION_FAILED)
1645  CHK_ERR_WIN32A(ERROR_FILE_ENCRYPTED)
1646  CHK_ERR_WIN32A(ERROR_NO_RECOVERY_POLICY)
1647  CHK_ERR_WIN32A(ERROR_NO_EFS)
1648  CHK_ERR_WIN32A(ERROR_WRONG_EFS)
1649  CHK_ERR_WIN32A(ERROR_NO_USER_KEYS)
1650  CHK_ERR_WIN32A(ERROR_FILE_NOT_ENCRYPTED)
1651  CHK_ERR_WIN32A(ERROR_NOT_EXPORT_FORMAT)
1652  CHK_ERR_WIN32A(ERROR_NO_BROWSER_SERVERS_FOUND)
1653  CHK_ERR_WIN32A(ERROR_CTX_WINSTATION_NAME_INVALID)
1654  CHK_ERR_WIN32A(ERROR_CTX_INVALID_PD)
1655  CHK_ERR_WIN32A(ERROR_CTX_PD_NOT_FOUND)
1656  CHK_ERR_WIN32A(ERROR_CTX_WD_NOT_FOUND)
1657  CHK_ERR_WIN32A(ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY)
1658  CHK_ERR_WIN32A(ERROR_CTX_SERVICE_NAME_COLLISION)
1659  CHK_ERR_WIN32A(ERROR_CTX_CLOSE_PENDING)
1660  CHK_ERR_WIN32A(ERROR_CTX_NO_OUTBUF)
1661  CHK_ERR_WIN32A(ERROR_CTX_MODEM_INF_NOT_FOUND)
1662  CHK_ERR_WIN32A(ERROR_CTX_INVALID_MODEMNAME)
1663  CHK_ERR_WIN32A(ERROR_CTX_MODEM_RESPONSE_ERROR)
1664  CHK_ERR_WIN32A(ERROR_CTX_MODEM_RESPONSE_TIMEOUT)
1665  CHK_ERR_WIN32A(ERROR_CTX_MODEM_RESPONSE_NO_CARRIER)
1666  CHK_ERR_WIN32A(ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE)
1667  CHK_ERR_WIN32A(ERROR_CTX_MODEM_RESPONSE_BUSY)
1668  CHK_ERR_WIN32A(ERROR_CTX_MODEM_RESPONSE_VOICE)
1669  CHK_ERR_WIN32A(ERROR_CTX_TD_ERROR)
1670  CHK_ERR_WIN32A(ERROR_CTX_WINSTATION_NOT_FOUND)
1671  CHK_ERR_WIN32A(ERROR_CTX_WINSTATION_ALREADY_EXISTS)
1672  CHK_ERR_WIN32A(ERROR_CTX_WINSTATION_BUSY)
1673  CHK_ERR_WIN32A(ERROR_CTX_BAD_VIDEO_MODE)
1674  CHK_ERR_WIN32A(ERROR_CTX_GRAPHICS_INVALID)
1675  CHK_ERR_WIN32A(ERROR_CTX_LOGON_DISABLED)
1676  CHK_ERR_WIN32A(ERROR_CTX_NOT_CONSOLE)
1677  CHK_ERR_WIN32A(ERROR_CTX_CLIENT_QUERY_TIMEOUT)
1678  CHK_ERR_WIN32A(ERROR_CTX_CONSOLE_DISCONNECT)
1679  CHK_ERR_WIN32A(ERROR_CTX_CONSOLE_CONNECT)
1680  CHK_ERR_WIN32A(ERROR_CTX_SHADOW_DENIED)
1681  CHK_ERR_WIN32A(ERROR_CTX_WINSTATION_ACCESS_DENIED)
1682  CHK_ERR_WIN32A(ERROR_CTX_INVALID_WD)
1683  CHK_ERR_WIN32A(ERROR_CTX_SHADOW_INVALID)
1684  CHK_ERR_WIN32A(ERROR_CTX_SHADOW_DISABLED)
1685  CHK_ERR_WIN32A(FRS_ERR_INVALID_API_SEQUENCE)
1686  CHK_ERR_WIN32A(FRS_ERR_STARTING_SERVICE)
1687  CHK_ERR_WIN32A(FRS_ERR_STOPPING_SERVICE)
1688  CHK_ERR_WIN32A(FRS_ERR_INTERNAL_API)
1689  CHK_ERR_WIN32A(FRS_ERR_INTERNAL)
1690  CHK_ERR_WIN32A(FRS_ERR_SERVICE_COMM)
1691  CHK_ERR_WIN32A(FRS_ERR_INSUFFICIENT_PRIV)
1692  CHK_ERR_WIN32A(FRS_ERR_AUTHENTICATION)
1693  CHK_ERR_WIN32A(FRS_ERR_PARENT_INSUFFICIENT_PRIV)
1694  CHK_ERR_WIN32A(FRS_ERR_PARENT_AUTHENTICATION)
1695  CHK_ERR_WIN32A(FRS_ERR_CHILD_TO_PARENT_COMM)
1696  CHK_ERR_WIN32A(FRS_ERR_PARENT_TO_CHILD_COMM)
1697  CHK_ERR_WIN32A(FRS_ERR_SYSVOL_POPULATE)
1698  CHK_ERR_WIN32A(FRS_ERR_SYSVOL_POPULATE_TIMEOUT)
1699  CHK_ERR_WIN32A(FRS_ERR_SYSVOL_IS_BUSY)
1700  CHK_ERR_WIN32A(FRS_ERR_SYSVOL_DEMOTE)
1701  CHK_ERR_WIN32A(FRS_ERR_INVALID_SERVICE_PARAMETER)
1702 // CHK_ERR_WIN32A(DS_S_SUCCESS)
1703  CHK_ERR_WIN32A(ERROR_DS_NOT_INSTALLED)
1704  CHK_ERR_WIN32A(ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY)
1705  CHK_ERR_WIN32A(ERROR_DS_NO_ATTRIBUTE_OR_VALUE)
1706  CHK_ERR_WIN32A(ERROR_DS_INVALID_ATTRIBUTE_SYNTAX)
1707  CHK_ERR_WIN32A(ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED)
1708  CHK_ERR_WIN32A(ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS)
1709  CHK_ERR_WIN32A(ERROR_DS_BUSY)
1710  CHK_ERR_WIN32A(ERROR_DS_UNAVAILABLE)
1711  CHK_ERR_WIN32A(ERROR_DS_NO_RIDS_ALLOCATED)
1712  CHK_ERR_WIN32A(ERROR_DS_NO_MORE_RIDS)
1713  CHK_ERR_WIN32A(ERROR_DS_INCORRECT_ROLE_OWNER)
1714  CHK_ERR_WIN32A(ERROR_DS_RIDMGR_INIT_ERROR)
1715  CHK_ERR_WIN32A(ERROR_DS_OBJ_CLASS_VIOLATION)
1716  CHK_ERR_WIN32A(ERROR_DS_CANT_ON_NON_LEAF)
1717  CHK_ERR_WIN32A(ERROR_DS_CANT_ON_RDN)
1718  CHK_ERR_WIN32A(ERROR_DS_CANT_MOD_OBJ_CLASS)
1719  CHK_ERR_WIN32A(ERROR_DS_CROSS_DOM_MOVE_ERROR)
1720  CHK_ERR_WIN32A(ERROR_DS_GC_NOT_AVAILABLE)
1721  CHK_ERR_WIN32A(ERROR_SHARED_POLICY)
1722  CHK_ERR_WIN32A(ERROR_POLICY_OBJECT_NOT_FOUND)
1723  CHK_ERR_WIN32A(ERROR_POLICY_ONLY_IN_DS)
1724  CHK_ERR_WIN32A(ERROR_PROMOTION_ACTIVE)
1725  CHK_ERR_WIN32A(ERROR_NO_PROMOTION_ACTIVE)
1726  CHK_ERR_WIN32A(ERROR_DS_OPERATIONS_ERROR)
1727  CHK_ERR_WIN32A(ERROR_DS_PROTOCOL_ERROR)
1728  CHK_ERR_WIN32A(ERROR_DS_TIMELIMIT_EXCEEDED)
1729  CHK_ERR_WIN32A(ERROR_DS_SIZELIMIT_EXCEEDED)
1730  CHK_ERR_WIN32A(ERROR_DS_ADMIN_LIMIT_EXCEEDED)
1731  CHK_ERR_WIN32A(ERROR_DS_COMPARE_FALSE)
1732  CHK_ERR_WIN32A(ERROR_DS_COMPARE_TRUE)
1733  CHK_ERR_WIN32A(ERROR_DS_AUTH_METHOD_NOT_SUPPORTED)
1734  CHK_ERR_WIN32A(ERROR_DS_STRONG_AUTH_REQUIRED)
1735  CHK_ERR_WIN32A(ERROR_DS_INAPPROPRIATE_AUTH)
1736  CHK_ERR_WIN32A(ERROR_DS_AUTH_UNKNOWN)
1737  CHK_ERR_WIN32A(ERROR_DS_REFERRAL)
1738  CHK_ERR_WIN32A(ERROR_DS_UNAVAILABLE_CRIT_EXTENSION)
1739  CHK_ERR_WIN32A(ERROR_DS_CONFIDENTIALITY_REQUIRED)
1740  CHK_ERR_WIN32A(ERROR_DS_INAPPROPRIATE_MATCHING)
1741  CHK_ERR_WIN32A(ERROR_DS_CONSTRAINT_VIOLATION)
1742  CHK_ERR_WIN32A(ERROR_DS_NO_SUCH_OBJECT)
1743  CHK_ERR_WIN32A(ERROR_DS_ALIAS_PROBLEM)
1744  CHK_ERR_WIN32A(ERROR_DS_INVALID_DN_SYNTAX)
1745  CHK_ERR_WIN32A(ERROR_DS_IS_LEAF)
1746  CHK_ERR_WIN32A(ERROR_DS_ALIAS_DEREF_PROBLEM)
1747  CHK_ERR_WIN32A(ERROR_DS_UNWILLING_TO_PERFORM)
1748  CHK_ERR_WIN32A(ERROR_DS_LOOP_DETECT)
1749  CHK_ERR_WIN32A(ERROR_DS_NAMING_VIOLATION)
1750  CHK_ERR_WIN32A(ERROR_DS_OBJECT_RESULTS_TOO_LARGE)
1751  CHK_ERR_WIN32A(ERROR_DS_AFFECTS_MULTIPLE_DSAS)
1752  CHK_ERR_WIN32A(ERROR_DS_SERVER_DOWN)
1753  CHK_ERR_WIN32A(ERROR_DS_LOCAL_ERROR)
1754  CHK_ERR_WIN32A(ERROR_DS_ENCODING_ERROR)
1755  CHK_ERR_WIN32A(ERROR_DS_DECODING_ERROR)
1756  CHK_ERR_WIN32A(ERROR_DS_FILTER_UNKNOWN)
1757  CHK_ERR_WIN32A(ERROR_DS_PARAM_ERROR)
1758  CHK_ERR_WIN32A(ERROR_DS_NOT_SUPPORTED)
1759  CHK_ERR_WIN32A(ERROR_DS_NO_RESULTS_RETURNED)
1760  CHK_ERR_WIN32A(ERROR_DS_CONTROL_NOT_FOUND)
1761  CHK_ERR_WIN32A(ERROR_DS_CLIENT_LOOP)
1762  CHK_ERR_WIN32A(ERROR_DS_REFERRAL_LIMIT_EXCEEDED)
1763  CHK_ERR_WIN32A(ERROR_DS_ROOT_MUST_BE_NC)
1764  CHK_ERR_WIN32A(ERROR_DS_ADD_REPLICA_INHIBITED)
1765  CHK_ERR_WIN32A(ERROR_DS_ATT_NOT_DEF_IN_SCHEMA)
1766  CHK_ERR_WIN32A(ERROR_DS_MAX_OBJ_SIZE_EXCEEDED)
1767  CHK_ERR_WIN32A(ERROR_DS_OBJ_STRING_NAME_EXISTS)
1768  CHK_ERR_WIN32A(ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA)
1769  CHK_ERR_WIN32A(ERROR_DS_RDN_DOESNT_MATCH_SCHEMA)
1770  CHK_ERR_WIN32A(ERROR_DS_NO_REQUESTED_ATTS_FOUND)
1771  CHK_ERR_WIN32A(ERROR_DS_USER_BUFFER_TO_SMALL)
1772  CHK_ERR_WIN32A(ERROR_DS_ATT_IS_NOT_ON_OBJ)
1773  CHK_ERR_WIN32A(ERROR_DS_ILLEGAL_MOD_OPERATION)
1774  CHK_ERR_WIN32A(ERROR_DS_OBJ_TOO_LARGE)
1775  CHK_ERR_WIN32A(ERROR_DS_BAD_INSTANCE_TYPE)
1776  CHK_ERR_WIN32A(ERROR_DS_MASTERDSA_REQUIRED)
1777  CHK_ERR_WIN32A(ERROR_DS_OBJECT_CLASS_REQUIRED)
1778  CHK_ERR_WIN32A(ERROR_DS_MISSING_REQUIRED_ATT)
1779  CHK_ERR_WIN32A(ERROR_DS_ATT_NOT_DEF_FOR_CLASS)
1780  CHK_ERR_WIN32A(ERROR_DS_ATT_ALREADY_EXISTS)
1781  CHK_ERR_WIN32A(ERROR_DS_CANT_ADD_ATT_VALUES)
1782  CHK_ERR_WIN32A(ERROR_DS_SINGLE_VALUE_CONSTRAINT)
1783  CHK_ERR_WIN32A(ERROR_DS_RANGE_CONSTRAINT)
1784  CHK_ERR_WIN32A(ERROR_DS_ATT_VAL_ALREADY_EXISTS)
1785  CHK_ERR_WIN32A(ERROR_DS_CANT_REM_MISSING_ATT)
1786  CHK_ERR_WIN32A(ERROR_DS_CANT_REM_MISSING_ATT_VAL)
1787  CHK_ERR_WIN32A(ERROR_DS_ROOT_CANT_BE_SUBREF)
1788  CHK_ERR_WIN32A(ERROR_DS_NO_CHAINING)
1789  CHK_ERR_WIN32A(ERROR_DS_NO_CHAINED_EVAL)
1790  CHK_ERR_WIN32A(ERROR_DS_NO_PARENT_OBJECT)
1791  CHK_ERR_WIN32A(ERROR_DS_PARENT_IS_AN_ALIAS)
1792  CHK_ERR_WIN32A(ERROR_DS_CANT_MIX_MASTER_AND_REPS)
1793  CHK_ERR_WIN32A(ERROR_DS_CHILDREN_EXIST)
1794  CHK_ERR_WIN32A(ERROR_DS_OBJ_NOT_FOUND)
1795  CHK_ERR_WIN32A(ERROR_DS_ALIASED_OBJ_MISSING)
1796  CHK_ERR_WIN32A(ERROR_DS_BAD_NAME_SYNTAX)
1797  CHK_ERR_WIN32A(ERROR_DS_ALIAS_POINTS_TO_ALIAS)
1798  CHK_ERR_WIN32A(ERROR_DS_CANT_DEREF_ALIAS)
1799  CHK_ERR_WIN32A(ERROR_DS_OUT_OF_SCOPE)
1800  CHK_ERR_WIN32A(ERROR_DS_CANT_DELETE_DSA_OBJ)
1801  CHK_ERR_WIN32A(ERROR_DS_GENERIC_ERROR)
1802  CHK_ERR_WIN32A(ERROR_DS_DSA_MUST_BE_INT_MASTER)
1803  CHK_ERR_WIN32A(ERROR_DS_CLASS_NOT_DSA)
1804  CHK_ERR_WIN32A(ERROR_DS_INSUFF_ACCESS_RIGHTS)
1805  CHK_ERR_WIN32A(ERROR_DS_ILLEGAL_SUPERIOR)
1806  CHK_ERR_WIN32A(ERROR_DS_ATTRIBUTE_OWNED_BY_SAM)
1807  CHK_ERR_WIN32A(ERROR_DS_NAME_TOO_MANY_PARTS)
1808  CHK_ERR_WIN32A(ERROR_DS_NAME_TOO_LONG)
1809  CHK_ERR_WIN32A(ERROR_DS_NAME_VALUE_TOO_LONG)
1810  CHK_ERR_WIN32A(ERROR_DS_NAME_UNPARSEABLE)
1811  CHK_ERR_WIN32A(ERROR_DS_NAME_TYPE_UNKNOWN)
1812  CHK_ERR_WIN32A(ERROR_DS_NOT_AN_OBJECT)
1813  CHK_ERR_WIN32A(ERROR_DS_SEC_DESC_TOO_SHORT)
1814  CHK_ERR_WIN32A(ERROR_DS_SEC_DESC_INVALID)
1815  CHK_ERR_WIN32A(ERROR_DS_NO_DELETED_NAME)
1816  CHK_ERR_WIN32A(ERROR_DS_SUBREF_MUST_HAVE_PARENT)
1817  CHK_ERR_WIN32A(ERROR_DS_NCNAME_MUST_BE_NC)
1818  CHK_ERR_WIN32A(ERROR_DS_CANT_ADD_SYSTEM_ONLY)
1819  CHK_ERR_WIN32A(ERROR_DS_CLASS_MUST_BE_CONCRETE)
1820  CHK_ERR_WIN32A(ERROR_DS_INVALID_DMD)
1821  CHK_ERR_WIN32A(ERROR_DS_OBJ_GUID_EXISTS)
1822  CHK_ERR_WIN32A(ERROR_DS_NOT_ON_BACKLINK)
1823  CHK_ERR_WIN32A(ERROR_DS_NO_CROSSREF_FOR_NC)
1824  CHK_ERR_WIN32A(ERROR_DS_SHUTTING_DOWN)
1825  CHK_ERR_WIN32A(ERROR_DS_UNKNOWN_OPERATION)
1826  CHK_ERR_WIN32A(ERROR_DS_INVALID_ROLE_OWNER)
1827  CHK_ERR_WIN32A(ERROR_DS_COULDNT_CONTACT_FSMO)
1828  CHK_ERR_WIN32A(ERROR_DS_CROSS_NC_DN_RENAME)
1829  CHK_ERR_WIN32A(ERROR_DS_CANT_MOD_SYSTEM_ONLY)
1830  CHK_ERR_WIN32A(ERROR_DS_REPLICATOR_ONLY)
1831  CHK_ERR_WIN32A(ERROR_DS_OBJ_CLASS_NOT_DEFINED)
1832  CHK_ERR_WIN32A(ERROR_DS_OBJ_CLASS_NOT_SUBCLASS)
1833  CHK_ERR_WIN32A(ERROR_DS_NAME_REFERENCE_INVALID)
1834  CHK_ERR_WIN32A(ERROR_DS_CROSS_REF_EXISTS)
1835  CHK_ERR_WIN32A(ERROR_DS_CANT_DEL_MASTER_CROSSREF)
1836  CHK_ERR_WIN32A(ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD)
1837  CHK_ERR_WIN32A(ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX)
1838  CHK_ERR_WIN32A(ERROR_DS_DUP_RDN)
1839  CHK_ERR_WIN32A(ERROR_DS_DUP_OID)
1840  CHK_ERR_WIN32A(ERROR_DS_DUP_MAPI_ID)
1841  CHK_ERR_WIN32A(ERROR_DS_DUP_SCHEMA_ID_GUID)
1842  CHK_ERR_WIN32A(ERROR_DS_DUP_LDAP_DISPLAY_NAME)
1843  CHK_ERR_WIN32A(ERROR_DS_SEMANTIC_ATT_TEST)
1844  CHK_ERR_WIN32A(ERROR_DS_SYNTAX_MISMATCH)
1845  CHK_ERR_WIN32A(ERROR_DS_EXISTS_IN_MUST_HAVE)
1846  CHK_ERR_WIN32A(ERROR_DS_EXISTS_IN_MAY_HAVE)
1847  CHK_ERR_WIN32A(ERROR_DS_NONEXISTENT_MAY_HAVE)
1848  CHK_ERR_WIN32A(ERROR_DS_NONEXISTENT_MUST_HAVE)
1849  CHK_ERR_WIN32A(ERROR_DS_AUX_CLS_TEST_FAIL)
1850  CHK_ERR_WIN32A(ERROR_DS_NONEXISTENT_POSS_SUP)
1851  CHK_ERR_WIN32A(ERROR_DS_SUB_CLS_TEST_FAIL)
1852  CHK_ERR_WIN32A(ERROR_DS_BAD_RDN_ATT_ID_SYNTAX)
1853  CHK_ERR_WIN32A(ERROR_DS_EXISTS_IN_AUX_CLS)
1854  CHK_ERR_WIN32A(ERROR_DS_EXISTS_IN_SUB_CLS)
1855  CHK_ERR_WIN32A(ERROR_DS_EXISTS_IN_POSS_SUP)
1856  CHK_ERR_WIN32A(ERROR_DS_RECALCSCHEMA_FAILED)
1857  CHK_ERR_WIN32A(ERROR_DS_TREE_DELETE_NOT_FINISHED)
1858  CHK_ERR_WIN32A(ERROR_DS_CANT_DELETE)
1859  CHK_ERR_WIN32A(ERROR_DS_ATT_SCHEMA_REQ_ID)
1860  CHK_ERR_WIN32A(ERROR_DS_BAD_ATT_SCHEMA_SYNTAX)
1861  CHK_ERR_WIN32A(ERROR_DS_CANT_CACHE_ATT)
1862  CHK_ERR_WIN32A(ERROR_DS_CANT_CACHE_CLASS)
1863  CHK_ERR_WIN32A(ERROR_DS_CANT_REMOVE_ATT_CACHE)
1864  CHK_ERR_WIN32A(ERROR_DS_CANT_REMOVE_CLASS_CACHE)
1865  CHK_ERR_WIN32A(ERROR_DS_CANT_RETRIEVE_DN)
1866  CHK_ERR_WIN32A(ERROR_DS_MISSING_SUPREF)
1867  CHK_ERR_WIN32A(ERROR_DS_CANT_RETRIEVE_INSTANCE)
1868  CHK_ERR_WIN32A(ERROR_DS_CODE_INCONSISTENCY)
1869  CHK_ERR_WIN32A(ERROR_DS_DATABASE_ERROR)
1870  CHK_ERR_WIN32A(ERROR_DS_GOVERNSID_MISSING)
1871  CHK_ERR_WIN32A(ERROR_DS_MISSING_EXPECTED_ATT)
1872  CHK_ERR_WIN32A(ERROR_DS_NCNAME_MISSING_CR_REF)
1873  CHK_ERR_WIN32A(ERROR_DS_SECURITY_CHECKING_ERROR)
1874  CHK_ERR_WIN32A(ERROR_DS_SCHEMA_NOT_LOADED)
1875  CHK_ERR_WIN32A(ERROR_DS_SCHEMA_ALLOC_FAILED)
1876  CHK_ERR_WIN32A(ERROR_DS_ATT_SCHEMA_REQ_SYNTAX)
1877  CHK_ERR_WIN32A(ERROR_DS_GCVERIFY_ERROR)
1878  CHK_ERR_WIN32A(ERROR_DS_DRA_SCHEMA_MISMATCH)
1879  CHK_ERR_WIN32A(ERROR_DS_CANT_FIND_DSA_OBJ)
1880  CHK_ERR_WIN32A(ERROR_DS_CANT_FIND_EXPECTED_NC)
1881  CHK_ERR_WIN32A(ERROR_DS_CANT_FIND_NC_IN_CACHE)
1882  CHK_ERR_WIN32A(ERROR_DS_CANT_RETRIEVE_CHILD)
1883  CHK_ERR_WIN32A(ERROR_DS_SECURITY_ILLEGAL_MODIFY)
1884  CHK_ERR_WIN32A(ERROR_DS_CANT_REPLACE_HIDDEN_REC)
1885  CHK_ERR_WIN32A(ERROR_DS_BAD_HIERARCHY_FILE)
1886  CHK_ERR_WIN32A(ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED)
1887  CHK_ERR_WIN32A(ERROR_DS_CONFIG_PARAM_MISSING)
1888  CHK_ERR_WIN32A(ERROR_DS_COUNTING_AB_INDICES_FAILED)
1889  CHK_ERR_WIN32A(ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED)
1890  CHK_ERR_WIN32A(ERROR_DS_INTERNAL_FAILURE)
1891  CHK_ERR_WIN32A(ERROR_DS_UNKNOWN_ERROR)
1892  CHK_ERR_WIN32A(ERROR_DS_ROOT_REQUIRES_CLASS_TOP)
1893  CHK_ERR_WIN32A(ERROR_DS_REFUSING_FSMO_ROLES)
1894  CHK_ERR_WIN32A(ERROR_DS_MISSING_FSMO_SETTINGS)
1895  CHK_ERR_WIN32A(ERROR_DS_UNABLE_TO_SURRENDER_ROLES)
1896  CHK_ERR_WIN32A(ERROR_DS_DRA_GENERIC)
1897  CHK_ERR_WIN32A(ERROR_DS_DRA_INVALID_PARAMETER)
1898  CHK_ERR_WIN32A(ERROR_DS_DRA_BUSY)
1899  CHK_ERR_WIN32A(ERROR_DS_DRA_BAD_DN)
1900  CHK_ERR_WIN32A(ERROR_DS_DRA_BAD_NC)
1901  CHK_ERR_WIN32A(ERROR_DS_DRA_DN_EXISTS)
1902  CHK_ERR_WIN32A(ERROR_DS_DRA_INTERNAL_ERROR)
1903  CHK_ERR_WIN32A(ERROR_DS_DRA_INCONSISTENT_DIT)
1904  CHK_ERR_WIN32A(ERROR_DS_DRA_CONNECTION_FAILED)
1905  CHK_ERR_WIN32A(ERROR_DS_DRA_BAD_INSTANCE_TYPE)
1906  CHK_ERR_WIN32A(ERROR_DS_DRA_OUT_OF_MEM)
1907  CHK_ERR_WIN32A(ERROR_DS_DRA_MAIL_PROBLEM)
1908  CHK_ERR_WIN32A(ERROR_DS_DRA_REF_ALREADY_EXISTS)
1909  CHK_ERR_WIN32A(ERROR_DS_DRA_REF_NOT_FOUND)
1910  CHK_ERR_WIN32A(ERROR_DS_DRA_OBJ_IS_REP_SOURCE)
1911  CHK_ERR_WIN32A(ERROR_DS_DRA_DB_ERROR)
1912  CHK_ERR_WIN32A(ERROR_DS_DRA_NO_REPLICA)
1913  CHK_ERR_WIN32A(ERROR_DS_DRA_ACCESS_DENIED)
1914  CHK_ERR_WIN32A(ERROR_DS_DRA_NOT_SUPPORTED)
1915  CHK_ERR_WIN32A(ERROR_DS_DRA_RPC_CANCELLED)
1916  CHK_ERR_WIN32A(ERROR_DS_DRA_SOURCE_DISABLED)
1917  CHK_ERR_WIN32A(ERROR_DS_DRA_SINK_DISABLED)
1918  CHK_ERR_WIN32A(ERROR_DS_DRA_NAME_COLLISION)
1919  CHK_ERR_WIN32A(ERROR_DS_DRA_SOURCE_REINSTALLED)
1920  CHK_ERR_WIN32A(ERROR_DS_DRA_MISSING_PARENT)
1921  CHK_ERR_WIN32A(ERROR_DS_DRA_PREEMPTED)
1922  CHK_ERR_WIN32A(ERROR_DS_DRA_ABANDON_SYNC)
1923  CHK_ERR_WIN32A(ERROR_DS_DRA_SHUTDOWN)
1924  CHK_ERR_WIN32A(ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET)
1925  CHK_ERR_WIN32A(ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA)
1926  CHK_ERR_WIN32A(ERROR_DS_DRA_EXTN_CONNECTION_FAILED)
1927  CHK_ERR_WIN32A(ERROR_DS_INSTALL_SCHEMA_MISMATCH)
1928  CHK_ERR_WIN32A(ERROR_DS_DUP_LINK_ID)
1929  CHK_ERR_WIN32A(ERROR_DS_NAME_ERROR_RESOLVING)
1930  CHK_ERR_WIN32A(ERROR_DS_NAME_ERROR_NOT_FOUND)
1931  CHK_ERR_WIN32A(ERROR_DS_NAME_ERROR_NOT_UNIQUE)
1932  CHK_ERR_WIN32A(ERROR_DS_NAME_ERROR_NO_MAPPING)
1933  CHK_ERR_WIN32A(ERROR_DS_NAME_ERROR_DOMAIN_ONLY)
1934  CHK_ERR_WIN32A(ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING)
1935  CHK_ERR_WIN32A(ERROR_DS_CONSTRUCTED_ATT_MOD)
1936  CHK_ERR_WIN32A(ERROR_DS_WRONG_OM_OBJ_CLASS)
1937  CHK_ERR_WIN32A(ERROR_DS_DRA_REPL_PENDING)
1938  CHK_ERR_WIN32A(DNS_ERROR_RESPONSE_CODES_BASE)
1939 // CHK_ERR_WIN32A(DNS_ERROR_MASK)
1940  CHK_ERR_WIN32A(DNS_ERROR_RCODE_FORMAT_ERROR)
1941  CHK_ERR_WIN32A(DNS_ERROR_RCODE_SERVER_FAILURE)
1942  CHK_ERR_WIN32A(DNS_ERROR_RCODE_NAME_ERROR)
1943  CHK_ERR_WIN32A(DNS_ERROR_RCODE_NOT_IMPLEMENTED)
1944  CHK_ERR_WIN32A(DNS_ERROR_RCODE_REFUSED)
1945  CHK_ERR_WIN32A(DNS_ERROR_RCODE_YXDOMAIN)
1946  CHK_ERR_WIN32A(DNS_ERROR_RCODE_YXRRSET)
1947  CHK_ERR_WIN32A(DNS_ERROR_RCODE_NXRRSET)
1948  CHK_ERR_WIN32A(DNS_ERROR_RCODE_NOTAUTH)
1949  CHK_ERR_WIN32A(DNS_ERROR_RCODE_NOTZONE)
1950  CHK_ERR_WIN32A(DNS_ERROR_RCODE_BADSIG)
1951  CHK_ERR_WIN32A(DNS_ERROR_RCODE_BADKEY)
1952  CHK_ERR_WIN32A(DNS_ERROR_RCODE_BADTIME)
1953  CHK_ERR_WIN32A(DNS_ERROR_PACKET_FMT_BASE)
1954  CHK_ERR_WIN32A(DNS_INFO_NO_RECORDS)
1955  CHK_ERR_WIN32A(DNS_ERROR_BAD_PACKET)
1956  CHK_ERR_WIN32A(DNS_ERROR_NO_PACKET)
1957  CHK_ERR_WIN32A(DNS_ERROR_RCODE)
1958  CHK_ERR_WIN32A(DNS_ERROR_UNSECURE_PACKET)
1959  CHK_ERR_WIN32A(DNS_ERROR_GENERAL_API_BASE)
1960  CHK_ERR_WIN32A(DNS_ERROR_INVALID_TYPE)
1961  CHK_ERR_WIN32A(DNS_ERROR_INVALID_IP_ADDRESS)
1962  CHK_ERR_WIN32A(DNS_ERROR_INVALID_PROPERTY)
1963  CHK_ERR_WIN32A(DNS_ERROR_TRY_AGAIN_LATER)
1964  CHK_ERR_WIN32A(DNS_ERROR_NOT_UNIQUE)
1965  CHK_ERR_WIN32A(DNS_ERROR_NON_RFC_NAME)
1966  CHK_ERR_WIN32A(DNS_STATUS_FQDN)
1967  CHK_ERR_WIN32A(DNS_STATUS_DOTTED_NAME)
1968  CHK_ERR_WIN32A(DNS_STATUS_SINGLE_PART_NAME)
1969  CHK_ERR_WIN32A(DNS_ERROR_ZONE_BASE)
1970  CHK_ERR_WIN32A(DNS_ERROR_ZONE_DOES_NOT_EXIST)
1971  CHK_ERR_WIN32A(DNS_ERROR_NO_ZONE_INFO)
1972  CHK_ERR_WIN32A(DNS_ERROR_INVALID_ZONE_OPERATION)
1973  CHK_ERR_WIN32A(DNS_ERROR_ZONE_CONFIGURATION_ERROR)
1974  CHK_ERR_WIN32A(DNS_ERROR_ZONE_HAS_NO_SOA_RECORD)
1975  CHK_ERR_WIN32A(DNS_ERROR_ZONE_HAS_NO_NS_RECORDS)
1976  CHK_ERR_WIN32A(DNS_ERROR_ZONE_LOCKED)
1977  CHK_ERR_WIN32A(DNS_ERROR_ZONE_CREATION_FAILED)
1978  CHK_ERR_WIN32A(DNS_ERROR_ZONE_ALREADY_EXISTS)
1979  CHK_ERR_WIN32A(DNS_ERROR_AUTOZONE_ALREADY_EXISTS)
1980  CHK_ERR_WIN32A(DNS_ERROR_INVALID_ZONE_TYPE)
1981  CHK_ERR_WIN32A(DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP)
1982  CHK_ERR_WIN32A(DNS_ERROR_ZONE_NOT_SECONDARY)
1983  CHK_ERR_WIN32A(DNS_ERROR_NEED_SECONDARY_ADDRESSES)
1984  CHK_ERR_WIN32A(DNS_ERROR_WINS_INIT_FAILED)
1985  CHK_ERR_WIN32A(DNS_ERROR_NEED_WINS_SERVERS)
1986  CHK_ERR_WIN32A(DNS_ERROR_NBSTAT_INIT_FAILED)
1987  CHK_ERR_WIN32A(DNS_ERROR_SOA_DELETE_INVALID)
1988  CHK_ERR_WIN32A(DNS_ERROR_DATAFILE_BASE)
1989  CHK_ERR_WIN32A(DNS_ERROR_PRIMARY_REQUIRES_DATAFILE)
1990  CHK_ERR_WIN32A(DNS_ERROR_INVALID_DATAFILE_NAME)
1991  CHK_ERR_WIN32A(DNS_ERROR_DATAFILE_OPEN_FAILURE)
1992  CHK_ERR_WIN32A(DNS_ERROR_FILE_WRITEBACK_FAILED)
1993  CHK_ERR_WIN32A(DNS_ERROR_DATAFILE_PARSING)
1994  CHK_ERR_WIN32A(DNS_ERROR_DATABASE_BASE)
1995  CHK_ERR_WIN32A(DNS_ERROR_RECORD_DOES_NOT_EXIST)
1996  CHK_ERR_WIN32A(DNS_ERROR_RECORD_FORMAT)
1997  CHK_ERR_WIN32A(DNS_ERROR_NODE_CREATION_FAILED)
1998  CHK_ERR_WIN32A(DNS_ERROR_UNKNOWN_RECORD_TYPE)
1999  CHK_ERR_WIN32A(DNS_ERROR_RECORD_TIMED_OUT)
2000  CHK_ERR_WIN32A(DNS_ERROR_NAME_NOT_IN_ZONE)
2001  CHK_ERR_WIN32A(DNS_ERROR_CNAME_LOOP)
2002  CHK_ERR_WIN32A(DNS_ERROR_NODE_IS_CNAME)
2003  CHK_ERR_WIN32A(DNS_ERROR_CNAME_COLLISION)
2004  CHK_ERR_WIN32A(DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT)
2005  CHK_ERR_WIN32A(DNS_ERROR_RECORD_ALREADY_EXISTS)
2006  CHK_ERR_WIN32A(DNS_ERROR_SECONDARY_DATA)
2007  CHK_ERR_WIN32A(DNS_ERROR_NO_CREATE_CACHE_DATA)
2008  CHK_ERR_WIN32A(DNS_ERROR_NAME_DOES_NOT_EXIST)
2009  CHK_ERR_WIN32A(DNS_WARNING_PTR_CREATE_FAILED)
2010  CHK_ERR_WIN32A(DNS_WARNING_DOMAIN_UNDELETED)
2011  CHK_ERR_WIN32A(DNS_ERROR_DS_UNAVAILABLE)
2012  CHK_ERR_WIN32A(DNS_ERROR_DS_ZONE_ALREADY_EXISTS)
2013  CHK_ERR_WIN32A(DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE)
2014  CHK_ERR_WIN32A(DNS_ERROR_OPERATION_BASE)
2015  CHK_ERR_WIN32A(DNS_INFO_AXFR_COMPLETE)
2016  CHK_ERR_WIN32A(DNS_ERROR_AXFR)
2017  CHK_ERR_WIN32A(DNS_INFO_ADDED_LOCAL_WINS)
2018  CHK_ERR_WIN32A(DNS_ERROR_SECURE_BASE)
2019  CHK_ERR_WIN32A(DNS_STATUS_CONTINUE_NEEDED)
2020  CHK_ERR_WIN32A(DNS_ERROR_SETUP_BASE)
2021  CHK_ERR_WIN32A(DNS_ERROR_NO_TCPIP)
2022  CHK_ERR_WIN32A(DNS_ERROR_NO_DNS_SERVERS)
2023  CHK_ERR_WIN32A(WSABASEERR)
2024  CHK_ERR_WIN32A(WSAEINTR)
2025  CHK_ERR_WIN32A(WSAEBADF)
2026  CHK_ERR_WIN32A(WSAEACCES)
2027  CHK_ERR_WIN32A(WSAEFAULT)
2028  CHK_ERR_WIN32A(WSAEINVAL)
2029  CHK_ERR_WIN32A(WSAEMFILE)
2030  CHK_ERR_WIN32A(WSAEWOULDBLOCK)
2031  CHK_ERR_WIN32A(WSAEINPROGRESS)
2032  CHK_ERR_WIN32A(WSAEALREADY)
2033  CHK_ERR_WIN32A(WSAENOTSOCK)
2034  CHK_ERR_WIN32A(WSAEDESTADDRREQ)
2035  CHK_ERR_WIN32A(WSAEMSGSIZE)
2036  CHK_ERR_WIN32A(WSAEPROTOTYPE)
2037  CHK_ERR_WIN32A(WSAENOPROTOOPT)
2038  CHK_ERR_WIN32A(WSAEPROTONOSUPPORT)
2039  CHK_ERR_WIN32A(WSAESOCKTNOSUPPORT)
2040  CHK_ERR_WIN32A(WSAEOPNOTSUPP)
2041  CHK_ERR_WIN32A(WSAEPFNOSUPPORT)
2042  CHK_ERR_WIN32A(WSAEAFNOSUPPORT)
2043  CHK_ERR_WIN32A(WSAEADDRINUSE)
2044  CHK_ERR_WIN32A(WSAEADDRNOTAVAIL)
2045  CHK_ERR_WIN32A(WSAENETDOWN)
2046  CHK_ERR_WIN32A(WSAENETUNREACH)
2047  CHK_ERR_WIN32A(WSAENETRESET)
2048  CHK_ERR_WIN32A(WSAECONNABORTED)
2049  CHK_ERR_WIN32A(WSAECONNRESET)
2050  CHK_ERR_WIN32A(WSAENOBUFS)
2051  CHK_ERR_WIN32A(WSAEISCONN)
2052  CHK_ERR_WIN32A(WSAENOTCONN)
2053  CHK_ERR_WIN32A(WSAESHUTDOWN)
2054  CHK_ERR_WIN32A(WSAETOOMANYREFS)
2055  CHK_ERR_WIN32A(WSAETIMEDOUT)
2056  CHK_ERR_WIN32A(WSAECONNREFUSED)
2057  CHK_ERR_WIN32A(WSAELOOP)
2058  CHK_ERR_WIN32A(WSAENAMETOOLONG)
2059  CHK_ERR_WIN32A(WSAEHOSTDOWN)
2060  CHK_ERR_WIN32A(WSAEHOSTUNREACH)
2061  CHK_ERR_WIN32A(WSAENOTEMPTY)
2062  CHK_ERR_WIN32A(WSAEPROCLIM)
2063  CHK_ERR_WIN32A(WSAEUSERS)
2064  CHK_ERR_WIN32A(WSAEDQUOT)
2065  CHK_ERR_WIN32A(WSAESTALE)
2066  CHK_ERR_WIN32A(WSAEREMOTE)
2067  CHK_ERR_WIN32A(WSASYSNOTREADY)
2068  CHK_ERR_WIN32A(WSAVERNOTSUPPORTED)
2069  CHK_ERR_WIN32A(WSANOTINITIALISED)
2070  CHK_ERR_WIN32A(WSAEDISCON)
2071  CHK_ERR_WIN32A(WSAENOMORE)
2072  CHK_ERR_WIN32A(WSAECANCELLED)
2073  CHK_ERR_WIN32A(WSAEINVALIDPROCTABLE)
2074  CHK_ERR_WIN32A(WSAEINVALIDPROVIDER)
2075  CHK_ERR_WIN32A(WSAEPROVIDERFAILEDINIT)
2076  CHK_ERR_WIN32A(WSASYSCALLFAILURE)
2077  CHK_ERR_WIN32A(WSASERVICE_NOT_FOUND)
2078  CHK_ERR_WIN32A(WSATYPE_NOT_FOUND)
2079  CHK_ERR_WIN32A(WSA_E_NO_MORE)
2080  CHK_ERR_WIN32A(WSA_E_CANCELLED)
2081  CHK_ERR_WIN32A(WSAEREFUSED)
2082  CHK_ERR_WIN32A(WSAHOST_NOT_FOUND)
2083  CHK_ERR_WIN32A(WSATRY_AGAIN)
2084  CHK_ERR_WIN32A(WSANO_RECOVERY)
2085  CHK_ERR_WIN32A(WSANO_DATA)
2086  CHK_ERR_WIN32A(WSA_QOS_RECEIVERS)
2087  CHK_ERR_WIN32A(WSA_QOS_SENDERS)
2088  CHK_ERR_WIN32A(WSA_QOS_NO_SENDERS)
2089  CHK_ERR_WIN32A(WSA_QOS_NO_RECEIVERS)
2090  CHK_ERR_WIN32A(WSA_QOS_REQUEST_CONFIRMED)
2091  CHK_ERR_WIN32A(WSA_QOS_ADMISSION_FAILURE)
2092  CHK_ERR_WIN32A(WSA_QOS_POLICY_FAILURE)
2093  CHK_ERR_WIN32A(WSA_QOS_BAD_STYLE)
2094  CHK_ERR_WIN32A(WSA_QOS_BAD_OBJECT)
2095  CHK_ERR_WIN32A(WSA_QOS_TRAFFIC_CTRL_ERROR)
2096  CHK_ERR_WIN32A(WSA_QOS_GENERIC_ERROR)
2097 
2098  CHK_ERRA(CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT)
2099  CHK_ERRA(CO_E_SERVER_PAUSED)
2100  CHK_ERRA(CO_E_SERVER_NOT_PAUSED)
2101  CHK_ERRA(CO_E_CLASS_DISABLED)
2102  CHK_ERRA(CO_E_CLRNOTAVAILABLE)
2103  CHK_ERRA(CO_E_ASYNC_WORK_REJECTED)
2104  CHK_ERRA(CO_E_SERVER_INIT_TIMEOUT)
2105  CHK_ERRA(CO_E_NO_SECCTX_IN_ACTIVATE)
2106  CHK_ERRA(CO_E_TRACKER_CONFIG)
2107  CHK_ERRA(CO_E_THREADPOOL_CONFIG)
2108  CHK_ERRA(CO_E_SXS_CONFIG)
2109  CHK_ERRA(CO_E_MALFORMED_SPN)
2110  CHK_ERRA(REGDB_E_BADTHREADINGMODEL)
2111 // CHK_ERRA(EVENT_E_FIRST)
2112 // CHK_ERRA(EVENT_E_LAST)
2113 // CHK_ERRA(EVENT_S_FIRST)
2114 // CHK_ERRA(EVENT_S_LAST)
2115 // CHK_ERRA(EVENT_S_SOME_SUBSCRIBERS_FAILED)
2116 // CHK_ERRA(EVENT_E_ALL_SUBSCRIBERS_FAILED)
2117  CHK_ERRA(EVENT_S_NOSUBSCRIBERS)
2118 // CHK_ERRA(EVENT_E_QUERYSYNTAX)
2119 // CHK_ERRA(EVENT_E_QUERYFIELD)
2120 // CHK_ERRA(EVENT_E_INTERNALEXCEPTION)
2121 // CHK_ERRA(EVENT_E_INTERNALERROR)
2122 // CHK_ERRA(EVENT_E_INVALID_PER_USER_SID)
2123 // CHK_ERRA(EVENT_E_USER_EXCEPTION)
2124 // CHK_ERRA(EVENT_E_TOO_MANY_METHODS)
2125 // CHK_ERRA(EVENT_E_MISSING_EVENTCLASS)
2126 // CHK_ERRA(EVENT_E_NOT_ALL_REMOVED)
2127 // CHK_ERRA(EVENT_E_COMPLUS_NOT_INSTALLED)
2128 // CHK_ERRA(EVENT_E_CANT_MODIFY_OR_DELETE_UNCONFIGURED_OBJECT)
2129 // CHK_ERRA(EVENT_E_CANT_MODIFY_OR_DELETE_CONFIGURED_OBJECT)
2130 // CHK_ERRA(EVENT_E_INVALID_EVENT_CLASS_PARTITION)
2131 // CHK_ERRA(EVENT_E_PER_USER_SID_NOT_LOGGED_ON)
2132  CHK_ERRA(CONTEXT_E_FIRST)
2133  CHK_ERRA(CONTEXT_E_LAST)
2134  CHK_ERRA(CONTEXT_S_FIRST)
2135  CHK_ERRA(CONTEXT_S_LAST)
2136  CHK_ERRA(CONTEXT_E_ABORTED)
2137  CHK_ERRA(CONTEXT_E_ABORTING)
2138  CHK_ERRA(CONTEXT_E_NOCONTEXT)
2139 // CHK_ERRA(CONTEXT_E_WOULD_DEADLOCK)
2140  CHK_ERRA(CONTEXT_E_SYNCH_TIMEOUT)
2141  CHK_ERRA(CONTEXT_E_OLDREF)
2142  CHK_ERRA(CONTEXT_E_ROLENOTFOUND)
2143  CHK_ERRA(CONTEXT_E_TMNOTAVAILABLE)
2144  CHK_ERRA(CO_E_ACTIVATIONFAILED)
2145  CHK_ERRA(CO_E_ACTIVATIONFAILED_EVENTLOGGED)
2146  CHK_ERRA(CO_E_ACTIVATIONFAILED_CATALOGERROR)
2147  CHK_ERRA(CO_E_ACTIVATIONFAILED_TIMEOUT)
2148  CHK_ERRA(CO_E_INITIALIZATIONFAILED)
2149  CHK_ERRA(CONTEXT_E_NOJIT)
2150  CHK_ERRA(CONTEXT_E_NOTRANSACTION)
2151  CHK_ERRA(CO_E_THREADINGMODEL_CHANGED)
2152  CHK_ERRA(CO_E_NOIISINTRINSICS)
2153  CHK_ERRA(CO_E_NOCOOKIES)
2154  CHK_ERRA(CO_E_DBERROR)
2155  CHK_ERRA(CO_E_NOTPOOLED)
2156  CHK_ERRA(CO_E_NOTCONSTRUCTED)
2157  CHK_ERRA(CO_E_NOSYNCHRONIZATION)
2158 // CHK_ERRA(CO_E_ISOLEVELMISMATCH)
2159  CHK_ERRA(SCHED_S_TASK_READY)
2160  CHK_ERRA(SCHED_S_TASK_RUNNING)
2161  CHK_ERRA(SCHED_S_TASK_DISABLED)
2162  CHK_ERRA(SCHED_S_TASK_HAS_NOT_RUN)
2163  CHK_ERRA(SCHED_S_TASK_NO_MORE_RUNS)
2164  CHK_ERRA(SCHED_S_TASK_NOT_SCHEDULED)
2165  CHK_ERRA(SCHED_S_TASK_TERMINATED)
2166  CHK_ERRA(SCHED_S_TASK_NO_VALID_TRIGGERS)
2167  CHK_ERRA(SCHED_S_EVENT_TRIGGER)
2168  CHK_ERRA(SCHED_E_TRIGGER_NOT_FOUND)
2169  CHK_ERRA(SCHED_E_TASK_NOT_READY)
2170  CHK_ERRA(SCHED_E_TASK_NOT_RUNNING)
2171  CHK_ERRA(SCHED_E_SERVICE_NOT_INSTALLED)
2172  CHK_ERRA(SCHED_E_CANNOT_OPEN_TASK)
2173  CHK_ERRA(SCHED_E_INVALID_TASK)
2174  CHK_ERRA(SCHED_E_ACCOUNT_INFORMATION_NOT_SET)
2175  CHK_ERRA(SCHED_E_ACCOUNT_NAME_NOT_FOUND)
2176  CHK_ERRA(SCHED_E_ACCOUNT_DBASE_CORRUPT)
2177  CHK_ERRA(SCHED_E_NO_SECURITY_SERVICES)
2178  CHK_ERRA(SCHED_E_UNKNOWN_OBJECT_VERSION)
2179  CHK_ERRA(SCHED_E_UNSUPPORTED_ACCOUNT_OPTION)
2180  CHK_ERRA(SCHED_E_SERVICE_NOT_RUNNING)
2181  CHK_ERRA(CO_S_MACHINENAMENOTFOUND)
2182  CHK_ERRA(STG_E_STATUS_COPY_PROTECTION_FAILURE)
2183  CHK_ERRA(STG_E_CSS_AUTHENTICATION_FAILURE)
2184  CHK_ERRA(STG_E_CSS_KEY_NOT_PRESENT)
2185  CHK_ERRA(STG_E_CSS_KEY_NOT_ESTABLISHED)
2186  CHK_ERRA(STG_E_CSS_SCRAMBLED_SECTOR)
2187  CHK_ERRA(STG_E_CSS_REGION_MISMATCH)
2188  CHK_ERRA(STG_E_RESETS_EXHAUSTED)
2189  CHK_ERRA(CO_E_CANCEL_DISABLED)
2190  CHK_ERRA(ERROR_AUDITING_DISABLED)
2191  CHK_ERRA(ERROR_ALL_SIDS_FILTERED)
2192  CHK_ERRA(NTE_TEMPORARY_PROFILE)
2193  CHK_ERRA(NTE_FIXEDPARAMETER)
2194  CHK_ERRA(SEC_E_INSUFFICIENT_MEMORY)
2195  CHK_ERRA(SEC_E_INVALID_HANDLE)
2196  CHK_ERRA(SEC_E_UNSUPPORTED_FUNCTION)
2197  CHK_ERRA(SEC_E_TARGET_UNKNOWN)
2198  CHK_ERRA(SEC_E_INTERNAL_ERROR)
2199  CHK_ERRA(SEC_E_SECPKG_NOT_FOUND)
2200  CHK_ERRA(SEC_E_NOT_OWNER)
2201  CHK_ERRA(SEC_E_CANNOT_INSTALL)
2202  CHK_ERRA(SEC_E_INVALID_TOKEN)
2203  CHK_ERRA(SEC_E_CANNOT_PACK)
2204  CHK_ERRA(SEC_E_QOP_NOT_SUPPORTED)
2205  CHK_ERRA(SEC_E_NO_IMPERSONATION)
2206  CHK_ERRA(SEC_E_LOGON_DENIED)
2207  CHK_ERRA(SEC_E_UNKNOWN_CREDENTIALS)
2208  CHK_ERRA(SEC_E_NO_CREDENTIALS)
2209  CHK_ERRA(SEC_E_MESSAGE_ALTERED)
2210  CHK_ERRA(SEC_E_OUT_OF_SEQUENCE)
2211  CHK_ERRA(SEC_E_NO_AUTHENTICATING_AUTHORITY)
2212  CHK_ERRA(SEC_I_CONTINUE_NEEDED)
2213  CHK_ERRA(SEC_I_COMPLETE_NEEDED)
2214  CHK_ERRA(SEC_I_COMPLETE_AND_CONTINUE)
2215  CHK_ERRA(SEC_I_LOCAL_LOGON)
2216  CHK_ERRA(SEC_E_BAD_PKGID)
2217  CHK_ERRA(SEC_E_CONTEXT_EXPIRED)
2218  CHK_ERRA(SEC_I_CONTEXT_EXPIRED)
2219  CHK_ERRA(SEC_E_INCOMPLETE_MESSAGE)
2220  CHK_ERRA(SEC_E_INCOMPLETE_CREDENTIALS)
2221  CHK_ERRA(SEC_E_BUFFER_TOO_SMALL)
2222  CHK_ERRA(SEC_I_INCOMPLETE_CREDENTIALS)
2223  CHK_ERRA(SEC_I_RENEGOTIATE)
2224  CHK_ERRA(SEC_E_WRONG_PRINCIPAL)
2225  CHK_ERRA(SEC_I_NO_LSA_CONTEXT)
2226  CHK_ERRA(SEC_E_TIME_SKEW)
2227  CHK_ERRA(SEC_E_UNTRUSTED_ROOT)
2228  CHK_ERRA(SEC_E_ILLEGAL_MESSAGE)
2229  CHK_ERRA(SEC_E_CERT_UNKNOWN)
2230  CHK_ERRA(SEC_E_CERT_EXPIRED)
2231  CHK_ERRA(SEC_E_ENCRYPT_FAILURE)
2232  CHK_ERRA(SEC_E_DECRYPT_FAILURE)
2233  CHK_ERRA(SEC_E_ALGORITHM_MISMATCH)
2234  CHK_ERRA(SEC_E_SECURITY_QOS_FAILED)
2235  CHK_ERRA(SEC_E_UNFINISHED_CONTEXT_DELETED)
2236  CHK_ERRA(SEC_E_NO_TGT_REPLY)
2237  CHK_ERRA(SEC_E_NO_IP_ADDRESSES)
2238  CHK_ERRA(SEC_E_WRONG_CREDENTIAL_HANDLE)
2239  CHK_ERRA(SEC_E_CRYPTO_SYSTEM_INVALID)
2240  CHK_ERRA(SEC_E_MAX_REFERRALS_EXCEEDED)
2241  CHK_ERRA(SEC_E_MUST_BE_KDC)
2242  CHK_ERRA(SEC_E_STRONG_CRYPTO_NOT_SUPPORTED)
2243  CHK_ERRA(SEC_E_TOO_MANY_PRINCIPALS)
2244  CHK_ERRA(SEC_E_NO_PA_DATA)
2245  CHK_ERRA(SEC_E_PKINIT_NAME_MISMATCH)
2246  CHK_ERRA(SEC_E_SMARTCARD_LOGON_REQUIRED)
2247  CHK_ERRA(SEC_E_SHUTDOWN_IN_PROGRESS)
2248  CHK_ERRA(SEC_E_KDC_INVALID_REQUEST)
2249  CHK_ERRA(SEC_E_KDC_UNABLE_TO_REFER)
2250  CHK_ERRA(SEC_E_KDC_UNKNOWN_ETYPE)
2251  CHK_ERRA(SEC_E_UNSUPPORTED_PREAUTH)
2252  CHK_ERRA(SEC_E_DELEGATION_REQUIRED)
2253  CHK_ERRA(SEC_E_BAD_BINDINGS)
2254  CHK_ERRA(SEC_E_MULTIPLE_ACCOUNTS)
2255  CHK_ERRA(SEC_E_NO_KERB_KEY)
2256 // CHK_ERRA(SEC_E_CERT_WRONG_USAGE)
2257 // CHK_ERRA(SEC_E_DOWNGRADE_DETECTED)
2258  CHK_ERRA(SEC_E_SMARTCARD_CERT_REVOKED)
2259  CHK_ERRA(SEC_E_ISSUING_CA_UNTRUSTED)
2260  CHK_ERRA(SEC_E_REVOCATION_OFFLINE_C)
2261  CHK_ERRA(SEC_E_PKINIT_CLIENT_FAILURE)
2262  CHK_ERRA(SEC_E_SMARTCARD_CERT_EXPIRED)
2263 // CHK_ERRA(SEC_E_NO_SPM)
2264 // CHK_ERRA(SEC_E_NOT_SUPPORTED)
2265  CHK_ERRA(CRYPT_I_NEW_PROTECTION_REQUIRED)
2266  CHK_ERRA(CRYPT_E_MISSING_PUBKEY_PARA)
2267  CHK_ERRA(CRYPT_E_ASN1_ERROR)
2268  CHK_ERRA(CRYPT_E_ASN1_INTERNAL)
2269  CHK_ERRA(CRYPT_E_ASN1_EOD)
2270  CHK_ERRA(CRYPT_E_ASN1_CORRUPT)
2271  CHK_ERRA(CRYPT_E_ASN1_LARGE)
2272  CHK_ERRA(CRYPT_E_ASN1_CONSTRAINT)
2273  CHK_ERRA(CRYPT_E_ASN1_MEMORY)
2274  CHK_ERRA(CRYPT_E_ASN1_OVERFLOW)
2275  CHK_ERRA(CRYPT_E_ASN1_BADPDU)
2276  CHK_ERRA(CRYPT_E_ASN1_BADARGS)
2277  CHK_ERRA(CRYPT_E_ASN1_BADREAL)
2278  CHK_ERRA(CRYPT_E_ASN1_BADTAG)
2279  CHK_ERRA(CRYPT_E_ASN1_CHOICE)
2280  CHK_ERRA(CRYPT_E_ASN1_RULE)
2281  CHK_ERRA(CRYPT_E_ASN1_UTF8)
2282  CHK_ERRA(CRYPT_E_ASN1_PDU_TYPE)
2283  CHK_ERRA(CRYPT_E_ASN1_NYI)
2284  CHK_ERRA(CRYPT_E_ASN1_EXTENDED)
2285  CHK_ERRA(CRYPT_E_ASN1_NOEOD)
2286  CHK_ERRA(CERTSRV_E_SERVER_SUSPENDED)
2287  CHK_ERRA(CERTSRV_E_ENCODING_LENGTH)
2288  CHK_ERRA(CERTSRV_E_ROLECONFLICT)
2289  CHK_ERRA(CERTSRV_E_RESTRICTEDOFFICER)
2290  CHK_ERRA(CERTSRV_E_KEY_ARCHIVAL_NOT_CONFIGURED)
2291  CHK_ERRA(CERTSRV_E_NO_VALID_KRA)
2292  CHK_ERRA(CERTSRV_E_BAD_REQUEST_KEY_ARCHIVAL)
2293  CHK_ERRA(CERTSRV_E_NO_CAADMIN_DEFINED)
2294  CHK_ERRA(CERTSRV_E_BAD_RENEWAL_CERT_ATTRIBUTE)
2295  CHK_ERRA(CERTSRV_E_NO_DB_SESSIONS)
2296  CHK_ERRA(CERTSRV_E_ALIGNMENT_FAULT)
2297  CHK_ERRA(CERTSRV_E_ENROLL_DENIED)
2298  CHK_ERRA(CERTSRV_E_TEMPLATE_DENIED)
2299 // CHK_ERRA(CERTSRV_E_DOWNLEVEL_DC_SSL_OR_UPGRADE)
2300  CHK_ERRA(CERTSRV_E_TEMPLATE_CONFLICT)
2301  CHK_ERRA(CERTSRV_E_SUBJECT_ALT_NAME_REQUIRED)
2302  CHK_ERRA(CERTSRV_E_ARCHIVED_KEY_REQUIRED)
2303  CHK_ERRA(CERTSRV_E_SMIME_REQUIRED)
2304  CHK_ERRA(CERTSRV_E_BAD_RENEWAL_SUBJECT)
2305  CHK_ERRA(CERTSRV_E_BAD_TEMPLATE_VERSION)
2306  CHK_ERRA(CERTSRV_E_TEMPLATE_POLICY_REQUIRED)
2307  CHK_ERRA(CERTSRV_E_SIGNATURE_POLICY_REQUIRED)
2308  CHK_ERRA(CERTSRV_E_SIGNATURE_COUNT)
2309  CHK_ERRA(CERTSRV_E_SIGNATURE_REJECTED)
2310  CHK_ERRA(CERTSRV_E_ISSUANCE_POLICY_REQUIRED)
2311  CHK_ERRA(CERTSRV_E_SUBJECT_UPN_REQUIRED)
2312  CHK_ERRA(CERTSRV_E_SUBJECT_DIRECTORY_GUID_REQUIRED)
2313  CHK_ERRA(CERTSRV_E_SUBJECT_DNS_REQUIRED)
2314  CHK_ERRA(CERTSRV_E_ARCHIVED_KEY_UNEXPECTED)
2315  CHK_ERRA(CERTSRV_E_KEY_LENGTH)
2316 // CHK_ERRA(CERTSRV_E_SUBJECT_EMAIL_REQUIRED)
2317 // CHK_ERRA(CERTSRV_E_UNKNOWN_CERT_TYPE)
2318 // CHK_ERRA(CERTSRV_E_CERT_TYPE_OVERLAP)
2319  CHK_ERRA(XENROLL_E_KEY_NOT_EXPORTABLE)
2320  CHK_ERRA(XENROLL_E_CANNOT_ADD_ROOT_CERT)
2321  CHK_ERRA(XENROLL_E_RESPONSE_KA_HASH_NOT_FOUND)
2322  CHK_ERRA(XENROLL_E_RESPONSE_UNEXPECTED_KA_HASH)
2323  CHK_ERRA(XENROLL_E_RESPONSE_KA_HASH_MISMATCH)
2324  CHK_ERRA(XENROLL_E_KEYSPEC_SMIME_MISMATCH)
2325  CHK_ERRA(MSSIPOTF_E_OUTOFMEMRANGE)
2326  CHK_ERRA(MSSIPOTF_E_CANTGETOBJECT)
2327  CHK_ERRA(MSSIPOTF_E_NOHEADTABLE)
2328  CHK_ERRA(MSSIPOTF_E_BAD_MAGICNUMBER)
2329  CHK_ERRA(MSSIPOTF_E_BAD_OFFSET_TABLE)
2330  CHK_ERRA(MSSIPOTF_E_TABLE_TAGORDER)
2331  CHK_ERRA(MSSIPOTF_E_TABLE_LONGWORD)
2332  CHK_ERRA(MSSIPOTF_E_BAD_FIRST_TABLE_PLACEMENT)
2333  CHK_ERRA(MSSIPOTF_E_TABLES_OVERLAP)
2334  CHK_ERRA(MSSIPOTF_E_TABLE_PADBYTES)
2335  CHK_ERRA(MSSIPOTF_E_FILETOOSMALL)
2336  CHK_ERRA(MSSIPOTF_E_TABLE_CHECKSUM)
2337  CHK_ERRA(MSSIPOTF_E_FILE_CHECKSUM)
2338  CHK_ERRA(MSSIPOTF_E_FAILED_POLICY)
2339  CHK_ERRA(MSSIPOTF_E_FAILED_HINTS_CHECK)
2340  CHK_ERRA(MSSIPOTF_E_NOT_OPENTYPE)
2341  CHK_ERRA(MSSIPOTF_E_FILE)
2342  CHK_ERRA(MSSIPOTF_E_CRYPT)
2343  CHK_ERRA(MSSIPOTF_E_BADVERSION)
2344  CHK_ERRA(MSSIPOTF_E_DSIG_STRUCTURE)
2345  CHK_ERRA(MSSIPOTF_E_PCONST_CHECK)
2346  CHK_ERRA(MSSIPOTF_E_STRUCTURE)
2347  CHK_ERRA(TRUST_E_EXPLICIT_DISTRUST)
2348  CHK_ERRA(CERT_E_UNTRUSTEDCA)
2349  CHK_ERRA(CERT_E_INVALID_POLICY)
2350  CHK_ERRA(CERT_E_INVALID_NAME)
2351  CHK_ERRA(SPAPI_E_NOT_DISABLEABLE)
2352  CHK_ERRA(SPAPI_E_CANT_REMOVE_DEVINST)
2353  CHK_ERRA(SPAPI_E_INVALID_TARGET)
2354  CHK_ERRA(SPAPI_E_DRIVER_NONNATIVE)
2355  CHK_ERRA(SPAPI_E_IN_WOW64)
2356  CHK_ERRA(SPAPI_E_SET_SYSTEM_RESTORE_POINT)
2357  CHK_ERRA(SPAPI_E_INCORRECTLY_COPIED_INF)
2358  CHK_ERRA(SPAPI_E_SCE_DISABLED)
2359  CHK_ERRA(SCARD_E_NO_KEY_CONTAINER)
2360  CHK_ERRA(SCARD_W_CARD_NOT_AUTHENTICATED)
2361  CHK_ERRA(COMADMIN_E_OBJECTERRORS)
2362  CHK_ERRA(COMADMIN_E_OBJECTINVALID)
2363  CHK_ERRA(COMADMIN_E_KEYMISSING)
2364  CHK_ERRA(COMADMIN_E_ALREADYINSTALLED)
2365  CHK_ERRA(COMADMIN_E_APP_FILE_WRITEFAIL)
2366  CHK_ERRA(COMADMIN_E_APP_FILE_READFAIL)
2367  CHK_ERRA(COMADMIN_E_APP_FILE_VERSION)
2368  CHK_ERRA(COMADMIN_E_BADPATH)
2369  CHK_ERRA(COMADMIN_E_APPLICATIONEXISTS)
2370  CHK_ERRA(COMADMIN_E_ROLEEXISTS)
2371  CHK_ERRA(COMADMIN_E_CANTCOPYFILE)
2372  CHK_ERRA(COMADMIN_E_NOUSER)
2373  CHK_ERRA(COMADMIN_E_INVALIDUSERIDS)
2374  CHK_ERRA(COMADMIN_E_NOREGISTRYCLSID)
2375  CHK_ERRA(COMADMIN_E_BADREGISTRYPROGID)
2376  CHK_ERRA(COMADMIN_E_AUTHENTICATIONLEVEL)
2377  CHK_ERRA(COMADMIN_E_USERPASSWDNOTVALID)
2378  CHK_ERRA(COMADMIN_E_CLSIDORIIDMISMATCH)
2379  CHK_ERRA(COMADMIN_E_REMOTEINTERFACE)
2380  CHK_ERRA(COMADMIN_E_DLLREGISTERSERVER)
2381  CHK_ERRA(COMADMIN_E_NOSERVERSHARE)
2382  CHK_ERRA(COMADMIN_E_DLLLOADFAILED)
2383  CHK_ERRA(COMADMIN_E_BADREGISTRYLIBID)
2384  CHK_ERRA(COMADMIN_E_APPDIRNOTFOUND)
2385  CHK_ERRA(COMADMIN_E_REGISTRARFAILED)
2386  CHK_ERRA(COMADMIN_E_COMPFILE_DOESNOTEXIST)
2387  CHK_ERRA(COMADMIN_E_COMPFILE_LOADDLLFAIL)
2388  CHK_ERRA(COMADMIN_E_COMPFILE_GETCLASSOBJ)
2389  CHK_ERRA(COMADMIN_E_COMPFILE_CLASSNOTAVAIL)
2390  CHK_ERRA(COMADMIN_E_COMPFILE_BADTLB)
2391  CHK_ERRA(COMADMIN_E_COMPFILE_NOTINSTALLABLE)
2392  CHK_ERRA(COMADMIN_E_NOTCHANGEABLE)
2393  CHK_ERRA(COMADMIN_E_NOTDELETEABLE)
2394  CHK_ERRA(COMADMIN_E_SESSION)
2395  CHK_ERRA(COMADMIN_E_COMP_MOVE_LOCKED)
2396  CHK_ERRA(COMADMIN_E_COMP_MOVE_BAD_DEST)
2397  CHK_ERRA(COMADMIN_E_REGISTERTLB)
2398  CHK_ERRA(COMADMIN_E_SYSTEMAPP)
2399  CHK_ERRA(COMADMIN_E_COMPFILE_NOREGISTRAR)
2400  CHK_ERRA(COMADMIN_E_COREQCOMPINSTALLED)
2401  CHK_ERRA(COMADMIN_E_SERVICENOTINSTALLED)
2402  CHK_ERRA(COMADMIN_E_PROPERTYSAVEFAILED)
2403  CHK_ERRA(COMADMIN_E_OBJECTEXISTS)
2404  CHK_ERRA(COMADMIN_E_COMPONENTEXISTS)
2405  CHK_ERRA(COMADMIN_E_REGFILE_CORRUPT)
2406  CHK_ERRA(COMADMIN_E_PROPERTY_OVERFLOW)
2407  CHK_ERRA(COMADMIN_E_NOTINREGISTRY)
2408  CHK_ERRA(COMADMIN_E_OBJECTNOTPOOLABLE)
2409  CHK_ERRA(COMADMIN_E_APPLID_MATCHES_CLSID)
2410  CHK_ERRA(COMADMIN_E_ROLE_DOES_NOT_EXIST)
2411  CHK_ERRA(COMADMIN_E_START_APP_NEEDS_COMPONENTS)
2412  CHK_ERRA(COMADMIN_E_REQUIRES_DIFFERENT_PLATFORM)
2413  CHK_ERRA(COMADMIN_E_CAN_NOT_EXPORT_APP_PROXY)
2414  CHK_ERRA(COMADMIN_E_CAN_NOT_START_APP)
2415  CHK_ERRA(COMADMIN_E_CAN_NOT_EXPORT_SYS_APP)
2416  CHK_ERRA(COMADMIN_E_CANT_SUBSCRIBE_TO_COMPONENT)
2417  CHK_ERRA(COMADMIN_E_EVENTCLASS_CANT_BE_SUBSCRIBER)
2418  CHK_ERRA(COMADMIN_E_LIB_APP_PROXY_INCOMPATIBLE)
2419  CHK_ERRA(COMADMIN_E_BASE_PARTITION_ONLY)
2420  CHK_ERRA(COMADMIN_E_START_APP_DISABLED)
2421  CHK_ERRA(COMADMIN_E_CAT_DUPLICATE_PARTITION_NAME)
2422  CHK_ERRA(COMADMIN_E_CAT_INVALID_PARTITION_NAME)
2423  CHK_ERRA(COMADMIN_E_CAT_PARTITION_IN_USE)
2424  CHK_ERRA(COMADMIN_E_FILE_PARTITION_DUPLICATE_FILES)
2425  CHK_ERRA(COMADMIN_E_CAT_IMPORTED_COMPONENTS_NOT_ALLOWED)
2426  CHK_ERRA(COMADMIN_E_AMBIGUOUS_APPLICATION_NAME)
2427  CHK_ERRA(COMADMIN_E_AMBIGUOUS_PARTITION_NAME)
2428  CHK_ERRA(COMADMIN_E_REGDB_NOTINITIALIZED)
2429  CHK_ERRA(COMADMIN_E_REGDB_NOTOPEN)
2430  CHK_ERRA(COMADMIN_E_REGDB_SYSTEMERR)
2431  CHK_ERRA(COMADMIN_E_REGDB_ALREADYRUNNING)
2432  CHK_ERRA(COMADMIN_E_MIG_VERSIONNOTSUPPORTED)
2433  CHK_ERRA(COMADMIN_E_MIG_SCHEMANOTFOUND)
2434  CHK_ERRA(COMADMIN_E_CAT_BITNESSMISMATCH)
2435  CHK_ERRA(COMADMIN_E_CAT_UNACCEPTABLEBITNESS)
2436  CHK_ERRA(COMADMIN_E_CAT_WRONGAPPBITNESS)
2437  CHK_ERRA(COMADMIN_E_CAT_PAUSE_RESUME_NOT_SUPPORTED)
2438  CHK_ERRA(COMADMIN_E_CAT_SERVERFAULT)
2439  CHK_ERRA(COMQC_E_APPLICATION_NOT_QUEUED)
2440  CHK_ERRA(COMQC_E_NO_QUEUEABLE_INTERFACES)
2441  CHK_ERRA(COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE)
2442  CHK_ERRA(COMQC_E_NO_IPERSISTSTREAM)
2443  CHK_ERRA(COMQC_E_BAD_MESSAGE)
2444  CHK_ERRA(COMQC_E_UNAUTHENTICATED)
2445  CHK_ERRA(COMQC_E_UNTRUSTED_ENQUEUER)
2446  CHK_ERRA(MSDTC_E_DUPLICATE_RESOURCE)
2447  CHK_ERRA(COMADMIN_E_OBJECT_PARENT_MISSING)
2448  CHK_ERRA(COMADMIN_E_OBJECT_DOES_NOT_EXIST)
2449  CHK_ERRA(COMADMIN_E_APP_NOT_RUNNING)
2450  CHK_ERRA(COMADMIN_E_INVALID_PARTITION)
2451  CHK_ERRA(COMADMIN_E_SVCAPP_NOT_POOLABLE_OR_RECYCLABLE)
2452  CHK_ERRA(COMADMIN_E_USER_IN_SET)
2453  CHK_ERRA(COMADMIN_E_CANTRECYCLELIBRARYAPPS)
2454  CHK_ERRA(COMADMIN_E_CANTRECYCLESERVICEAPPS)
2455  CHK_ERRA(COMADMIN_E_PROCESSALREADYRECYCLED)
2456  CHK_ERRA(COMADMIN_E_PAUSEDPROCESSMAYNOTBERECYCLED)
2457  CHK_ERRA(COMADMIN_E_CANTMAKEINPROCSERVICE)
2458  CHK_ERRA(COMADMIN_E_PROGIDINUSEBYCLSID)
2459  CHK_ERRA(COMADMIN_E_DEFAULT_PARTITION_NOT_IN_SET)
2460  CHK_ERRA(COMADMIN_E_RECYCLEDPROCESSMAYNOTBEPAUSED)
2461  CHK_ERRA(COMADMIN_E_PARTITION_ACCESSDENIED)
2462  CHK_ERRA(COMADMIN_E_PARTITION_MSI_ONLY)
2463  CHK_ERRA(COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_1_0_FORMAT)
2464  CHK_ERRA(COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_NONBASE_PARTITIONS)
2465  CHK_ERRA(COMADMIN_E_COMP_MOVE_SOURCE)
2466  CHK_ERRA(COMADMIN_E_COMP_MOVE_DEST)
2467  CHK_ERRA(COMADMIN_E_COMP_MOVE_PRIVATE)
2468  CHK_ERRA(COMADMIN_E_BASEPARTITION_REQUIRED_IN_SET)
2469  CHK_ERRA(COMADMIN_E_CANNOT_ALIAS_EVENTCLASS)
2470  CHK_ERRA(COMADMIN_E_PRIVATE_ACCESSDENIED)
2471  CHK_ERRA(COMADMIN_E_SAFERINVALID)
2472  CHK_ERRA(COMADMIN_E_REGISTRY_ACCESSDENIED)
2473 // CHK_ERRA(COMADMIN_E_PARTITIONS_DISABLED)
2474 // CHK_ERR_WIN32A(ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY)
2475 // CHK_ERR_WIN32A(ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY)
2476  CHK_ERR_WIN32A(ERROR_DISK_TOO_FRAGMENTED)
2477  CHK_ERR_WIN32A(ERROR_DELETE_PENDING)
2478 // CHK_ERR_WIN32A(ERROR_SCOPE_NOT_FOUND)
2479  CHK_ERR_WIN32A(ERROR_NOT_SAFEBOOT_SERVICE)
2480  CHK_ERR_WIN32A(ERROR_JOURNAL_ENTRY_DELETED)
2481  CHK_ERR_WIN32A(ERROR_ONLY_IF_CONNECTED)
2482  CHK_ERR_WIN32A(ERROR_OVERRIDE_NOCHANGES)
2483  CHK_ERR_WIN32A(ERROR_BAD_USER_PROFILE)
2484  CHK_ERR_WIN32A(ERROR_NOT_SUPPORTED_ON_SBS)
2485  CHK_ERR_WIN32A(ERROR_SERVER_SHUTDOWN_IN_PROGRESS)
2486  CHK_ERR_WIN32A(ERROR_HOST_DOWN)
2487  CHK_ERR_WIN32A(ERROR_NON_ACCOUNT_SID)
2488  CHK_ERR_WIN32A(ERROR_NON_DOMAIN_SID)
2489  CHK_ERR_WIN32A(ERROR_APPHELP_BLOCK)
2490  CHK_ERR_WIN32A(ERROR_ACCESS_DISABLED_BY_POLICY)
2491  CHK_ERR_WIN32A(ERROR_REG_NAT_CONSUMPTION)
2492  CHK_ERR_WIN32A(ERROR_CSCSHARE_OFFLINE)
2493  CHK_ERR_WIN32A(ERROR_PKINIT_FAILURE)
2494  CHK_ERR_WIN32A(ERROR_SMARTCARD_SUBSYSTEM_FAILURE)
2495  CHK_ERR_WIN32A(ERROR_DOWNGRADE_DETECTED)
2496  CHK_ERR_WIN32A(ERROR_MACHINE_LOCKED)
2497  CHK_ERR_WIN32A(ERROR_CALLBACK_SUPPLIED_INVALID_DATA)
2498  CHK_ERR_WIN32A(ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED)
2499  CHK_ERR_WIN32A(ERROR_DRIVER_BLOCKED)
2500  CHK_ERR_WIN32A(ERROR_INVALID_IMPORT_OF_NON_DLL)
2501 // CHK_ERR_WIN32A(ERROR_ACCESS_DISABLED_WEBBLADE)
2502 // CHK_ERR_WIN32A(ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER)
2503 // CHK_ERR_WIN32A(ERROR_RECOVERY_FAILURE)
2504 // CHK_ERR_WIN32A(ERROR_ALREADY_FIBER)
2505 // CHK_ERR_WIN32A(ERROR_ALREADY_THREAD)
2506 // CHK_ERR_WIN32A(ERROR_STACK_BUFFER_OVERRUN)
2507 // CHK_ERR_WIN32A(ERROR_PARAMETER_QUOTA_EXCEEDED)
2508 // CHK_ERR_WIN32A(ERROR_DEBUGGER_INACTIVE)
2509 // CHK_ERR_WIN32A(ERROR_DELAY_LOAD_FAILED)
2510  CHK_ERR_WIN32A(ERROR_CURRENT_DOMAIN_NOT_ALLOWED)
2511  CHK_ERR_WIN32A(ERROR_INSTALL_SERVICE_FAILURE)
2512  CHK_ERR_WIN32A(ERROR_INSTALL_PACKAGE_VERSION)
2513  CHK_ERR_WIN32A(ERROR_INSTALL_ALREADY_RUNNING)
2514  CHK_ERR_WIN32A(ERROR_INSTALL_PACKAGE_OPEN_FAILED)
2515  CHK_ERR_WIN32A(ERROR_INSTALL_PACKAGE_INVALID)
2516  CHK_ERR_WIN32A(ERROR_INSTALL_UI_FAILURE)
2517  CHK_ERR_WIN32A(ERROR_INSTALL_LOG_FAILURE)
2518  CHK_ERR_WIN32A(ERROR_INSTALL_LANGUAGE_UNSUPPORTED)
2519  CHK_ERR_WIN32A(ERROR_INSTALL_TRANSFORM_FAILURE)
2520  CHK_ERR_WIN32A(ERROR_INSTALL_PACKAGE_REJECTED)
2521  CHK_ERR_WIN32A(ERROR_FUNCTION_NOT_CALLED)
2522  CHK_ERR_WIN32A(ERROR_FUNCTION_FAILED)
2523  CHK_ERR_WIN32A(ERROR_INVALID_TABLE)
2524  CHK_ERR_WIN32A(ERROR_DATATYPE_MISMATCH)
2525  CHK_ERR_WIN32A(ERROR_UNSUPPORTED_TYPE)
2526  CHK_ERR_WIN32A(ERROR_CREATE_FAILED)
2527  CHK_ERR_WIN32A(ERROR_INSTALL_TEMP_UNWRITABLE)
2528  CHK_ERR_WIN32A(ERROR_INSTALL_PLATFORM_UNSUPPORTED)
2529  CHK_ERR_WIN32A(ERROR_INSTALL_NOTUSED)
2530  CHK_ERR_WIN32A(ERROR_PATCH_PACKAGE_OPEN_FAILED)
2531  CHK_ERR_WIN32A(ERROR_PATCH_PACKAGE_INVALID)
2532  CHK_ERR_WIN32A(ERROR_PATCH_PACKAGE_UNSUPPORTED)
2533  CHK_ERR_WIN32A(ERROR_PRODUCT_VERSION)
2534  CHK_ERR_WIN32A(ERROR_INVALID_COMMAND_LINE)
2535  CHK_ERR_WIN32A(ERROR_INSTALL_REMOTE_DISALLOWED)
2536  CHK_ERR_WIN32A(ERROR_SUCCESS_REBOOT_INITIATED)
2537  CHK_ERR_WIN32A(ERROR_PATCH_TARGET_NOT_FOUND)
2538  CHK_ERR_WIN32A(ERROR_PATCH_PACKAGE_REJECTED)
2539  CHK_ERR_WIN32A(ERROR_INSTALL_TRANSFORM_REJECTED)
2540 // CHK_ERR_WIN32A(ERROR_INSTALL_REMOTE_PROHIBITED)
2541  CHK_ERR_WIN32A(RPC_S_ENTRY_TYPE_MISMATCH)
2542  CHK_ERR_WIN32A(RPC_S_NOT_ALL_OBJS_EXPORTED)
2543  CHK_ERR_WIN32A(RPC_S_INTERFACE_NOT_EXPORTED)
2544  CHK_ERR_WIN32A(RPC_S_PROFILE_NOT_ADDED)
2545  CHK_ERR_WIN32A(RPC_S_PRF_ELT_NOT_ADDED)
2546  CHK_ERR_WIN32A(RPC_S_PRF_ELT_NOT_REMOVED)
2547  CHK_ERR_WIN32A(RPC_S_GRP_ELT_NOT_ADDED)
2548  CHK_ERR_WIN32A(RPC_S_GRP_ELT_NOT_REMOVED)
2549  CHK_ERR_WIN32A(ERROR_KM_DRIVER_BLOCKED)
2550  CHK_ERR_WIN32A(ERROR_CONTEXT_EXPIRED)
2551 // CHK_ERR_WIN32A(ERROR_PER_USER_TRUST_QUOTA_EXCEEDED)
2552 // CHK_ERR_WIN32A(ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED)
2553 // CHK_ERR_WIN32A(ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED)
2554  CHK_ERR_WIN32A(ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT)
2555  CHK_ERR_WIN32A(ERROR_PRINTER_DRIVER_WARNED)
2556  CHK_ERR_WIN32A(ERROR_PRINTER_DRIVER_BLOCKED)
2557  CHK_ERR_WIN32A(ERROR_VOLUME_CONTAINS_SYS_FILES)
2558  CHK_ERR_WIN32A(ERROR_INDIGENOUS_TYPE)
2559  CHK_ERR_WIN32A(ERROR_NO_SUPPORTING_DRIVES)
2560  CHK_ERR_WIN32A(ERROR_CLEANER_CARTRIDGE_INSTALLED)
2561  CHK_ERR_WIN32A(ERROR_REPARSE_TAG_INVALID)
2562  CHK_ERR_WIN32A(ERROR_REPARSE_TAG_MISMATCH)
2563  CHK_ERR_WIN32A(ERROR_VOLUME_NOT_SIS_ENABLED)
2564  CHK_ERR_WIN32A(ERROR_QUORUM_OWNER_ALIVE)
2565  CHK_ERR_WIN32A(ERROR_NETWORK_NOT_AVAILABLE)
2566  CHK_ERR_WIN32A(ERROR_NODE_NOT_AVAILABLE)
2567  CHK_ERR_WIN32A(ERROR_ALL_NODES_NOT_AVAILABLE)
2568  CHK_ERR_WIN32A(ERROR_RESOURCE_FAILED)
2569  CHK_ERR_WIN32A(ERROR_CLUSTER_INVALID_NODE)
2570  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_EXISTS)
2571  CHK_ERR_WIN32A(ERROR_CLUSTER_JOIN_IN_PROGRESS)
2572  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_NOT_FOUND)
2573  CHK_ERR_WIN32A(ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND)
2574  CHK_ERR_WIN32A(ERROR_CLUSTER_NETWORK_EXISTS)
2575  CHK_ERR_WIN32A(ERROR_CLUSTER_NETWORK_NOT_FOUND)
2576  CHK_ERR_WIN32A(ERROR_CLUSTER_NETINTERFACE_EXISTS)
2577  CHK_ERR_WIN32A(ERROR_CLUSTER_NETINTERFACE_NOT_FOUND)
2578  CHK_ERR_WIN32A(ERROR_CLUSTER_INVALID_REQUEST)
2579  CHK_ERR_WIN32A(ERROR_CLUSTER_INVALID_NETWORK_PROVIDER)
2580  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_DOWN)
2581  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_UNREACHABLE)
2582  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_NOT_MEMBER)
2583  CHK_ERR_WIN32A(ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS)
2584  CHK_ERR_WIN32A(ERROR_CLUSTER_INVALID_NETWORK)
2585  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_UP)
2586  CHK_ERR_WIN32A(ERROR_CLUSTER_IPADDR_IN_USE)
2587  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_NOT_PAUSED)
2588  CHK_ERR_WIN32A(ERROR_CLUSTER_NO_SECURITY_CONTEXT)
2589  CHK_ERR_WIN32A(ERROR_CLUSTER_NETWORK_NOT_INTERNAL)
2590  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_ALREADY_UP)
2591  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_ALREADY_DOWN)
2592  CHK_ERR_WIN32A(ERROR_CLUSTER_NETWORK_ALREADY_ONLINE)
2593  CHK_ERR_WIN32A(ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE)
2594  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_ALREADY_MEMBER)
2595  CHK_ERR_WIN32A(ERROR_CLUSTER_LAST_INTERNAL_NETWORK)
2596  CHK_ERR_WIN32A(ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS)
2597  CHK_ERR_WIN32A(ERROR_INVALID_OPERATION_ON_QUORUM)
2598  CHK_ERR_WIN32A(ERROR_DEPENDENCY_NOT_ALLOWED)
2599  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_PAUSED)
2600  CHK_ERR_WIN32A(ERROR_NODE_CANT_HOST_RESOURCE)
2601  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_NOT_READY)
2602  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_SHUTTING_DOWN)
2603  CHK_ERR_WIN32A(ERROR_CLUSTER_JOIN_ABORTED)
2604  CHK_ERR_WIN32A(ERROR_CLUSTER_INCOMPATIBLE_VERSIONS)
2605  CHK_ERR_WIN32A(ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED)
2606  CHK_ERR_WIN32A(ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED)
2607  CHK_ERR_WIN32A(ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND)
2608  CHK_ERR_WIN32A(ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED)
2609  CHK_ERR_WIN32A(ERROR_CLUSTER_RESNAME_NOT_FOUND)
2610  CHK_ERR_WIN32A(ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED)
2611  CHK_ERR_WIN32A(ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST)
2612  CHK_ERR_WIN32A(ERROR_CLUSTER_DATABASE_SEQMISMATCH)
2613  CHK_ERR_WIN32A(ERROR_RESMON_INVALID_STATE)
2614  CHK_ERR_WIN32A(ERROR_CLUSTER_GUM_NOT_LOCKER)
2615  CHK_ERR_WIN32A(ERROR_QUORUM_DISK_NOT_FOUND)
2616  CHK_ERR_WIN32A(ERROR_DATABASE_BACKUP_CORRUPT)
2617  CHK_ERR_WIN32A(ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT)
2618  CHK_ERR_WIN32A(ERROR_RESOURCE_PROPERTY_UNCHANGEABLE)
2619  CHK_ERR_WIN32A(ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE)
2620  CHK_ERR_WIN32A(ERROR_CLUSTER_QUORUMLOG_NOT_FOUND)
2621  CHK_ERR_WIN32A(ERROR_CLUSTER_MEMBERSHIP_HALT)
2622  CHK_ERR_WIN32A(ERROR_CLUSTER_INSTANCE_ID_MISMATCH)
2623  CHK_ERR_WIN32A(ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP)
2624  CHK_ERR_WIN32A(ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH)
2625  CHK_ERR_WIN32A(ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP)
2626  CHK_ERR_WIN32A(ERROR_CLUSTER_PARAMETER_MISMATCH)
2627  CHK_ERR_WIN32A(ERROR_NODE_CANNOT_BE_CLUSTERED)
2628  CHK_ERR_WIN32A(ERROR_CLUSTER_WRONG_OS_VERSION)
2629  CHK_ERR_WIN32A(ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME)
2630 // CHK_ERR_WIN32A(ERROR_CLUSCFG_ALREADY_COMMITTED)
2631 // CHK_ERR_WIN32A(ERROR_CLUSCFG_ROLLBACK_FAILED)
2632 // CHK_ERR_WIN32A(ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT)
2633 // CHK_ERR_WIN32A(ERROR_CLUSTER_OLD_VERSION)
2634 // CHK_ERR_WIN32A(ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME)
2635  CHK_ERR_WIN32A(ERROR_FILE_READ_ONLY)
2636  CHK_ERR_WIN32A(ERROR_DIR_EFS_DISALLOWED)
2637  CHK_ERR_WIN32A(ERROR_EFS_SERVER_NOT_TRUSTED)
2638  CHK_ERR_WIN32A(ERROR_BAD_RECOVERY_POLICY)
2639  CHK_ERR_WIN32A(ERROR_EFS_ALG_BLOB_TOO_BIG)
2640  CHK_ERR_WIN32A(ERROR_VOLUME_NOT_SUPPORT_EFS)
2641  CHK_ERR_WIN32A(ERROR_EFS_DISABLED)
2642  CHK_ERR_WIN32A(ERROR_EFS_VERSION_NOT_SUPPORT)
2643  CHK_ERR_WIN32A(SCHED_E_SERVICE_NOT_LOCALSYSTEM)
2644  CHK_ERR_WIN32A(ERROR_CTX_CLIENT_LICENSE_IN_USE)
2645  CHK_ERR_WIN32A(ERROR_CTX_CLIENT_LICENSE_NOT_SET)
2646  CHK_ERR_WIN32A(ERROR_CTX_LICENSE_NOT_AVAILABLE)
2647  CHK_ERR_WIN32A(ERROR_CTX_LICENSE_CLIENT_INVALID)
2648  CHK_ERR_WIN32A(ERROR_CTX_LICENSE_EXPIRED)
2649  CHK_ERR_WIN32A(ERROR_CTX_SHADOW_NOT_RUNNING)
2650  CHK_ERR_WIN32A(ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE)
2651 // CHK_ERR_WIN32A(ERROR_ACTIVATION_COUNT_EXCEEDED)
2652  CHK_ERR_WIN32A(ERROR_DS_SORT_CONTROL_MISSING)
2653  CHK_ERR_WIN32A(ERROR_DS_OFFSET_RANGE_ERROR)
2654  CHK_ERR_WIN32A(ERROR_DS_OBJECT_BEING_REMOVED)
2655  CHK_ERR_WIN32A(ERROR_DS_DS_REQUIRED)
2656  CHK_ERR_WIN32A(ERROR_DS_INVALID_LDAP_DISPLAY_NAME)
2657  CHK_ERR_WIN32A(ERROR_DS_NON_BASE_SEARCH)
2658  CHK_ERR_WIN32A(ERROR_DS_CANT_RETRIEVE_ATTS)
2659  CHK_ERR_WIN32A(ERROR_DS_BACKLINK_WITHOUT_LINK)
2660  CHK_ERR_WIN32A(ERROR_DS_EPOCH_MISMATCH)
2661  CHK_ERR_WIN32A(ERROR_DS_SRC_NAME_MISMATCH)
2662  CHK_ERR_WIN32A(ERROR_DS_SRC_AND_DST_NC_IDENTICAL)
2663  CHK_ERR_WIN32A(ERROR_DS_DST_NC_MISMATCH)
2664  CHK_ERR_WIN32A(ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC)
2665  CHK_ERR_WIN32A(ERROR_DS_SRC_GUID_MISMATCH)
2666  CHK_ERR_WIN32A(ERROR_DS_CANT_MOVE_DELETED_OBJECT)
2667  CHK_ERR_WIN32A(ERROR_DS_PDC_OPERATION_IN_PROGRESS)
2668  CHK_ERR_WIN32A(ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD)
2669  CHK_ERR_WIN32A(ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION)
2670  CHK_ERR_WIN32A(ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS)
2671  CHK_ERR_WIN32A(ERROR_DS_NC_MUST_HAVE_NC_PARENT)
2672  CHK_ERR_WIN32A(ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE)
2673  CHK_ERR_WIN32A(ERROR_DS_DST_DOMAIN_NOT_NATIVE)
2674  CHK_ERR_WIN32A(ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER)
2675  CHK_ERR_WIN32A(ERROR_DS_CANT_MOVE_ACCOUNT_GROUP)
2676  CHK_ERR_WIN32A(ERROR_DS_CANT_MOVE_RESOURCE_GROUP)
2677  CHK_ERR_WIN32A(ERROR_DS_INVALID_SEARCH_FLAG)
2678  CHK_ERR_WIN32A(ERROR_DS_NO_TREE_DELETE_ABOVE_NC)
2679  CHK_ERR_WIN32A(ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE)
2680  CHK_ERR_WIN32A(ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE)
2681  CHK_ERR_WIN32A(ERROR_DS_SAM_INIT_FAILURE)
2682  CHK_ERR_WIN32A(ERROR_DS_SENSITIVE_GROUP_VIOLATION)
2683  CHK_ERR_WIN32A(ERROR_DS_CANT_MOD_PRIMARYGROUPID)
2684  CHK_ERR_WIN32A(ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD)
2685  CHK_ERR_WIN32A(ERROR_DS_NONSAFE_SCHEMA_CHANGE)
2686  CHK_ERR_WIN32A(ERROR_DS_SCHEMA_UPDATE_DISALLOWED)
2687  CHK_ERR_WIN32A(ERROR_DS_CANT_CREATE_UNDER_SCHEMA)
2688  CHK_ERR_WIN32A(ERROR_DS_INSTALL_NO_SRC_SCH_VERSION)
2689  CHK_ERR_WIN32A(ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE)
2690  CHK_ERR_WIN32A(ERROR_DS_INVALID_GROUP_TYPE)
2691  CHK_ERR_WIN32A(ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN)
2692  CHK_ERR_WIN32A(ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN)
2693  CHK_ERR_WIN32A(ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER)
2694  CHK_ERR_WIN32A(ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER)
2695  CHK_ERR_WIN32A(ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER)
2696  CHK_ERR_WIN32A(ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER)
2697  CHK_ERR_WIN32A(ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER)
2698  CHK_ERR_WIN32A(ERROR_DS_HAVE_PRIMARY_MEMBERS)
2699  CHK_ERR_WIN32A(ERROR_DS_STRING_SD_CONVERSION_FAILED)
2700  CHK_ERR_WIN32A(ERROR_DS_NAMING_MASTER_GC)
2701  CHK_ERR_WIN32A(ERROR_DS_DNS_LOOKUP_FAILURE)
2702  CHK_ERR_WIN32A(ERROR_DS_COULDNT_UPDATE_SPNS)
2703  CHK_ERR_WIN32A(ERROR_DS_CANT_RETRIEVE_SD)
2704  CHK_ERR_WIN32A(ERROR_DS_KEY_NOT_UNIQUE)
2705  CHK_ERR_WIN32A(ERROR_DS_WRONG_LINKED_ATT_SYNTAX)
2706  CHK_ERR_WIN32A(ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD)
2707  CHK_ERR_WIN32A(ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY)
2708  CHK_ERR_WIN32A(ERROR_DS_CANT_START)
2709  CHK_ERR_WIN32A(ERROR_DS_INIT_FAILURE)
2710  CHK_ERR_WIN32A(ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION)
2711  CHK_ERR_WIN32A(ERROR_DS_SOURCE_DOMAIN_IN_FOREST)
2712  CHK_ERR_WIN32A(ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST)
2713  CHK_ERR_WIN32A(ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED)
2714  CHK_ERR_WIN32A(ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN)
2715  CHK_ERR_WIN32A(ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER)
2716  CHK_ERR_WIN32A(ERROR_DS_SRC_SID_EXISTS_IN_FOREST)
2717  CHK_ERR_WIN32A(ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH)
2718  CHK_ERR_WIN32A(ERROR_SAM_INIT_FAILURE)
2719  CHK_ERR_WIN32A(ERROR_DS_DRA_SCHEMA_INFO_SHIP)
2720  CHK_ERR_WIN32A(ERROR_DS_DRA_SCHEMA_CONFLICT)
2721  CHK_ERR_WIN32A(ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT)
2722  CHK_ERR_WIN32A(ERROR_DS_DRA_OBJ_NC_MISMATCH)
2723  CHK_ERR_WIN32A(ERROR_DS_NC_STILL_HAS_DSAS)
2724  CHK_ERR_WIN32A(ERROR_DS_GC_REQUIRED)
2725  CHK_ERR_WIN32A(ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY)
2726  CHK_ERR_WIN32A(ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS)
2727  CHK_ERR_WIN32A(ERROR_DS_CANT_ADD_TO_GC)
2728  CHK_ERR_WIN32A(ERROR_DS_NO_CHECKPOINT_WITH_PDC)
2729  CHK_ERR_WIN32A(ERROR_DS_SOURCE_AUDITING_NOT_ENABLED)
2730  CHK_ERR_WIN32A(ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC)
2731  CHK_ERR_WIN32A(ERROR_DS_INVALID_NAME_FOR_SPN)
2732  CHK_ERR_WIN32A(ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS)
2733  CHK_ERR_WIN32A(ERROR_DS_UNICODEPWD_NOT_IN_QUOTES)
2734  CHK_ERR_WIN32A(ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED)
2735  CHK_ERR_WIN32A(ERROR_DS_MUST_BE_RUN_ON_DST_DC)
2736  CHK_ERR_WIN32A(ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER)
2737  CHK_ERR_WIN32A(ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ)
2738  CHK_ERR_WIN32A(ERROR_DS_INIT_FAILURE_CONSOLE)
2739  CHK_ERR_WIN32A(ERROR_DS_SAM_INIT_FAILURE_CONSOLE)
2740  CHK_ERR_WIN32A(ERROR_DS_FOREST_VERSION_TOO_HIGH)
2741  CHK_ERR_WIN32A(ERROR_DS_DOMAIN_VERSION_TOO_HIGH)
2742  CHK_ERR_WIN32A(ERROR_DS_FOREST_VERSION_TOO_LOW)
2743  CHK_ERR_WIN32A(ERROR_DS_DOMAIN_VERSION_TOO_LOW)
2744  CHK_ERR_WIN32A(ERROR_DS_INCOMPATIBLE_VERSION)
2745  CHK_ERR_WIN32A(ERROR_DS_LOW_DSA_VERSION)
2746  CHK_ERR_WIN32A(ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN)
2747  CHK_ERR_WIN32A(ERROR_DS_NOT_SUPPORTED_SORT_ORDER)
2748  CHK_ERR_WIN32A(ERROR_DS_NAME_NOT_UNIQUE)
2749  CHK_ERR_WIN32A(ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4)
2750  CHK_ERR_WIN32A(ERROR_DS_OUT_OF_VERSION_STORE)
2751  CHK_ERR_WIN32A(ERROR_DS_INCOMPATIBLE_CONTROLS_USED)
2752  CHK_ERR_WIN32A(ERROR_DS_NO_REF_DOMAIN)
2753  CHK_ERR_WIN32A(ERROR_DS_RESERVED_LINK_ID)
2754  CHK_ERR_WIN32A(ERROR_DS_LINK_ID_NOT_AVAILABLE)
2755  CHK_ERR_WIN32A(ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER)
2756  CHK_ERR_WIN32A(ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE)
2757  CHK_ERR_WIN32A(ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC)
2758  CHK_ERR_WIN32A(ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG)
2759  CHK_ERR_WIN32A(ERROR_DS_MODIFYDN_WRONG_GRANDPARENT)
2760  CHK_ERR_WIN32A(ERROR_DS_NAME_ERROR_TRUST_REFERRAL)
2761  CHK_ERR_WIN32A(ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER)
2762  CHK_ERR_WIN32A(ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD)
2763  CHK_ERR_WIN32A(ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2)
2764  CHK_ERR_WIN32A(ERROR_DS_THREAD_LIMIT_EXCEEDED)
2765  CHK_ERR_WIN32A(ERROR_DS_NOT_CLOSEST)
2766  CHK_ERR_WIN32A(ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF)
2767  CHK_ERR_WIN32A(ERROR_DS_SINGLE_USER_MODE_FAILED)
2768  CHK_ERR_WIN32A(ERROR_DS_NTDSCRIPT_SYNTAX_ERROR)
2769  CHK_ERR_WIN32A(ERROR_DS_NTDSCRIPT_PROCESS_ERROR)
2770  CHK_ERR_WIN32A(ERROR_DS_DIFFERENT_REPL_EPOCHS)
2771  CHK_ERR_WIN32A(ERROR_DS_DRS_EXTENSIONS_CHANGED)
2772  CHK_ERR_WIN32A(ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR)
2773  CHK_ERR_WIN32A(ERROR_DS_NO_MSDS_INTID)
2774  CHK_ERR_WIN32A(ERROR_DS_DUP_MSDS_INTID)
2775  CHK_ERR_WIN32A(ERROR_DS_EXISTS_IN_RDNATTID)
2776  CHK_ERR_WIN32A(ERROR_DS_AUTHORIZATION_FAILED)
2777  CHK_ERR_WIN32A(ERROR_DS_INVALID_SCRIPT)
2778  CHK_ERR_WIN32A(ERROR_DS_REMOTE_CROSSREF_OP_FAILED)
2779 // CHK_ERR_WIN32A(ERROR_DS_CROSS_REF_BUSY)
2780 // CHK_ERR_WIN32A(ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN)
2781 // CHK_ERR_WIN32A(ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC)
2782 // CHK_ERR_WIN32A(ERROR_DS_DUPLICATE_ID_FOUND)
2783 // CHK_ERR_WIN32A(ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT)
2784 // CHK_ERR_WIN32A(ERROR_DS_GROUP_CONVERSION_ERROR)
2785 // CHK_ERR_WIN32A(ERROR_DS_CANT_MOVE_APP_BASIC_GROUP)
2786 // CHK_ERR_WIN32A(ERROR_DS_CANT_MOVE_APP_QUERY_GROUP)
2787 // CHK_ERR_WIN32A(ERROR_DS_ROLE_NOT_VERIFIED)
2788 // CHK_ERR_WIN32A(ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL)
2789 // CHK_ERR_WIN32A(ERROR_DS_DOMAIN_RENAME_IN_PROGRESS)
2790 // CHK_ERR_WIN32A(ERROR_DS_EXISTING_AD_CHILD_NC)
2791 // CHK_ERR_WIN32A(DNS_ERROR_INVALID_NAME_CHAR)
2792 // CHK_ERR_WIN32A(DNS_ERROR_NUMERIC_NAME)
2793 // CHK_ERR_WIN32A(DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER)
2794 // CHK_ERR_WIN32A(DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION)
2795 // CHK_ERR_WIN32A(DNS_ERROR_CANNOT_FIND_ROOT_HINTS)
2796 // CHK_ERR_WIN32A(DNS_ERROR_INCONSISTENT_ROOT_HINTS)
2797  CHK_ERR_WIN32A(DNS_ERROR_FORWARDER_ALREADY_EXISTS)
2798  CHK_ERR_WIN32A(DNS_ERROR_ZONE_REQUIRES_MASTER_IP)
2799  CHK_ERR_WIN32A(DNS_ERROR_ZONE_IS_SHUTDOWN)
2800  CHK_ERR_WIN32A(DNS_ERROR_DP_BASE)
2801  CHK_ERR_WIN32A(DNS_ERROR_DP_DOES_NOT_EXIST)
2802  CHK_ERR_WIN32A(DNS_ERROR_DP_ALREADY_EXISTS)
2803  CHK_ERR_WIN32A(DNS_ERROR_DP_NOT_ENLISTED)
2804  CHK_ERR_WIN32A(DNS_ERROR_DP_ALREADY_ENLISTED)
2805 // CHK_ERR_WIN32A(DNS_ERROR_DP_NOT_AVAILABLE)
2806  CHK_ERR_WIN32A(WSA_QOS_ESERVICETYPE)
2807  CHK_ERR_WIN32A(WSA_QOS_EFLOWSPEC)
2808  CHK_ERR_WIN32A(WSA_QOS_EPROVSPECBUF)
2809  CHK_ERR_WIN32A(WSA_QOS_EFILTERSTYLE)
2810  CHK_ERR_WIN32A(WSA_QOS_EFILTERTYPE)
2811  CHK_ERR_WIN32A(WSA_QOS_EFILTERCOUNT)
2812  CHK_ERR_WIN32A(WSA_QOS_EOBJLENGTH)
2813  CHK_ERR_WIN32A(WSA_QOS_EFLOWCOUNT)
2814  CHK_ERR_WIN32A(WSA_QOS_EUNKOWNPSOBJ)
2815  CHK_ERR_WIN32A(WSA_QOS_EPOLICYOBJ)
2816  CHK_ERR_WIN32A(WSA_QOS_EFLOWDESC)
2817  CHK_ERR_WIN32A(WSA_QOS_EPSFLOWSPEC)
2818  CHK_ERR_WIN32A(WSA_QOS_EPSFILTERSPEC)
2819  CHK_ERR_WIN32A(WSA_QOS_ESDMODEOBJ)
2820  CHK_ERR_WIN32A(WSA_QOS_ESHAPERATEOBJ)
2821  CHK_ERR_WIN32A(WSA_QOS_RESERVED_PETYPE)
2822  CHK_ERR_WIN32A(ERROR_SXS_SECTION_NOT_FOUND)
2823  CHK_ERR_WIN32A(ERROR_SXS_CANT_GEN_ACTCTX)
2824  CHK_ERR_WIN32A(ERROR_SXS_INVALID_ACTCTXDATA_FORMAT)
2825  CHK_ERR_WIN32A(ERROR_SXS_ASSEMBLY_NOT_FOUND)
2826  CHK_ERR_WIN32A(ERROR_SXS_MANIFEST_FORMAT_ERROR)
2827  CHK_ERR_WIN32A(ERROR_SXS_MANIFEST_PARSE_ERROR)
2828  CHK_ERR_WIN32A(ERROR_SXS_ACTIVATION_CONTEXT_DISABLED)
2829  CHK_ERR_WIN32A(ERROR_SXS_KEY_NOT_FOUND)
2830  CHK_ERR_WIN32A(ERROR_SXS_VERSION_CONFLICT)
2831  CHK_ERR_WIN32A(ERROR_SXS_WRONG_SECTION_TYPE)
2832  CHK_ERR_WIN32A(ERROR_SXS_THREAD_QUERIES_DISABLED)
2833  CHK_ERR_WIN32A(ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET)
2834  CHK_ERR_WIN32A(ERROR_SXS_UNKNOWN_ENCODING_GROUP)
2835  CHK_ERR_WIN32A(ERROR_SXS_UNKNOWN_ENCODING)
2836  CHK_ERR_WIN32A(ERROR_SXS_INVALID_XML_NAMESPACE_URI)
2837  CHK_ERR_WIN32A(ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED)
2838  CHK_ERR_WIN32A(ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED)
2839  CHK_ERR_WIN32A(ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE)
2840  CHK_ERR_WIN32A(ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE)
2841  CHK_ERR_WIN32A(ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE)
2842  CHK_ERR_WIN32A(ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT)
2843  CHK_ERR_WIN32A(ERROR_SXS_DUPLICATE_DLL_NAME)
2844  CHK_ERR_WIN32A(ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME)
2845  CHK_ERR_WIN32A(ERROR_SXS_DUPLICATE_CLSID)
2846  CHK_ERR_WIN32A(ERROR_SXS_DUPLICATE_IID)
2847  CHK_ERR_WIN32A(ERROR_SXS_DUPLICATE_TLBID)
2848  CHK_ERR_WIN32A(ERROR_SXS_DUPLICATE_PROGID)
2849  CHK_ERR_WIN32A(ERROR_SXS_DUPLICATE_ASSEMBLY_NAME)
2850  CHK_ERR_WIN32A(ERROR_SXS_FILE_HASH_MISMATCH)
2851  CHK_ERR_WIN32A(ERROR_SXS_POLICY_PARSE_ERROR)
2852  CHK_ERR_WIN32A(ERROR_SXS_XML_E_MISSINGQUOTE)
2853  CHK_ERR_WIN32A(ERROR_SXS_XML_E_COMMENTSYNTAX)
2854  CHK_ERR_WIN32A(ERROR_SXS_XML_E_BADSTARTNAMECHAR)
2855  CHK_ERR_WIN32A(ERROR_SXS_XML_E_BADNAMECHAR)
2856  CHK_ERR_WIN32A(ERROR_SXS_XML_E_BADCHARINSTRING)
2857  CHK_ERR_WIN32A(ERROR_SXS_XML_E_XMLDECLSYNTAX)
2858  CHK_ERR_WIN32A(ERROR_SXS_XML_E_BADCHARDATA)
2859  CHK_ERR_WIN32A(ERROR_SXS_XML_E_MISSINGWHITESPACE)
2860  CHK_ERR_WIN32A(ERROR_SXS_XML_E_EXPECTINGTAGEND)
2861  CHK_ERR_WIN32A(ERROR_SXS_XML_E_MISSINGSEMICOLON)
2862  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNBALANCEDPAREN)
2863  CHK_ERR_WIN32A(ERROR_SXS_XML_E_INTERNALERROR)
2864  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE)
2865  CHK_ERR_WIN32A(ERROR_SXS_XML_E_INCOMPLETE_ENCODING)
2866  CHK_ERR_WIN32A(ERROR_SXS_XML_E_MISSING_PAREN)
2867  CHK_ERR_WIN32A(ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE)
2868  CHK_ERR_WIN32A(ERROR_SXS_XML_E_MULTIPLE_COLONS)
2869  CHK_ERR_WIN32A(ERROR_SXS_XML_E_INVALID_DECIMAL)
2870  CHK_ERR_WIN32A(ERROR_SXS_XML_E_INVALID_HEXIDECIMAL)
2871  CHK_ERR_WIN32A(ERROR_SXS_XML_E_INVALID_UNICODE)
2872  CHK_ERR_WIN32A(ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK)
2873  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNEXPECTEDENDTAG)
2874  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNCLOSEDTAG)
2875  CHK_ERR_WIN32A(ERROR_SXS_XML_E_DUPLICATEATTRIBUTE)
2876  CHK_ERR_WIN32A(ERROR_SXS_XML_E_MULTIPLEROOTS)
2877  CHK_ERR_WIN32A(ERROR_SXS_XML_E_INVALIDATROOTLEVEL)
2878  CHK_ERR_WIN32A(ERROR_SXS_XML_E_BADXMLDECL)
2879  CHK_ERR_WIN32A(ERROR_SXS_XML_E_MISSINGROOT)
2880  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNEXPECTEDEOF)
2881  CHK_ERR_WIN32A(ERROR_SXS_XML_E_BADPEREFINSUBSET)
2882  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNCLOSEDSTARTTAG)
2883  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNCLOSEDENDTAG)
2884  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNCLOSEDSTRING)
2885  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNCLOSEDCOMMENT)
2886  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNCLOSEDDECL)
2887  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNCLOSEDCDATA)
2888  CHK_ERR_WIN32A(ERROR_SXS_XML_E_RESERVEDNAMESPACE)
2889  CHK_ERR_WIN32A(ERROR_SXS_XML_E_INVALIDENCODING)
2890  CHK_ERR_WIN32A(ERROR_SXS_XML_E_INVALIDSWITCH)
2891  CHK_ERR_WIN32A(ERROR_SXS_XML_E_BADXMLCASE)
2892  CHK_ERR_WIN32A(ERROR_SXS_XML_E_INVALID_STANDALONE)
2893  CHK_ERR_WIN32A(ERROR_SXS_XML_E_UNEXPECTED_STANDALONE)
2894  CHK_ERR_WIN32A(ERROR_SXS_XML_E_INVALID_VERSION)
2895  CHK_ERR_WIN32A(ERROR_SXS_XML_E_MISSINGEQUALS)
2896  CHK_ERR_WIN32A(ERROR_SXS_PROTECTION_RECOVERY_FAILED)
2897  CHK_ERR_WIN32A(ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT)
2898  CHK_ERR_WIN32A(ERROR_SXS_PROTECTION_CATALOG_NOT_VALID)
2899  CHK_ERR_WIN32A(ERROR_SXS_UNTRANSLATABLE_HRESULT)
2900  CHK_ERR_WIN32A(ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING)
2901  CHK_ERR_WIN32A(ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE)
2902  CHK_ERR_WIN32A(ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME)
2903  CHK_ERR_WIN32A(ERROR_IPSEC_QM_POLICY_EXISTS)
2904  CHK_ERR_WIN32A(ERROR_IPSEC_QM_POLICY_NOT_FOUND)
2905  CHK_ERR_WIN32A(ERROR_IPSEC_QM_POLICY_IN_USE)
2906  CHK_ERR_WIN32A(ERROR_IPSEC_MM_POLICY_EXISTS)
2907  CHK_ERR_WIN32A(ERROR_IPSEC_MM_POLICY_NOT_FOUND)
2908  CHK_ERR_WIN32A(ERROR_IPSEC_MM_POLICY_IN_USE)
2909  CHK_ERR_WIN32A(ERROR_IPSEC_MM_FILTER_EXISTS)
2910  CHK_ERR_WIN32A(ERROR_IPSEC_MM_FILTER_NOT_FOUND)
2911  CHK_ERR_WIN32A(ERROR_IPSEC_TRANSPORT_FILTER_EXISTS)
2912  CHK_ERR_WIN32A(ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND)
2913  CHK_ERR_WIN32A(ERROR_IPSEC_MM_AUTH_EXISTS)
2914  CHK_ERR_WIN32A(ERROR_IPSEC_MM_AUTH_NOT_FOUND)
2915  CHK_ERR_WIN32A(ERROR_IPSEC_MM_AUTH_IN_USE)
2916  CHK_ERR_WIN32A(ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND)
2917  CHK_ERR_WIN32A(ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND)
2918  CHK_ERR_WIN32A(ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND)
2919  CHK_ERR_WIN32A(ERROR_IPSEC_TUNNEL_FILTER_EXISTS)
2920  CHK_ERR_WIN32A(ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND)
2921  CHK_ERR_WIN32A(ERROR_IPSEC_MM_FILTER_PENDING_DELETION)
2922  CHK_ERR_WIN32A(ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION)
2923  CHK_ERR_WIN32A(ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION)
2924  CHK_ERR_WIN32A(ERROR_IPSEC_MM_POLICY_PENDING_DELETION)
2925  CHK_ERR_WIN32A(ERROR_IPSEC_MM_AUTH_PENDING_DELETION)
2926  CHK_ERR_WIN32A(ERROR_IPSEC_QM_POLICY_PENDING_DELETION)
2927 // CHK_ERR_WIN32A(WARNING_IPSEC_MM_POLICY_PRUNED)
2928 // CHK_ERR_WIN32A(WARNING_IPSEC_QM_POLICY_PRUNED)
2929  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_NEG_STATUS_BEGIN)
2930  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_AUTH_FAIL)
2931  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_ATTRIB_FAIL)
2932  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_NEGOTIATION_PENDING)
2933  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR)
2934  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_TIMED_OUT)
2935  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_NO_CERT)
2936  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_SA_DELETED)
2937  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_SA_REAPED)
2938  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_MM_ACQUIRE_DROP)
2939  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_QM_ACQUIRE_DROP)
2940  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_QUEUE_DROP_MM)
2941  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM)
2942  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_DROP_NO_RESPONSE)
2943  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_MM_DELAY_DROP)
2944  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_QM_DELAY_DROP)
2945  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_ERROR)
2946  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_CRL_FAILED)
2947  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_KEY_USAGE)
2948  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_CERT_TYPE)
2949  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_NO_PRIVATE_KEY)
2950  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_DH_FAIL)
2951  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_HEADER)
2952  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_NO_POLICY)
2953  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_SIGNATURE)
2954  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_KERBEROS_ERROR)
2955  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_NO_PUBLIC_KEY)
2956  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR)
2957  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_SA)
2958  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_PROP)
2959  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_TRANS)
2960  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_KE)
2961  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_ID)
2962  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_CERT)
2963  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ)
2964  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_HASH)
2965  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_SIG)
2966  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_NONCE)
2967  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY)
2968  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_DELETE)
2969  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR)
2970  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_PAYLOAD)
2971  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_LOAD_SOFT_SA)
2972  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN)
2973  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_COOKIE)
2974  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_NO_PEER_CERT)
2975  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_PEER_CRL_FAILED)
2976  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_POLICY_CHANGE)
2977  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_NO_MM_POLICY)
2978  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_NOTCBPRIV)
2979  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_SECLOADFAIL)
2980  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_FAILSSPINIT)
2981  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_FAILQUERYSSP)
2982  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_SRVACQFAIL)
2983  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_SRVQUERYCRED)
2984  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_GETSPIFAIL)
2985  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_FILTER)
2986  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_OUT_OF_MEMORY)
2987  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED)
2988  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_POLICY)
2989  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_UNKNOWN_DOI)
2990  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_SITUATION)
2991  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_DH_FAILURE)
2992  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_GROUP)
2993  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_ENCRYPT)
2994  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_DECRYPT)
2995  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_POLICY_MATCH)
2996  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_UNSUPPORTED_ID)
2997  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_HASH)
2998  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_HASH_ALG)
2999  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_HASH_SIZE)
3000  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG)
3001  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_AUTH_ALG)
3002  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_SIG)
3003  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_LOAD_FAILED)
3004  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_RPC_DELETE)
3005  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_BENIGN_REINIT)
3006  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY)
3007  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN)
3008  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_MM_LIMIT)
3009  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_NEGOTIATION_DISABLED)
3010  CHK_ERR_WIN32A(ERROR_IPSEC_IKE_NEG_STATUS_END)
3011 
3012 #if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
3013 
3014 // -------------------------------------------------------------
3015 // ddraw.h error codes
3016 // -------------------------------------------------------------
3017  CHK_ERRA(DDERR_ALREADYINITIALIZED)
3018  CHK_ERRA(DDERR_CANNOTATTACHSURFACE)
3019  CHK_ERRA(DDERR_CANNOTDETACHSURFACE)
3020  CHK_ERRA(DDERR_CURRENTLYNOTAVAIL)
3021  CHK_ERRA(DDERR_EXCEPTION)
3022 // CHK_ERRA(DDERR_GENERIC)
3023  CHK_ERRA(DDERR_HEIGHTALIGN)
3024  CHK_ERRA(DDERR_INCOMPATIBLEPRIMARY)
3025  CHK_ERRA(DDERR_INVALIDCAPS)
3026  CHK_ERRA(DDERR_INVALIDCLIPLIST)
3027  CHK_ERRA(DDERR_INVALIDMODE)
3028  CHK_ERRA(DDERR_INVALIDOBJECT)
3029 // CHK_ERRA(DDERR_INVALIDPARAMS)
3030  CHK_ERRA(DDERR_INVALIDPIXELFORMAT)
3031  CHK_ERRA(DDERR_INVALIDRECT)
3032  CHK_ERRA(DDERR_LOCKEDSURFACES)
3033  CHK_ERRA(DDERR_NO3D)
3034  CHK_ERRA(DDERR_NOALPHAHW)
3035  CHK_ERRA(DDERR_NOSTEREOHARDWARE)
3036  CHK_ERRA(DDERR_NOSURFACELEFT)
3037  CHK_ERRA(DDERR_NOCLIPLIST)
3038  CHK_ERRA(DDERR_NOCOLORCONVHW)
3039  CHK_ERRA(DDERR_NOCOOPERATIVELEVELSET)
3040  CHK_ERRA(DDERR_NOCOLORKEY)
3041  CHK_ERRA(DDERR_NOCOLORKEYHW)
3042  CHK_ERRA(DDERR_NODIRECTDRAWSUPPORT)
3043  CHK_ERRA(DDERR_NOEXCLUSIVEMODE)
3044  CHK_ERRA(DDERR_NOFLIPHW)
3045  CHK_ERRA(DDERR_NOGDI)
3046  CHK_ERRA(DDERR_NOMIRRORHW)
3047  CHK_ERRA(DDERR_NOTFOUND)
3048  CHK_ERRA(DDERR_NOOVERLAYHW)
3049  CHK_ERRA(DDERR_OVERLAPPINGRECTS)
3050  CHK_ERRA(DDERR_NORASTEROPHW)
3051  CHK_ERRA(DDERR_NOROTATIONHW)
3052  CHK_ERRA(DDERR_NOSTRETCHHW)
3053  CHK_ERRA(DDERR_NOT4BITCOLOR)
3054  CHK_ERRA(DDERR_NOT4BITCOLORINDEX)
3055  CHK_ERRA(DDERR_NOT8BITCOLOR)
3056  CHK_ERRA(DDERR_NOTEXTUREHW)
3057  CHK_ERRA(DDERR_NOVSYNCHW)
3058  CHK_ERRA(DDERR_NOZBUFFERHW)
3059  CHK_ERRA(DDERR_NOZOVERLAYHW)
3060  CHK_ERRA(DDERR_OUTOFCAPS)
3061 // CHK_ERRA(DDERR_OUTOFMEMORY)
3062 // CHK_ERRA(DDERR_OUTOFVIDEOMEMORY)
3063  CHK_ERRA(DDERR_OVERLAYCANTCLIP)
3064  CHK_ERRA(DDERR_OVERLAYCOLORKEYONLYONEACTIVE)
3065  CHK_ERRA(DDERR_PALETTEBUSY)
3066  CHK_ERRA(DDERR_COLORKEYNOTSET)
3067  CHK_ERRA(DDERR_SURFACEALREADYATTACHED)
3068  CHK_ERRA(DDERR_SURFACEALREADYDEPENDENT)
3069  CHK_ERRA(DDERR_SURFACEBUSY)
3070  CHK_ERRA(DDERR_CANTLOCKSURFACE)
3071  CHK_ERRA(DDERR_SURFACEISOBSCURED)
3072  CHK_ERRA(DDERR_SURFACELOST)
3073  CHK_ERRA(DDERR_SURFACENOTATTACHED)
3074  CHK_ERRA(DDERR_TOOBIGHEIGHT)
3075  CHK_ERRA(DDERR_TOOBIGSIZE)
3076  CHK_ERRA(DDERR_TOOBIGWIDTH)
3077 // CHK_ERRA(DDERR_UNSUPPORTED)
3078  CHK_ERRA(DDERR_UNSUPPORTEDFORMAT)
3079  CHK_ERRA(DDERR_UNSUPPORTEDMASK)
3080  CHK_ERRA(DDERR_INVALIDSTREAM)
3081  CHK_ERRA(DDERR_VERTICALBLANKINPROGRESS)
3082  CHK_ERRA(DDERR_WASSTILLDRAWING)
3083  CHK_ERRA(DDERR_DDSCAPSCOMPLEXREQUIRED)
3084  CHK_ERRA(DDERR_XALIGN)
3085  CHK_ERRA(DDERR_INVALIDDIRECTDRAWGUID)
3086  CHK_ERRA(DDERR_DIRECTDRAWALREADYCREATED)
3087  CHK_ERRA(DDERR_NODIRECTDRAWHW)
3088  CHK_ERRA(DDERR_PRIMARYSURFACEALREADYEXISTS)
3089  CHK_ERRA(DDERR_NOEMULATION)
3090  CHK_ERRA(DDERR_REGIONTOOSMALL)
3091  CHK_ERRA(DDERR_CLIPPERISUSINGHWND)
3092  CHK_ERRA(DDERR_NOCLIPPERATTACHED)
3093  CHK_ERRA(DDERR_NOHWND)
3094  CHK_ERRA(DDERR_HWNDSUBCLASSED)
3095  CHK_ERRA(DDERR_HWNDALREADYSET)
3096  CHK_ERRA(DDERR_NOPALETTEATTACHED)
3097  CHK_ERRA(DDERR_NOPALETTEHW)
3098  CHK_ERRA(DDERR_BLTFASTCANTCLIP)
3099  CHK_ERRA(DDERR_NOBLTHW)
3100  CHK_ERRA(DDERR_NODDROPSHW)
3101  CHK_ERRA(DDERR_OVERLAYNOTVISIBLE)
3102  CHK_ERRA(DDERR_NOOVERLAYDEST)
3103  CHK_ERRA(DDERR_INVALIDPOSITION)
3104  CHK_ERRA(DDERR_NOTAOVERLAYSURFACE)
3105  CHK_ERRA(DDERR_EXCLUSIVEMODEALREADYSET)
3106  CHK_ERRA(DDERR_NOTFLIPPABLE)
3107  CHK_ERRA(DDERR_CANTDUPLICATE)
3108  CHK_ERRA(DDERR_NOTLOCKED)
3109  CHK_ERRA(DDERR_CANTCREATEDC)
3110  CHK_ERRA(DDERR_NODC)
3111  CHK_ERRA(DDERR_WRONGMODE)
3112  CHK_ERRA(DDERR_IMPLICITLYCREATED)
3113  CHK_ERRA(DDERR_NOTPALETTIZED)
3114  CHK_ERRA(DDERR_UNSUPPORTEDMODE)
3115  CHK_ERRA(DDERR_NOMIPMAPHW)
3116  CHK_ERRA(DDERR_INVALIDSURFACETYPE)
3117  CHK_ERRA(DDERR_NOOPTIMIZEHW)
3118  CHK_ERRA(DDERR_NOTLOADED)
3119  CHK_ERRA(DDERR_NOFOCUSWINDOW)
3120  CHK_ERRA(DDERR_NOTONMIPMAPSUBLEVEL)
3121  CHK_ERRA(DDERR_DCALREADYCREATED)
3122  CHK_ERRA(DDERR_NONONLOCALVIDMEM)
3123  CHK_ERRA(DDERR_CANTPAGELOCK)
3124  CHK_ERRA(DDERR_CANTPAGEUNLOCK)
3125  CHK_ERRA(DDERR_NOTPAGELOCKED)
3126  CHK_ERRA(DDERR_MOREDATA)
3127  CHK_ERRA(DDERR_EXPIRED)
3128  CHK_ERRA(DDERR_TESTFINISHED)
3129  CHK_ERRA(DDERR_NEWMODE)
3130  CHK_ERRA(DDERR_D3DNOTINITIALIZED)
3131  CHK_ERRA(DDERR_VIDEONOTACTIVE)
3132  CHK_ERRA(DDERR_NOMONITORINFORMATION)
3133  CHK_ERRA(DDERR_NODRIVERSUPPORT)
3134  CHK_ERRA(DDERR_DEVICEDOESNTOWNSURFACE)
3135 
3136 // -------------------------------------------------------------
3137 // dinput.h error codes
3138 // -------------------------------------------------------------
3139 // CHK_ERRA(DI_OK)
3140 // CHK_ERRA(DI_NOTATTACHED)
3141 // CHK_ERRA(DI_BUFFEROVERFLOW)
3142 // CHK_ERRA(DI_PROPNOEFFECT)
3143 // CHK_ERRA(DI_NOEFFECT)
3144 // CHK_ERRA(DI_POLLEDDEVICE)
3145 // CHK_ERRA(DI_DOWNLOADSKIPPED)
3146 // CHK_ERRA(DI_EFFECTRESTARTED)
3147 // CHK_ERRA(DI_SETTINGSNOTSAVED_ACCESSDENIED)
3148 // CHK_ERRA(DI_SETTINGSNOTSAVED_DISKFULL)
3149 // CHK_ERRA(DI_TRUNCATED)
3150 // CHK_ERRA(DI_TRUNCATEDANDRESTARTED)
3151 // CHK_ERRA(DI_WRITEPROTECT)
3152  CHK_ERR(DIERR_INSUFFICIENTPRIVS, "DIERR_INSUFFICIENTPRIVS & VFW_E_INVALIDMEDIATYPE")
3153  CHK_ERR(DIERR_DEVICEFULL, "DIERR_DEVICEFULL & VFW_E_INVALIDSUBTYPE & DMO_E_INVALIDSTREAMINDEX")
3154  CHK_ERR(DIERR_MOREDATA, "DIERR_MOREDATA & VFW_E_NEED_OWNER & DMO_E_INVALIDTYPE")
3155  CHK_ERR(DIERR_NOTDOWNLOADED, "DIERR_NOTDOWNLOADED & VFW_E_ENUM_OUT_OF_SYNC & DMO_E_TYPE_NOT_SET")
3156  CHK_ERR(DIERR_HASEFFECTS, "DIERR_HASEFFECTS & VFW_E_ALREADY_CONNECTED & DMO_E_NOTACCEPTING")
3157  CHK_ERR(DIERR_NOTEXCLUSIVEACQUIRED, "DIERR_NOTEXCLUSIVEACQUIRED & VFW_E_FILTER_ACTIVE & DMO_E_TYPE_NOT_ACCEPTED")
3158  CHK_ERR(DIERR_INCOMPLETEEFFECT, "DIERR_INCOMPLETEEFFECT & VFW_E_NO_TYPES & DMO_E_NO_MORE_ITEMS")
3159  CHK_ERR(DIERR_NOTBUFFERED, "DIERR_NOTBUFFERED & VFW_E_NO_ACCEPTABLE_TYPES")
3160  CHK_ERR(DIERR_EFFECTPLAYING, "DIERR_EFFECTPLAYING & VFW_E_INVALID_DIRECTION")
3161  CHK_ERR(DIERR_UNPLUGGED, "DIERR_UNPLUGGED & VFW_E_NOT_CONNECTED")
3162  CHK_ERR(DIERR_REPORTFULL, "DIERR_REPORTFULL & VFW_E_NO_ALLOCATOR")
3163  CHK_ERR(DIERR_MAPFILEFAIL, "DIERR_MAPFILEFAIL & VFW_E_RUNTIME_ERROR")
3164 // CHK_ERRA(DIERR_OLDDIRECTINPUTVERSION)
3165 // CHK_ERRA(DIERR_GENERIC)
3166 // CHK_ERRA(DIERR_OLDDIRECTINPUTVERSION)
3167 // CHK_ERRA(DIERR_BETADIRECTINPUTVERSION)
3168 // CHK_ERRA(DIERR_BADDRIVERVER)
3169 // CHK_ERRA(DIERR_DEVICENOTREG)
3170 // CHK_ERRA(DIERR_NOTFOUND)
3171 // CHK_ERRA(DIERR_OBJECTNOTFOUND)
3172 // CHK_ERRA(DIERR_INVALIDPARAM)
3173 // CHK_ERRA(DIERR_NOINTERFACE)
3174 // CHK_ERRA(DIERR_GENERIC)
3175 // CHK_ERRA(DIERR_OUTOFMEMORY)
3176 // CHK_ERRA(DIERR_UNSUPPORTED)
3177 // CHK_ERRA(DIERR_NOTINITIALIZED)
3178 // CHK_ERRA(DIERR_ALREADYINITIALIZED)
3179 // CHK_ERRA(DIERR_NOAGGREGATION)
3180 // CHK_ERRA(DIERR_OTHERAPPHASPRIO)
3181 // CHK_ERRA(DIERR_INPUTLOST)
3182 // CHK_ERRA(DIERR_ACQUIRED)
3183 // CHK_ERRA(DIERR_NOTACQUIRED)
3184 // CHK_ERRA(DIERR_READONLY)
3185 // CHK_ERRA(DIERR_HANDLEEXISTS)
3186 
3187 
3188 // -------------------------------------------------------------
3189 // dinputd.h error
3190 // -------------------------------------------------------------
3191 // CHK_ERRA(DIERR_NOMOREITEMS)
3192  CHK_ERRA(DIERR_DRIVERFIRST)
3193  CHK_ERR(DIERR_DRIVERFIRST+1, "DIERR_DRIVERFIRST+1")
3194  CHK_ERR(DIERR_DRIVERFIRST+2, "DIERR_DRIVERFIRST+2")
3195  CHK_ERR(DIERR_DRIVERFIRST+3, "DIERR_DRIVERFIRST+3")
3196  CHK_ERR(DIERR_DRIVERFIRST+4, "DIERR_DRIVERFIRST+4")
3197  CHK_ERR(DIERR_DRIVERFIRST+5, "DIERR_DRIVERFIRST+5")
3198  CHK_ERRA(DIERR_DRIVERLAST)
3199  CHK_ERR(DIERR_INVALIDCLASSINSTALLER, "DIERR_INVALIDCLASSINSTALLER")
3200  CHK_ERR(DIERR_CANCELLED, "DIERR_CANCELLED & MS_E_SAMPLEALLOC")
3201  CHK_ERRA(DIERR_BADINF)
3202 
3203 // -------------------------------------------------------------
3204 // d3d9.h error codes
3205 // -------------------------------------------------------------
3206 // CHK_ERRA(D3D_OK)
3207  CHK_ERRA(D3DERR_WRONGTEXTUREFORMAT)
3208  CHK_ERRA(D3DERR_UNSUPPORTEDCOLOROPERATION)
3209  CHK_ERRA(D3DERR_UNSUPPORTEDCOLORARG)
3210  CHK_ERRA(D3DERR_UNSUPPORTEDALPHAOPERATION)
3211  CHK_ERRA(D3DERR_UNSUPPORTEDALPHAARG)
3212  CHK_ERRA(D3DERR_TOOMANYOPERATIONS)
3213  CHK_ERRA(D3DERR_CONFLICTINGTEXTUREFILTER)
3214  CHK_ERRA(D3DERR_UNSUPPORTEDFACTORVALUE)
3215  CHK_ERRA(D3DERR_CONFLICTINGRENDERSTATE)
3216  CHK_ERRA(D3DERR_UNSUPPORTEDTEXTUREFILTER)
3217  CHK_ERRA(D3DERR_CONFLICTINGTEXTUREPALETTE)
3218  CHK_ERRA(D3DERR_DRIVERINTERNALERROR)
3219  CHK_ERRA(D3DERR_NOTFOUND)
3220  CHK_ERRA(D3DERR_MOREDATA)
3221  CHK_ERRA(D3DERR_DEVICELOST)
3222  CHK_ERRA(D3DERR_DEVICENOTRESET)
3223  CHK_ERRA(D3DERR_NOTAVAILABLE)
3224  CHK_ERRA(D3DERR_OUTOFVIDEOMEMORY)
3225  CHK_ERRA(D3DERR_INVALIDDEVICE)
3226  CHK_ERRA(D3DERR_INVALIDCALL)
3227  CHK_ERRA(D3DERR_DRIVERINVALIDCALL)
3228  //CHK_ERRA(D3DERR_WASSTILLDRAWING)
3229  CHK_ERRA(D3DOK_NOAUTOGEN)
3230 
3231  // Extended for Windows Vista
3232  CHK_ERRA(D3DERR_DEVICEREMOVED)
3233  CHK_ERRA(S_NOT_RESIDENT)
3234  CHK_ERRA(S_RESIDENT_IN_SHARED_MEMORY)
3235  CHK_ERRA(S_PRESENT_MODE_CHANGED)
3236  CHK_ERRA(S_PRESENT_OCCLUDED)
3237  CHK_ERRA(D3DERR_DEVICEHUNG)
3238 
3239  // Extended for Windows 7
3240  CHK_ERRA(D3DERR_UNSUPPORTEDOVERLAY)
3241  CHK_ERRA(D3DERR_UNSUPPORTEDOVERLAYFORMAT)
3242  CHK_ERRA(D3DERR_CANNOTPROTECTCONTENT)
3243  CHK_ERRA(D3DERR_UNSUPPORTEDCRYPTO)
3244  CHK_ERRA(D3DERR_PRESENT_STATISTICS_DISJOINT)
3245 
3246 // -------------------------------------------------------------
3247 // dsound.h error codes
3248 // -------------------------------------------------------------
3249 // CHK_ERRA(DS_OK)
3250  CHK_ERRA(DS_NO_VIRTUALIZATION)
3251  CHK_ERRA(DSERR_ALLOCATED)
3252  CHK_ERRA(DSERR_CONTROLUNAVAIL)
3253 // CHK_ERRA(DSERR_INVALIDPARAM)
3254  CHK_ERRA(DSERR_INVALIDCALL)
3255 // CHK_ERRA(DSERR_GENERIC)
3256  CHK_ERRA(DSERR_PRIOLEVELNEEDED)
3257 // CHK_ERRA(DSERR_OUTOFMEMORY)
3258  CHK_ERRA(DSERR_BADFORMAT)
3259 // CHK_ERRA(DSERR_UNSUPPORTED)
3260  CHK_ERRA(DSERR_NODRIVER)
3261  CHK_ERRA(DSERR_ALREADYINITIALIZED)
3262 // CHK_ERRA(DSERR_NOAGGREGATION)
3263  CHK_ERRA(DSERR_BUFFERLOST)
3264  CHK_ERRA(DSERR_OTHERAPPHASPRIO)
3265  CHK_ERRA(DSERR_UNINITIALIZED)
3266 // CHK_ERRA(DSERR_NOINTERFACE)
3267 // CHK_ERRA(DSERR_ACCESSDENIED)
3268  CHK_ERRA(DSERR_BUFFERTOOSMALL)
3269  CHK_ERRA(DSERR_DS8_REQUIRED)
3270  CHK_ERRA(DSERR_SENDLOOP)
3271  CHK_ERRA(DSERR_BADSENDBUFFERGUID)
3272  CHK_ERRA(DSERR_OBJECTNOTFOUND)
3273 
3274  CHK_ERRA(DSERR_FXUNAVAILABLE)
3275 
3276 #endif // !WINAPI_FAMILY || WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP
3277 
3278 // -------------------------------------------------------------
3279 // d3d10.h error codes
3280 // -------------------------------------------------------------
3281  CHK_ERRA(D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS)
3282  CHK_ERRA(D3D10_ERROR_FILE_NOT_FOUND)
3283 
3284 // -------------------------------------------------------------
3285 // dxgi.h error codes
3286 // -------------------------------------------------------------
3287  CHK_ERRA(DXGI_STATUS_OCCLUDED)
3288  CHK_ERRA(DXGI_STATUS_CLIPPED)
3289  CHK_ERRA(DXGI_STATUS_NO_REDIRECTION)
3290  CHK_ERRA(DXGI_STATUS_NO_DESKTOP_ACCESS)
3291  CHK_ERRA(DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE)
3292  CHK_ERRA(DXGI_STATUS_MODE_CHANGED)
3293  CHK_ERRA(DXGI_STATUS_MODE_CHANGE_IN_PROGRESS)
3294  CHK_ERRA(DXGI_ERROR_INVALID_CALL)
3295  CHK_ERRA(DXGI_ERROR_NOT_FOUND)
3296  CHK_ERRA(DXGI_ERROR_MORE_DATA)
3297  CHK_ERRA(DXGI_ERROR_UNSUPPORTED)
3298  CHK_ERRA(DXGI_ERROR_DEVICE_REMOVED)
3299  CHK_ERRA(DXGI_ERROR_DEVICE_HUNG)
3300  CHK_ERRA(DXGI_ERROR_DEVICE_RESET)
3301  CHK_ERRA(DXGI_ERROR_WAS_STILL_DRAWING)
3302  CHK_ERRA(DXGI_ERROR_FRAME_STATISTICS_DISJOINT)
3303  CHK_ERRA(DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE)
3304  CHK_ERRA(DXGI_ERROR_DRIVER_INTERNAL_ERROR)
3305  CHK_ERRA(DXGI_ERROR_NONEXCLUSIVE)
3306  CHK_ERRA(DXGI_ERROR_NOT_CURRENTLY_AVAILABLE)
3307  CHK_ERRA(DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED)
3308  CHK_ERRA(DXGI_ERROR_REMOTE_OUTOFMEMORY)
3309 
3310 // -------------------------------------------------------------
3311 // d3d11.h error codes
3312 // -------------------------------------------------------------
3313  CHK_ERRA(D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS)
3314  CHK_ERRA(D3D11_ERROR_FILE_NOT_FOUND)
3315  CHK_ERRA(D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS)
3316  CHK_ERRA(D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD)
3317 
3318 #if !defined(WINAPI_FAMILY) || WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
3319 
3320 // -------------------------------------------------------------
3321 // Direct2D error codes
3322 // -------------------------------------------------------------
3323 // CHK_ERRA(D2DERR_UNSUPPORTED_PIXEL_FORMAT)
3324 // CHK_ERRA(D2DERR_INSUFFICIENT_BUFFER)
3325  CHK_ERRA(D2DERR_WRONG_STATE)
3326  CHK_ERRA(D2DERR_NOT_INITIALIZED)
3327  CHK_ERRA(D2DERR_UNSUPPORTED_OPERATION)
3328  CHK_ERRA(D2DERR_SCANNER_FAILED)
3329  CHK_ERRA(D2DERR_SCREEN_ACCESS_DENIED)
3330  CHK_ERRA(D2DERR_DISPLAY_STATE_INVALID)
3331  CHK_ERRA(D2DERR_ZERO_VECTOR)
3332  CHK_ERRA(D2DERR_INTERNAL_ERROR)
3333  CHK_ERRA(D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED)
3334  CHK_ERRA(D2DERR_INVALID_CALL)
3335  CHK_ERRA(D2DERR_NO_HARDWARE_DEVICE)
3336  CHK_ERRA(D2DERR_RECREATE_TARGET)
3337  CHK_ERRA(D2DERR_TOO_MANY_SHADER_ELEMENTS)
3338  CHK_ERRA(D2DERR_SHADER_COMPILE_FAILED)
3339  CHK_ERRA(D2DERR_MAX_TEXTURE_SIZE_EXCEEDED)
3340  CHK_ERRA(D2DERR_UNSUPPORTED_VERSION)
3341  CHK_ERRA(D2DERR_BAD_NUMBER)
3342  CHK_ERRA(D2DERR_WRONG_FACTORY)
3343  CHK_ERRA(D2DERR_LAYER_ALREADY_IN_USE)
3344  CHK_ERRA(D2DERR_POP_CALL_DID_NOT_MATCH_PUSH)
3345 // CHK_ERRA(D2DERR_WRONG_RESOURCE_DOMAIN)
3346  CHK_ERRA(D2DERR_PUSH_POP_UNBALANCED)
3347  CHK_ERRA(D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT)
3348  CHK_ERRA(D2DERR_INCOMPATIBLE_BRUSH_TYPES)
3349  CHK_ERRA(D2DERR_WIN32_ERROR)
3350  CHK_ERRA(D2DERR_TARGET_NOT_GDI_COMPATIBLE)
3351  CHK_ERRA(D2DERR_TEXT_EFFECT_IS_WRONG_TYPE)
3352  CHK_ERRA(D2DERR_TEXT_RENDERER_NOT_RELEASED)
3353 // CHK_ERRA(D2DERR_EXCEEDS_MAX_BITMAP_SIZE)
3354 
3355 // -------------------------------------------------------------
3356 // DirectWrite error codes
3357 // -------------------------------------------------------------
3358  CHK_ERRA(DWRITE_E_FILEFORMAT)
3359  CHK_ERRA(DWRITE_E_UNEXPECTED)
3360  CHK_ERRA(DWRITE_E_NOFONT)
3361  CHK_ERRA(DWRITE_E_FILENOTFOUND)
3362  CHK_ERRA(DWRITE_E_FILEACCESS)
3363  CHK_ERRA(DWRITE_E_FONTCOLLECTIONOBSOLETE)
3364  CHK_ERRA(DWRITE_E_ALREADYREGISTERED)
3365 
3366 // -------------------------------------------------------------
3367 // WIC error codes
3368 // -------------------------------------------------------------
3369  CHK_ERRA(WINCODEC_ERR_WRONGSTATE)
3370  CHK_ERRA(WINCODEC_ERR_VALUEOUTOFRANGE)
3371  CHK_ERRA(WINCODEC_ERR_UNKNOWNIMAGEFORMAT)
3372  CHK_ERRA(WINCODEC_ERR_UNSUPPORTEDVERSION)
3373  CHK_ERRA(WINCODEC_ERR_NOTINITIALIZED)
3374  CHK_ERRA(WINCODEC_ERR_ALREADYLOCKED)
3375  CHK_ERRA(WINCODEC_ERR_PROPERTYNOTFOUND)
3376  CHK_ERRA(WINCODEC_ERR_PROPERTYNOTSUPPORTED)
3377  CHK_ERRA(WINCODEC_ERR_PROPERTYSIZE)
3378  CHK_ERRA(WINCODEC_ERR_CODECPRESENT)
3379  CHK_ERRA(WINCODEC_ERR_CODECNOTHUMBNAIL)
3380  CHK_ERRA(WINCODEC_ERR_PALETTEUNAVAILABLE)
3381  CHK_ERRA(WINCODEC_ERR_CODECTOOMANYSCANLINES)
3382  CHK_ERRA(WINCODEC_ERR_INTERNALERROR)
3383  CHK_ERRA(WINCODEC_ERR_SOURCERECTDOESNOTMATCHDIMENSIONS)
3384  CHK_ERRA(WINCODEC_ERR_COMPONENTNOTFOUND)
3385  CHK_ERRA(WINCODEC_ERR_IMAGESIZEOUTOFRANGE)
3386  CHK_ERRA(WINCODEC_ERR_TOOMUCHMETADATA)
3387  CHK_ERRA(WINCODEC_ERR_BADIMAGE)
3388  CHK_ERRA(WINCODEC_ERR_BADHEADER)
3389  CHK_ERRA(WINCODEC_ERR_FRAMEMISSING)
3390  CHK_ERRA(WINCODEC_ERR_BADMETADATAHEADER)
3391  CHK_ERRA(WINCODEC_ERR_BADSTREAMDATA)
3392  CHK_ERRA(WINCODEC_ERR_STREAMWRITE)
3393  CHK_ERRA(WINCODEC_ERR_STREAMREAD)
3394  CHK_ERRA(WINCODEC_ERR_STREAMNOTAVAILABLE)
3395  CHK_ERRA(WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT)
3396  CHK_ERRA(WINCODEC_ERR_UNSUPPORTEDOPERATION)
3397  CHK_ERRA(WINCODEC_ERR_INVALIDREGISTRATION)
3398  CHK_ERRA(WINCODEC_ERR_COMPONENTINITIALIZEFAILURE)
3399  CHK_ERRA(WINCODEC_ERR_INSUFFICIENTBUFFER)
3400  CHK_ERRA(WINCODEC_ERR_DUPLICATEMETADATAPRESENT)
3401  CHK_ERRA(WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE)
3402  CHK_ERRA(WINCODEC_ERR_UNEXPECTEDSIZE)
3403  CHK_ERRA(WINCODEC_ERR_INVALIDQUERYREQUEST)
3404  CHK_ERRA(WINCODEC_ERR_UNEXPECTEDMETADATATYPE)
3405  CHK_ERRA(WINCODEC_ERR_REQUESTONLYVALIDATMETADATAROOT)
3406  CHK_ERRA(WINCODEC_ERR_INVALIDQUERYCHARACTER)
3407  CHK_ERRA(WINCODEC_ERR_WIN32ERROR)
3408  CHK_ERRA(WINCODEC_ERR_INVALIDPROGRESSIVELEVEL)
3409 
3410 #endif // !WINAPI_FAMILY || WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
3411 
3412 // -------------------------------------------------------------
3413 // DXUT error codes
3414 // -------------------------------------------------------------
3425 
3426 // -------------------------------------------------------------
3427 // xaudio2.h error codes
3428 // -------------------------------------------------------------
3433 
3434 // -------------------------------------------------------------
3435 // xapo.h error codes
3436 // -------------------------------------------------------------
3438  }
3439 
3440  return L"Unknown";
3441 }
3442 
3443 //--------------------------------------------------------------------------------------
3444 #undef CHK_ERR
3445 #undef CHK_ERRA
3446 #undef HRESULT_FROM_WIN32b
3447 #undef CHK_ERR_WIN32A
3448 #undef CHK_ERR_WIN32_ONLY
3449 
3450 #define CHK_ERRA(hrchk) \
3451  case hrchk: \
3452  wcscpy_s( desc, count, L#hrchk );
3453 
3454 #define CHK_ERR(hrchk, strOut) \
3455  case hrchk: \
3456  wcscpy_s( desc, count, L##strOut );
3457 
3458 
3459 //--------------------------------------------------------------------------------------
3460 void WINAPI DXGetErrorDescriptionW( _In_ HRESULT hr, _Out_cap_(count) WCHAR* desc, _In_ size_t count )
3461 {
3462  if ( !count )
3463  return;
3464 
3465  *desc = 0;
3466 
3467  // First try to see if FormatMessage knows this hr
3468  UINT icount = static_cast<UINT>( std::min<size_t>( count, 32767 ) );
3469 
3470  DWORD result = FormatMessageW( FORMAT_MESSAGE_FROM_SYSTEM, nullptr, hr,
3471  MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), desc, icount, nullptr );
3472 
3473  if (result > 0)
3474  return;
3475 
3476  switch (hr)
3477  {
3478 // Commmented out codes are actually alises for other codes
3479 
3480 #if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
3481 
3482 // -------------------------------------------------------------
3483 // ddraw.h error codes
3484 // -------------------------------------------------------------
3485  CHK_ERR(DDERR_ALREADYINITIALIZED, "This object is already initialized")
3486  CHK_ERR(DDERR_CANNOTATTACHSURFACE, "This surface can not be attached to the requested surface.")
3487  CHK_ERR(DDERR_CANNOTDETACHSURFACE, "This surface can not be detached from the requested surface.")
3488  CHK_ERR(DDERR_CURRENTLYNOTAVAIL, "Support is currently not available.")
3489  CHK_ERR(DDERR_EXCEPTION, "An exception was encountered while performing the requested operation")
3490 // CHK_ERR(DDERR_GENERIC, "DDERR_GENERIC")
3491  CHK_ERR(DDERR_HEIGHTALIGN, "Height of rectangle provided is not a multiple of reqd alignment")
3492  CHK_ERR(DDERR_INCOMPATIBLEPRIMARY, "Unable to match primary surface creation request with existing primary surface.")
3493  CHK_ERR(DDERR_INVALIDCAPS, "One or more of the caps bits passed to the callback are incorrect.")
3494  CHK_ERR(DDERR_INVALIDCLIPLIST, "DirectDraw does not support provided Cliplist.")
3495  CHK_ERR(DDERR_INVALIDMODE, "DirectDraw does not support the requested mode")
3496  CHK_ERR(DDERR_INVALIDOBJECT, "DirectDraw received a pointer that was an invalid DIRECTDRAW object.")
3497 // CHK_ERR(DDERR_INVALIDPARAMS, "DDERR_INVALIDPARAMS")
3498  CHK_ERR(DDERR_INVALIDPIXELFORMAT, "pixel format was invalid as specified")
3499  CHK_ERR(DDERR_INVALIDRECT, "Rectangle provided was invalid.")
3500  CHK_ERR(DDERR_LOCKEDSURFACES, "Operation could not be carried out because one or more surfaces are locked")
3501  CHK_ERR(DDERR_NO3D, "There is no 3D present.")
3502  CHK_ERR(DDERR_NOALPHAHW, "Operation could not be carried out because there is no alpha accleration hardware present or available.")
3503  CHK_ERR(DDERR_NOSTEREOHARDWARE, "Operation could not be carried out because there is no stereo hardware present or available.")
3504  CHK_ERR(DDERR_NOSURFACELEFT, "Operation could not be carried out because there is no hardware present which supports stereo surfaces")
3505  CHK_ERR(DDERR_NOCLIPLIST, "no clip list available")
3506  CHK_ERR(DDERR_NOCOLORCONVHW, "Operation could not be carried out because there is no color conversion hardware present or available.")
3507  CHK_ERR(DDERR_NOCOOPERATIVELEVELSET, "Create function called without DirectDraw object method SetCooperativeLevel being called.")
3508  CHK_ERR(DDERR_NOCOLORKEY, "Surface doesn't currently have a color key")
3509  CHK_ERR(DDERR_NOCOLORKEYHW, "Operation could not be carried out because there is no hardware support of the dest color key.")
3510  CHK_ERR(DDERR_NODIRECTDRAWSUPPORT, "No DirectDraw support possible with current display driver")
3511  CHK_ERR(DDERR_NOEXCLUSIVEMODE, "Operation requires the application to have exclusive mode but the application does not have exclusive mode.")
3512  CHK_ERR(DDERR_NOFLIPHW, "Flipping visible surfaces is not supported.")
3513  CHK_ERR(DDERR_NOGDI, "There is no GDI present.")
3514  CHK_ERR(DDERR_NOMIRRORHW, "Operation could not be carried out because there is no hardware present or available.")
3515  CHK_ERR(DDERR_NOTFOUND, "Requested item was not found")
3516  CHK_ERR(DDERR_NOOVERLAYHW, "Operation could not be carried out because there is no overlay hardware present or available.")
3517  CHK_ERR(DDERR_OVERLAPPINGRECTS, "Operation could not be carried out because the source and destination rectangles are on the same surface and overlap each other.")
3518  CHK_ERR(DDERR_NORASTEROPHW, "Operation could not be carried out because there is no appropriate raster op hardware present or available.")
3519  CHK_ERR(DDERR_NOROTATIONHW, "Operation could not be carried out because there is no rotation hardware present or available.")
3520  CHK_ERR(DDERR_NOSTRETCHHW, "Operation could not be carried out because there is no hardware support for stretching")
3521  CHK_ERR(DDERR_NOT4BITCOLOR, "DirectDrawSurface is not in 4 bit color palette and the requested operation requires 4 bit color palette.")
3522  CHK_ERR(DDERR_NOT4BITCOLORINDEX, "DirectDrawSurface is not in 4 bit color index palette and the requested operation requires 4 bit color index palette.")
3523  CHK_ERR(DDERR_NOT8BITCOLOR, "DirectDraw Surface is not in 8 bit color mode and the requested operation requires 8 bit color.")
3524  CHK_ERR(DDERR_NOTEXTUREHW, "Operation could not be carried out because there is no texture mapping hardware present or available.")
3525  CHK_ERR(DDERR_NOVSYNCHW, "Operation could not be carried out because there is no hardware support for vertical blank synchronized operations.")
3526  CHK_ERR(DDERR_NOZBUFFERHW, "Operation could not be carried out because there is no hardware support for zbuffer blting.")
3527  CHK_ERR(DDERR_NOZOVERLAYHW, "Overlay surfaces could not be z layered based on their BltOrder because the hardware does not support z layering of overlays.")
3528  CHK_ERR(DDERR_OUTOFCAPS, "The hardware needed for the requested operation has already been allocated.")
3529 // CHK_ERR(DDERR_OUTOFMEMORY, "DDERR_OUTOFMEMORY")
3530 // CHK_ERR(DDERR_OUTOFVIDEOMEMORY, "DDERR_OUTOFVIDEOMEMORY")
3531  CHK_ERR(DDERR_OVERLAYCANTCLIP, "hardware does not support clipped overlays")
3532  CHK_ERR(DDERR_OVERLAYCOLORKEYONLYONEACTIVE, "Can only have ony color key active at one time for overlays")
3533  CHK_ERR(DDERR_PALETTEBUSY, "Access to this palette is being refused because the palette is already locked by another thread.")
3534  CHK_ERR(DDERR_COLORKEYNOTSET, "No src color key specified for this operation.")
3535  CHK_ERR(DDERR_SURFACEALREADYATTACHED, "This surface is already attached to the surface it is being attached to.")
3536  CHK_ERR(DDERR_SURFACEALREADYDEPENDENT, "This surface is already a dependency of the surface it is being made a dependency of.")
3537  CHK_ERR(DDERR_SURFACEBUSY, "Access to this surface is being refused because the surface is already locked by another thread.")
3538  CHK_ERR(DDERR_CANTLOCKSURFACE, "Access to this surface is being refused because no driver exists which can supply a pointer to the surface. This is most likely to happen when attempting to lock the primary surface when no DCI provider is present. Will also happen on attempts to lock an optimized surface.")
3539  CHK_ERR(DDERR_SURFACEISOBSCURED, "Access to Surface refused because Surface is obscured.")
3540  CHK_ERR(DDERR_SURFACELOST, "Access to this surface is being refused because the surface is gone. The DIRECTDRAWSURFACE object representing this surface should have Restore called on it.")
3541  CHK_ERR(DDERR_SURFACENOTATTACHED, "The requested surface is not attached.")
3542  CHK_ERR(DDERR_TOOBIGHEIGHT, "Height requested by DirectDraw is too large.")
3543  CHK_ERR(DDERR_TOOBIGSIZE, "Size requested by DirectDraw is too large -- The individual height and width are OK.")
3544  CHK_ERR(DDERR_TOOBIGWIDTH, "Width requested by DirectDraw is too large.")
3545 // CHK_ERR(DDERR_UNSUPPORTED, "DDERR_UNSUPPORTED")
3546  CHK_ERR(DDERR_UNSUPPORTEDFORMAT, "Pixel format requested is unsupported by DirectDraw")
3547  CHK_ERR(DDERR_UNSUPPORTEDMASK, "Bitmask in the pixel format requested is unsupported by DirectDraw")
3548  CHK_ERR(DDERR_INVALIDSTREAM, "The specified stream contains invalid data")
3549  CHK_ERR(DDERR_VERTICALBLANKINPROGRESS, "vertical blank is in progress")
3550  CHK_ERR(DDERR_WASSTILLDRAWING, "Was still drawing")
3551  CHK_ERR(DDERR_DDSCAPSCOMPLEXREQUIRED, "The specified surface type requires specification of the COMPLEX flag")
3552  CHK_ERR(DDERR_XALIGN, "Rectangle provided was not horizontally aligned on reqd. boundary")
3553  CHK_ERR(DDERR_INVALIDDIRECTDRAWGUID, "The GUID passed to DirectDrawCreate is not a valid DirectDraw driver identifier.")
3554  CHK_ERR(DDERR_DIRECTDRAWALREADYCREATED, "A DirectDraw object representing this driver has already been created for this process.")
3555  CHK_ERR(DDERR_NODIRECTDRAWHW, "A hardware only DirectDraw object creation was attempted but the driver did not support any hardware.")
3556  CHK_ERR(DDERR_PRIMARYSURFACEALREADYEXISTS, "this process already has created a primary surface")
3557  CHK_ERR(DDERR_NOEMULATION, "software emulation not available.")
3558  CHK_ERR(DDERR_REGIONTOOSMALL, "region passed to Clipper::GetClipList is too small.")
3559  CHK_ERR(DDERR_CLIPPERISUSINGHWND, "an attempt was made to set a clip list for a clipper objec that is already monitoring an hwnd.")
3560  CHK_ERR(DDERR_NOCLIPPERATTACHED, "No clipper object attached to surface object")
3561  CHK_ERR(DDERR_NOHWND, "Clipper notification requires an HWND or no HWND has previously been set as the CooperativeLevel HWND.")
3562  CHK_ERR(DDERR_HWNDSUBCLASSED, "HWND used by DirectDraw CooperativeLevel has been subclassed, this prevents DirectDraw from restoring state.")
3563  CHK_ERR(DDERR_HWNDALREADYSET, "The CooperativeLevel HWND has already been set. It can not be reset while the process has surfaces or palettes created.")
3564  CHK_ERR(DDERR_NOPALETTEATTACHED, "No palette object attached to this surface.")
3565  CHK_ERR(DDERR_NOPALETTEHW, "No hardware support for 16 or 256 color palettes.")
3566  CHK_ERR(DDERR_BLTFASTCANTCLIP, "If a clipper object is attached to the source surface passed into a BltFast call.")
3567  CHK_ERR(DDERR_NOBLTHW, "No blter.")
3568  CHK_ERR(DDERR_NODDROPSHW, "No DirectDraw ROP hardware.")
3569  CHK_ERR(DDERR_OVERLAYNOTVISIBLE, "returned when GetOverlayPosition is called on a hidden overlay")
3570  CHK_ERR(DDERR_NOOVERLAYDEST, "returned when GetOverlayPosition is called on a overlay that UpdateOverlay has never been called on to establish a destionation.")
3571  CHK_ERR(DDERR_INVALIDPOSITION, "returned when the position of the overlay on the destionation is no longer legal for that destionation.")
3572  CHK_ERR(DDERR_NOTAOVERLAYSURFACE, "returned when an overlay member is called for a non-overlay surface")
3573  CHK_ERR(DDERR_EXCLUSIVEMODEALREADYSET, "An attempt was made to set the cooperative level when it was already set to exclusive.")
3574  CHK_ERR(DDERR_NOTFLIPPABLE, "An attempt has been made to flip a surface that is not flippable.")
3575  CHK_ERR(DDERR_CANTDUPLICATE, "Can't duplicate primary & 3D surfaces, or surfaces that are implicitly created.")
3576  CHK_ERR(DDERR_NOTLOCKED, "Surface was not locked. An attempt to unlock a surface that was not locked at all, or by this process, has been attempted.")
3577  CHK_ERR(DDERR_CANTCREATEDC, "Windows can not create any more DCs, or a DC was requested for a paltte-indexed surface when the surface had no palette AND the display mode was not palette-indexed (in this case DirectDraw cannot select a proper palette into the DC)")
3578  CHK_ERR(DDERR_NODC, "No DC was ever created for this surface.")
3579  CHK_ERR(DDERR_WRONGMODE, "This surface can not be restored because it was created in a different mode.")
3580  CHK_ERR(DDERR_IMPLICITLYCREATED, "This surface can not be restored because it is an implicitly created surface.")
3581  CHK_ERR(DDERR_NOTPALETTIZED, "The surface being used is not a palette-based surface")
3582  CHK_ERR(DDERR_UNSUPPORTEDMODE, "The display is currently in an unsupported mode")
3583  CHK_ERR(DDERR_NOMIPMAPHW, "Operation could not be carried out because there is no mip-map texture mapping hardware present or available.")
3584  CHK_ERR(DDERR_INVALIDSURFACETYPE, "The requested action could not be performed because the surface was of the wrong type.")
3585  CHK_ERR(DDERR_NOOPTIMIZEHW, "Device does not support optimized surfaces, therefore no video memory optimized surfaces")
3586  CHK_ERR(DDERR_NOTLOADED, "Surface is an optimized surface, but has not yet been allocated any memory")
3587  CHK_ERR(DDERR_NOFOCUSWINDOW, "Attempt was made to create or set a device window without first setting the focus window")
3588  CHK_ERR(DDERR_NOTONMIPMAPSUBLEVEL, "Attempt was made to set a palette on a mipmap sublevel")
3589  CHK_ERR(DDERR_DCALREADYCREATED, "A DC has already been returned for this surface. Only one DC can be retrieved per surface.")
3590  CHK_ERR(DDERR_NONONLOCALVIDMEM, "An attempt was made to allocate non-local video memory from a device that does not support non-local video memory.")
3591  CHK_ERR(DDERR_CANTPAGELOCK, "The attempt to page lock a surface failed.")
3592  CHK_ERR(DDERR_CANTPAGEUNLOCK, "The attempt to page unlock a surface failed.")
3593  CHK_ERR(DDERR_NOTPAGELOCKED, "An attempt was made to page unlock a surface with no outstanding page locks.")
3594  CHK_ERR(DDERR_MOREDATA, "There is more data available than the specified buffer size could hold")
3595  CHK_ERR(DDERR_EXPIRED, "The data has expired and is therefore no longer valid.")
3596  CHK_ERR(DDERR_TESTFINISHED, "The mode test has finished executing.")
3597  CHK_ERR(DDERR_NEWMODE, "The mode test has switched to a new mode.")
3598  CHK_ERR(DDERR_D3DNOTINITIALIZED, "D3D has not yet been initialized.")
3599  CHK_ERR(DDERR_VIDEONOTACTIVE, "The video port is not active")
3600  CHK_ERR(DDERR_NOMONITORINFORMATION, "The monitor does not have EDID data.")
3601  CHK_ERR(DDERR_NODRIVERSUPPORT, "The driver does not enumerate display mode refresh rates.")
3602  CHK_ERR(DDERR_DEVICEDOESNTOWNSURFACE, "Surfaces created by one direct draw device cannot be used directly by another direct draw device.")
3603 
3604 
3605 // -------------------------------------------------------------
3606 // dinput.h error codes
3607 // -------------------------------------------------------------
3608 // CHK_ERR(DI_OK, "DI_OK")
3609 // CHK_ERR(DI_NOTATTACHED, "DI_NOTATTACHED")
3610 // CHK_ERR(DI_BUFFEROVERFLOW, "DI_BUFFEROVERFLOW")
3611 // CHK_ERR(DI_PROPNOEFFECT, "DI_PROPNOEFFECT")
3612 // CHK_ERR(DI_NOEFFECT, "DI_NOEFFECT")
3613 // CHK_ERR(DI_POLLEDDEVICE, "DI_POLLEDDEVICE")
3614 // CHK_ERR(DI_DOWNLOADSKIPPED, "DI_DOWNLOADSKIPPED")
3615 // CHK_ERR(DI_EFFECTRESTARTED, "DI_EFFECTRESTARTED")
3616 // CHK_ERR(DI_SETTINGSNOTSAVED_ACCESSDENIED, "DI_SETTINGSNOTSAVED_ACCESSDENIED")
3617 // CHK_ERR(DI_SETTINGSNOTSAVED_DISKFULL, "DI_SETTINGSNOTSAVED_DISKFULL")
3618 // CHK_ERR(DI_TRUNCATED, "DI_TRUNCATED")
3619 // CHK_ERR(DI_TRUNCATEDANDRESTARTED, "DI_TRUNCATEDANDRESTARTED")
3620 // CHK_ERR(DI_WRITEPROTECT, "DI_WRITEPROTECT")
3621  CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, "The application requires a newer version of DirectInput.")
3622 // CHK_ERR(DIERR_GENERIC, "DIERR_GENERIC")
3623 // CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, "DIERR_OLDDIRECTINPUTVERSION")
3624  CHK_ERR(DIERR_BETADIRECTINPUTVERSION, "The application was written for an unsupported prerelease version of DirectInput.")
3625  CHK_ERR(DIERR_BADDRIVERVER, "The object could not be created due to an incompatible driver version or mismatched or incomplete driver components.")
3626 // CHK_ERR(DIERR_DEVICENOTREG, "DIERR_DEVICENOTREG")
3627 // CHK_ERR(DIERR_NOTFOUND, "The requested object does not exist.")
3628 // CHK_ERR(DIERR_OBJECTNOTFOUND, "DIERR_OBJECTNOTFOUND")
3629 // CHK_ERR(DIERR_INVALIDPARAM, "DIERR_INVALIDPARAM")
3630 // CHK_ERR(DIERR_NOINTERFACE, "DIERR_NOINTERFACE")
3631 // CHK_ERR(DIERR_GENERIC, "DIERR_GENERIC")
3632 // CHK_ERR(DIERR_OUTOFMEMORY, "DIERR_OUTOFMEMORY")
3633 // CHK_ERR(DIERR_UNSUPPORTED, "DIERR_UNSUPPORTED")
3634  CHK_ERR(DIERR_NOTINITIALIZED, "This object has not been initialized")
3635  CHK_ERR(DIERR_ALREADYINITIALIZED, "This object is already initialized")
3636 // CHK_ERR(DIERR_NOAGGREGATION, "DIERR_NOAGGREGATION")
3637 // CHK_ERR(DIERR_OTHERAPPHASPRIO, "DIERR_OTHERAPPHASPRIO")
3638  CHK_ERR(DIERR_INPUTLOST, "Access to the device has been lost. It must be re-acquired.")
3639  CHK_ERR(DIERR_ACQUIRED, "The operation cannot be performed while the device is acquired.")
3640  CHK_ERR(DIERR_NOTACQUIRED, "The operation cannot be performed unless the device is acquired.")
3641 // CHK_ERR(DIERR_READONLY, "DIERR_READONLY")
3642 // CHK_ERR(DIERR_HANDLEEXISTS, "DIERR_HANDLEEXISTS")
3643  CHK_ERR(DIERR_INSUFFICIENTPRIVS, "Unable to IDirectInputJoyConfig_Acquire because the user does not have sufficient privileges to change the joystick configuration. & An invalid media type was specified")
3644  CHK_ERR(DIERR_DEVICEFULL, "The device is full. & An invalid media subtype was specified.")
3645  CHK_ERR(DIERR_MOREDATA, "Not all the requested information fit into the buffer. & This object can only be created as an aggregated object.")
3646  CHK_ERR(DIERR_NOTDOWNLOADED, "The effect is not downloaded. & The enumerator has become invalid.")
3647  CHK_ERR(DIERR_HASEFFECTS, "The device cannot be reinitialized because there are still effects attached to it. & At least one of the pins involved in the operation is already connected.")
3648  CHK_ERR(DIERR_NOTEXCLUSIVEACQUIRED, "The operation cannot be performed unless the device is acquired in DISCL_EXCLUSIVE mode. & This operation cannot be performed because the filter is active.")
3649  CHK_ERR(DIERR_INCOMPLETEEFFECT, "The effect could not be downloaded because essential information is missing. For example, no axes have been associated with the effect, or no type-specific information has been created. & One of the specified pins supports no media types.")
3650  CHK_ERR(DIERR_NOTBUFFERED, "Attempted to read buffered device data from a device that is not buffered. & There is no common media type between these pins.")
3651  CHK_ERR(DIERR_EFFECTPLAYING, "An attempt was made to modify parameters of an effect while it is playing. Not all hardware devices support altering the parameters of an effect while it is playing. & Two pins of the same direction cannot be connected together.")
3652  CHK_ERR(DIERR_UNPLUGGED, "The operation could not be completed because the device is not plugged in. & The operation cannot be performed because the pins are not connected.")
3653  CHK_ERR(DIERR_REPORTFULL, "SendDeviceData failed because more information was requested to be sent than can be sent to the device. Some devices have restrictions on how much data can be sent to them. (For example, there might be a limit on the number of buttons that can be pressed at once.) & No sample buffer allocator is available.")
3654  CHK_ERR(DIERR_MAPFILEFAIL, "A mapper file function failed because reading or writing the user or IHV settings file failed. & A run-time error occurred.")
3655 
3656 // -------------------------------------------------------------
3657 // dinputd.h error codes
3658 // -------------------------------------------------------------
3659  CHK_ERR(DIERR_NOMOREITEMS, "No more items.")
3660  CHK_ERR(DIERR_DRIVERFIRST, "Device driver-specific codes. Unless the specific driver has been precisely identified, no meaning should be attributed to these values other than that the driver originated the error.")
3661  CHK_ERR(DIERR_DRIVERFIRST+1, "DIERR_DRIVERFIRST+1")
3662  CHK_ERR(DIERR_DRIVERFIRST+2, "DIERR_DRIVERFIRST+2")
3663  CHK_ERR(DIERR_DRIVERFIRST+3, "DIERR_DRIVERFIRST+3")
3664  CHK_ERR(DIERR_DRIVERFIRST+4, "DIERR_DRIVERFIRST+4")
3665  CHK_ERR(DIERR_DRIVERFIRST+5, "DIERR_DRIVERFIRST+5")
3666  CHK_ERR(DIERR_DRIVERLAST, "Device installer errors.")
3667  CHK_ERR(DIERR_INVALIDCLASSINSTALLER, "Registry entry or DLL for class installer invalid or class installer not found.")
3668  CHK_ERR(DIERR_CANCELLED, "The user cancelled the install operation. & The stream already has allocated samples and the surface doesn't match the sample format.")
3669  CHK_ERR(DIERR_BADINF, "The INF file for the selected device could not be found or is invalid or is damaged. & The specified purpose ID can't be used for the call.")
3670 
3671 // -------------------------------------------------------------
3672 // d3d9.h error codes
3673 // -------------------------------------------------------------
3674 // CHK_ERR(D3D_OK, "Ok")
3675  CHK_ERR(D3DERR_WRONGTEXTUREFORMAT, "Wrong texture format")
3676  CHK_ERR(D3DERR_UNSUPPORTEDCOLOROPERATION, "Unsupported color operation")
3677  CHK_ERR(D3DERR_UNSUPPORTEDCOLORARG, "Unsupported color arg")
3678  CHK_ERR(D3DERR_UNSUPPORTEDALPHAOPERATION, "Unsupported alpha operation")
3679  CHK_ERR(D3DERR_UNSUPPORTEDALPHAARG, "Unsupported alpha arg")
3680  CHK_ERR(D3DERR_TOOMANYOPERATIONS, "Too many operations")
3681  CHK_ERR(D3DERR_CONFLICTINGTEXTUREFILTER, "Conflicting texture filter")
3682  CHK_ERR(D3DERR_UNSUPPORTEDFACTORVALUE, "Unsupported factor value")
3683  CHK_ERR(D3DERR_CONFLICTINGRENDERSTATE, "Conflicting render state")
3684  CHK_ERR(D3DERR_UNSUPPORTEDTEXTUREFILTER, "Unsupported texture filter")
3685  CHK_ERR(D3DERR_CONFLICTINGTEXTUREPALETTE, "Conflicting texture palette")
3686  CHK_ERR(D3DERR_DRIVERINTERNALERROR, "Driver internal error")
3687  CHK_ERR(D3DERR_NOTFOUND, "Not found")
3688  CHK_ERR(D3DERR_MOREDATA, "More data")
3689  CHK_ERR(D3DERR_DEVICELOST, "Device lost")
3690  CHK_ERR(D3DERR_DEVICENOTRESET, "Device not reset")
3691  CHK_ERR(D3DERR_NOTAVAILABLE, "Not available")
3692  CHK_ERR(D3DERR_OUTOFVIDEOMEMORY, "Out of video memory")
3693  CHK_ERR(D3DERR_INVALIDDEVICE, "Invalid device")
3694  CHK_ERR(D3DERR_INVALIDCALL, "Invalid call")
3695  CHK_ERR(D3DERR_DRIVERINVALIDCALL, "Driver invalid call")
3696  //CHK_ERR(D3DERR_WASSTILLDRAWING, "Was Still Drawing")
3697  CHK_ERR(D3DOK_NOAUTOGEN, "The call succeeded but there won't be any mipmaps generated")
3698 
3699  // Extended for Windows Vista
3700  CHK_ERR(D3DERR_DEVICEREMOVED, "Hardware device was removed")
3701  CHK_ERR(S_NOT_RESIDENT, "Resource not resident in memory")
3702  CHK_ERR(S_RESIDENT_IN_SHARED_MEMORY, "Resource resident in shared memory")
3703  CHK_ERR(S_PRESENT_MODE_CHANGED, "Desktop display mode has changed")
3704  CHK_ERR(S_PRESENT_OCCLUDED, "Client window is occluded (minimized or other fullscreen)")
3705  CHK_ERR(D3DERR_DEVICEHUNG, "Hardware adapter reset by OS")
3706 
3707  // Extended for Windows 7
3708  CHK_ERR(D3DERR_UNSUPPORTEDOVERLAY, "Overlay is not supported" )
3709  CHK_ERR(D3DERR_UNSUPPORTEDOVERLAYFORMAT, "Overlay format is not supported" )
3710  CHK_ERR(D3DERR_CANNOTPROTECTCONTENT, "Contect protection not available" )
3711  CHK_ERR(D3DERR_UNSUPPORTEDCRYPTO, "Unsupported cryptographic system" )
3712  CHK_ERR(D3DERR_PRESENT_STATISTICS_DISJOINT, "Presentation statistics are disjoint" )
3713 
3714 
3715 // -------------------------------------------------------------
3716 // dsound.h error codes
3717 // -------------------------------------------------------------
3718 // CHK_ERR(DS_OK, "")
3719  CHK_ERR(DS_NO_VIRTUALIZATION, "The call succeeded, but we had to substitute the 3D algorithm")
3720  CHK_ERR(DSERR_ALLOCATED, "The call failed because resources (such as a priority level) were already being used by another caller")
3721  CHK_ERR(DSERR_CONTROLUNAVAIL, "The control (vol, pan, etc.) requested by the caller is not available")
3722 // CHK_ERR(DSERR_INVALIDPARAM, "DSERR_INVALIDPARAM")
3723  CHK_ERR(DSERR_INVALIDCALL, "This call is not valid for the current state of this object")
3724 // CHK_ERR(DSERR_GENERIC, "DSERR_GENERIC")
3725  CHK_ERR(DSERR_PRIOLEVELNEEDED, "The caller does not have the priority level required for the function to succeed")
3726 // CHK_ERR(DSERR_OUTOFMEMORY, "Not enough free memory is available to complete the operation")
3727  CHK_ERR(DSERR_BADFORMAT, "The specified WAVE format is not supported")
3728 // CHK_ERR(DSERR_UNSUPPORTED, "DSERR_UNSUPPORTED")
3729  CHK_ERR(DSERR_NODRIVER, "No sound driver is available for use")
3730  CHK_ERR(DSERR_ALREADYINITIALIZED, "This object is already initialized")
3731 // CHK_ERR(DSERR_NOAGGREGATION, "DSERR_NOAGGREGATION")
3732  CHK_ERR(DSERR_BUFFERLOST, "The buffer memory has been lost, and must be restored")
3733  CHK_ERR(DSERR_OTHERAPPHASPRIO, "Another app has a higher priority level, preventing this call from succeeding")
3734  CHK_ERR(DSERR_UNINITIALIZED, "This object has not been initialized")
3735 // CHK_ERR(DSERR_NOINTERFACE, "DSERR_NOINTERFACE")
3736 // CHK_ERR(DSERR_ACCESSDENIED, "DSERR_ACCESSDENIED")
3737  CHK_ERR(DSERR_BUFFERTOOSMALL, "Tried to create a DSBCAPS_CTRLFX buffer shorter than DSBSIZE_FX_MIN milliseconds")
3738  CHK_ERR(DSERR_DS8_REQUIRED, "Attempt to use DirectSound 8 functionality on an older DirectSound object")
3739  CHK_ERR(DSERR_SENDLOOP, "A circular loop of send effects was detected")
3740  CHK_ERR(DSERR_BADSENDBUFFERGUID, "The GUID specified in an audiopath file does not match a valid MIXIN buffer")
3741  CHK_ERR(DSERR_OBJECTNOTFOUND, "The object requested was not found (numerically equal to DMUS_E_NOT_FOUND)")
3742 
3743  CHK_ERR(DSERR_FXUNAVAILABLE, "Requested effects are not available")
3744 
3745 #endif // !WINAPI_FAMILY || WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP
3746 
3747 // -------------------------------------------------------------
3748 // d3d10.h error codes
3749 // -------------------------------------------------------------
3750  CHK_ERR(D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS, "There are too many unique state objects.")
3751  CHK_ERR(D3D10_ERROR_FILE_NOT_FOUND, "File not found")
3752 
3753 // -------------------------------------------------------------
3754 // dxgi.h error codes
3755 // -------------------------------------------------------------
3756  CHK_ERR(DXGI_STATUS_OCCLUDED, "The target window or output has been occluded. The application should suspend rendering operations if possible.")
3757  CHK_ERR(DXGI_STATUS_CLIPPED, "Target window is clipped.")
3758  CHK_ERR(DXGI_STATUS_NO_REDIRECTION, "")
3759  CHK_ERR(DXGI_STATUS_NO_DESKTOP_ACCESS, "No access to desktop.")
3760  CHK_ERR(DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE, "")
3761  CHK_ERR(DXGI_STATUS_MODE_CHANGED, "Display mode has changed")
3762  CHK_ERR(DXGI_STATUS_MODE_CHANGE_IN_PROGRESS, "Display mode is changing")
3763  CHK_ERR(DXGI_ERROR_INVALID_CALL, "The application has made an erroneous API call that it had enough information to avoid. This error is intended to denote that the application should be altered to avoid the error. Use of the debug version of the DXGI.DLL will provide run-time debug output with further information.")
3764  CHK_ERR(DXGI_ERROR_NOT_FOUND, "The item requested was not found. For GetPrivateData calls, this means that the specified GUID had not been previously associated with the object.")
3765  CHK_ERR(DXGI_ERROR_MORE_DATA, "The specified size of the destination buffer is too small to hold the requested data.")
3766  CHK_ERR(DXGI_ERROR_UNSUPPORTED, "Unsupported.")
3767  CHK_ERR(DXGI_ERROR_DEVICE_REMOVED, "Hardware device removed.")
3768  CHK_ERR(DXGI_ERROR_DEVICE_HUNG, "Device hung due to badly formed commands.")
3769  CHK_ERR(DXGI_ERROR_DEVICE_RESET, "Device reset due to a badly formed commant.")
3770  CHK_ERR(DXGI_ERROR_WAS_STILL_DRAWING, "Was still drawing.")
3771  CHK_ERR(DXGI_ERROR_FRAME_STATISTICS_DISJOINT, "The requested functionality is not supported by the device or the driver.")
3772  CHK_ERR(DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE, "The requested functionality is not supported by the device or the driver.")
3773  CHK_ERR(DXGI_ERROR_DRIVER_INTERNAL_ERROR, "An internal driver error occurred.")
3774  CHK_ERR(DXGI_ERROR_NONEXCLUSIVE, "The application attempted to perform an operation on an DXGI output that is only legal after the output has been claimed for exclusive owenership.")
3775  CHK_ERR(DXGI_ERROR_NOT_CURRENTLY_AVAILABLE, "The requested functionality is not supported by the device or the driver.")
3776  CHK_ERR(DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED, "Remote desktop client disconnected.")
3777  CHK_ERR(DXGI_ERROR_REMOTE_OUTOFMEMORY, "Remote desktop client is out of memory.")
3778 
3779 // -------------------------------------------------------------
3780 // d3d11.h error codes
3781 // -------------------------------------------------------------
3782  CHK_ERR(D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS, "There are too many unique state objects.")
3783  CHK_ERR(D3D11_ERROR_FILE_NOT_FOUND, "File not found")
3784  CHK_ERR(D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS, "Therea are too many unique view objects.")
3785  CHK_ERR(D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD, "Deferred context requires Map-Discard usage pattern")
3786 
3787 #if !defined(WINAPI_FAMILY) || WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
3788 
3789 // -------------------------------------------------------------
3790 // Direct2D error codes
3791 // -------------------------------------------------------------
3792 // CHK_ERR(D2DERR_UNSUPPORTED_PIXEL_FORMAT, "The pixel format is not supported.")
3793 // CHK_ERR(D2DERR_INSUFFICIENT_BUFFER, "The supplied buffer was too small to accomodate the data.")
3794  CHK_ERR(D2DERR_WRONG_STATE, "The object was not in the correct state to process the method.")
3795  CHK_ERR(D2DERR_NOT_INITIALIZED, "The object has not yet been initialized.")
3796  CHK_ERR(D2DERR_UNSUPPORTED_OPERATION, "The requested opertion is not supported.")
3797  CHK_ERR(D2DERR_SCANNER_FAILED, "The geomery scanner failed to process the data.")
3798  CHK_ERR(D2DERR_SCREEN_ACCESS_DENIED, "D2D could not access the screen.")
3799  CHK_ERR(D2DERR_DISPLAY_STATE_INVALID, "A valid display state could not be determined.")
3800  CHK_ERR(D2DERR_ZERO_VECTOR, "The supplied vector is zero.")
3801  CHK_ERR(D2DERR_INTERNAL_ERROR, "An internal error (D2D bug) occurred. On checked builds, we would assert.")
3802  CHK_ERR(D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED, "The display format we need to render is not supported by the hardware device.")
3803  CHK_ERR(D2DERR_INVALID_CALL, "A call to this method is invalid.")
3804  CHK_ERR(D2DERR_NO_HARDWARE_DEVICE, "No HW rendering device is available for this operation.")
3805  CHK_ERR(D2DERR_RECREATE_TARGET, "here has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present.")
3806  CHK_ERR(D2DERR_TOO_MANY_SHADER_ELEMENTS, "Shader construction failed because it was too complex.")
3807  CHK_ERR(D2DERR_SHADER_COMPILE_FAILED, "Shader compilation failed.")
3808  CHK_ERR(D2DERR_MAX_TEXTURE_SIZE_EXCEEDED, "Requested DX surface size exceeded maximum texture size.")
3809  CHK_ERR(D2DERR_UNSUPPORTED_VERSION, "The requested D2D version is not supported.")
3810  CHK_ERR(D2DERR_BAD_NUMBER, "Invalid number.")
3811  CHK_ERR(D2DERR_WRONG_FACTORY, "Objects used together must be created from the same factory instance.")
3812  CHK_ERR(D2DERR_LAYER_ALREADY_IN_USE, "A layer resource can only be in use once at any point in time.")
3813  CHK_ERR(D2DERR_POP_CALL_DID_NOT_MATCH_PUSH, "The pop call did not match the corresponding push call")
3814 // CHK_ERR(D2DERR_WRONG_RESOURCE_DOMAIN, "The resource was realized on the wrong render target")
3815  CHK_ERR(D2DERR_PUSH_POP_UNBALANCED, "The push and pop calls were unbalanced")
3816  CHK_ERR(D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT, "Attempt to copy from a render target while a layer or clip rect is applied")
3817  CHK_ERR(D2DERR_INCOMPATIBLE_BRUSH_TYPES, "The brush types are incompatible for the call.")
3818  CHK_ERR(D2DERR_WIN32_ERROR, "An unknown win32 failure occurred.")
3819  CHK_ERR(D2DERR_TARGET_NOT_GDI_COMPATIBLE, "The render target is not compatible with GDI")
3820  CHK_ERR(D2DERR_TEXT_EFFECT_IS_WRONG_TYPE, "A text client drawing effect object is of the wrong type")
3821  CHK_ERR(D2DERR_TEXT_RENDERER_NOT_RELEASED, "The application is holding a reference to the IDWriteTextRenderer interface after the corresponding DrawText or DrawTextLayout call has returned. The IDWriteTextRenderer instance will be zombied.")
3822 // CHK_ERR(D2DERR_EXCEEDS_MAX_BITMAP_SIZE, "The requested size is larger than the guaranteed supported texture size.")
3823 
3824 // -------------------------------------------------------------
3825 // DirectWrite error codes
3826 // -------------------------------------------------------------
3827  CHK_ERR(DWRITE_E_FILEFORMAT, "Indicates an error in an input file such as a font file.")
3828  CHK_ERR(DWRITE_E_UNEXPECTED, "Indicates an error originating in DirectWrite code, which is not expected to occur but is safe to recover from.")
3829  CHK_ERR(DWRITE_E_NOFONT, "Indicates the specified font does not exist.")
3830  CHK_ERR(DWRITE_E_FILENOTFOUND, "A font file could not be opened because the file, directory, network location, drive, or other storage location does not exist or is unavailable.")
3831  CHK_ERR(DWRITE_E_FILEACCESS, "A font file exists but could not be opened due to access denied, sharing violation, or similar error.")
3832  CHK_ERR(DWRITE_E_FONTCOLLECTIONOBSOLETE, "A font collection is obsolete due to changes in the system.")
3833  CHK_ERR(DWRITE_E_ALREADYREGISTERED, "The given interface is already registered.")
3834 
3835 // -------------------------------------------------------------
3836 // WIC error codes
3837 // -------------------------------------------------------------
3838  CHK_ERR(WINCODEC_ERR_WRONGSTATE, "WIC object in incorrect state.")
3839  CHK_ERR(WINCODEC_ERR_VALUEOUTOFRANGE, "WIC Value out of range.")
3840  CHK_ERR(WINCODEC_ERR_UNKNOWNIMAGEFORMAT, "Encountered unexpected value or setting in WIC image format.")
3841  CHK_ERR(WINCODEC_ERR_UNSUPPORTEDVERSION, "Unsupported WINCODEC_SD_VERSION passed to WIC factory.")
3842  CHK_ERR(WINCODEC_ERR_NOTINITIALIZED, "WIC component not initialized.")
3843  CHK_ERR(WINCODEC_ERR_ALREADYLOCKED, "WIC bitmap object already locked.")
3844  CHK_ERR(WINCODEC_ERR_PROPERTYNOTFOUND, "WIC property not found.")
3845  CHK_ERR(WINCODEC_ERR_PROPERTYNOTSUPPORTED, "WIC property not supported.")
3846  CHK_ERR(WINCODEC_ERR_PROPERTYSIZE, "Invalid property size")
3847  CHK_ERRA(WINCODEC_ERR_CODECPRESENT) // not currently used by WIC
3848  CHK_ERRA(WINCODEC_ERR_CODECNOTHUMBNAIL) // not currently used by WIC
3849  CHK_ERR(WINCODEC_ERR_PALETTEUNAVAILABLE, "Required palette data not available.")
3850  CHK_ERR(WINCODEC_ERR_CODECTOOMANYSCANLINES, "More scanlines requested than are available in WIC bitmap.")
3851  CHK_ERR(WINCODEC_ERR_INTERNALERROR, "Unexpected internal error in WIC.")
3852  CHK_ERR(WINCODEC_ERR_SOURCERECTDOESNOTMATCHDIMENSIONS, "Source WIC rectangle does not match bitmap dimensions.")
3853  CHK_ERR(WINCODEC_ERR_COMPONENTNOTFOUND, "WIC component not found.")
3854  CHK_ERR(WINCODEC_ERR_IMAGESIZEOUTOFRANGE, "Image size beyond expected boundaries for WIC codec." )
3855  CHK_ERR(WINCODEC_ERR_TOOMUCHMETADATA, "Image metadata size beyond expected boundaries for WIC codec.")
3856  CHK_ERR(WINCODEC_ERR_BADIMAGE, "WIC image is corrupted.")
3857  CHK_ERR(WINCODEC_ERR_BADHEADER, "Invalid header found in WIC image.")
3858  CHK_ERR(WINCODEC_ERR_FRAMEMISSING, "Expected bitmap frame data not found in WIC image." )
3859  CHK_ERR(WINCODEC_ERR_BADMETADATAHEADER, "Invalid metadata header found in WIC image.")
3860  CHK_ERR(WINCODEC_ERR_BADSTREAMDATA, "Invalid stream data found in WIC image.")
3861  CHK_ERR(WINCODEC_ERR_STREAMWRITE, "WIC operation on write stream failed.")
3862  CHK_ERR(WINCODEC_ERR_STREAMREAD, "WIC operation on read stream failed.")
3863  CHK_ERR(WINCODEC_ERR_STREAMNOTAVAILABLE, "Required stream is not available." )
3864  CHK_ERR(WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT, "The pixel format is not supported.")
3865  CHK_ERR(WINCODEC_ERR_UNSUPPORTEDOPERATION, "This operation is not supported by WIC." )
3866  CHK_ERR(WINCODEC_ERR_INVALIDREGISTRATION, "Error occurred reading WIC codec registry keys.")
3867  CHK_ERR(WINCODEC_ERR_COMPONENTINITIALIZEFAILURE, "Failed initializing WIC codec.")
3868  CHK_ERR(WINCODEC_ERR_INSUFFICIENTBUFFER, "Not enough buffer space available for WIC operation.")
3869  CHK_ERR(WINCODEC_ERR_DUPLICATEMETADATAPRESENT, "Duplicate metadata detected in WIC image.")
3870  CHK_ERR(WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE, "Unexpected property type in WIC image.")
3871  CHK_ERR(WINCODEC_ERR_UNEXPECTEDSIZE, "Unexpected value size in WIC metadata.")
3872  CHK_ERR(WINCODEC_ERR_INVALIDQUERYREQUEST, "Invalid metadata query.")
3873  CHK_ERR(WINCODEC_ERR_UNEXPECTEDMETADATATYPE, "Unexpected metadata type encountered in WIC image.")
3874  CHK_ERR(WINCODEC_ERR_REQUESTONLYVALIDATMETADATAROOT, "Operation only valid on meatadata root.")
3875  CHK_ERR(WINCODEC_ERR_INVALIDQUERYCHARACTER, "Invalid character in WIC metadata query.")
3876  CHK_ERR(WINCODEC_ERR_WIN32ERROR, "General Win32 error encountered during WIC operation.")
3877  CHK_ERR(WINCODEC_ERR_INVALIDPROGRESSIVELEVEL, "Invalid level for progressive WIC image decode.")
3878 
3879 #endif // !WINAPI_FAMILY || WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
3880 
3881 // -------------------------------------------------------------
3882 // DXUT error codes
3883 // -------------------------------------------------------------
3884  CHK_ERR(DXUTERR_NODIRECT3D, "Could not initialize Direct3D.")
3885  CHK_ERR(DXUTERR_NOCOMPATIBLEDEVICES, "No device could be found with the specified device settings.")
3886  CHK_ERR(DXUTERR_MEDIANOTFOUND, "A media file could not be found.")
3887  CHK_ERR(DXUTERR_NONZEROREFCOUNT, "The device interface has a non-zero reference count, meaning that some objects were not released.")
3888  CHK_ERR(DXUTERR_CREATINGDEVICE, "An error occurred when attempting to create a device.")
3889  CHK_ERR(DXUTERR_RESETTINGDEVICE, "An error occurred when attempting to reset a device.")
3890  CHK_ERR(DXUTERR_CREATINGDEVICEOBJECTS, "An error occurred in the device create callback function.")
3891  CHK_ERR(DXUTERR_RESETTINGDEVICEOBJECTS, "An error occurred in the device reset callback function.")
3892  CHK_ERR(DXUTERR_INCORRECTVERSION, "Incorrect version of Direct3D or D3DX.")
3893  CHK_ERR(DXUTERR_DEVICEREMOVED, "The device was removed.")
3894 
3895 // -------------------------------------------------------------
3896 // xaudio2.h error codes
3897 // -------------------------------------------------------------
3898  CHK_ERR(XAUDIO2_E_INVALID_CALL, "Invalid XAudio2 API call or arguments")
3899  CHK_ERR(XAUDIO2_E_XMA_DECODER_ERROR, "Hardware XMA decoder error")
3900  CHK_ERR(XAUDIO2_E_XAPO_CREATION_FAILED, "Failed to create an audio effect")
3901  CHK_ERR(XAUDIO2_E_DEVICE_INVALIDATED, "Device invalidated (unplugged, disabled, etc)")
3902 
3903 // -------------------------------------------------------------
3904 // xapo.h error codes
3905 // -------------------------------------------------------------
3906  CHK_ERR(XAPO_E_FORMAT_UNSUPPORTED, "Requested audio format unsupported.")
3907  }
3908 }
3909 
3910 //-----------------------------------------------------------------------------
3911 HRESULT WINAPI DXTraceW( _In_z_ const WCHAR* strFile, _In_ DWORD dwLine, _In_ HRESULT hr,
3912  _In_opt_ const WCHAR* strMsg, _In_ bool bPopMsgBox )
3913 {
3914  WCHAR strBufferLine[128];
3915  WCHAR strBufferError[256];
3916  WCHAR strBuffer[BUFFER_SIZE];
3917 
3918  swprintf_s( strBufferLine, 128, L"%lu", dwLine );
3919  if( strFile )
3920  {
3921  swprintf_s( strBuffer, BUFFER_SIZE, L"%ls(%ls): ", strFile, strBufferLine );
3922  OutputDebugStringW( strBuffer );
3923  }
3924 
3925  size_t nMsgLen = (strMsg) ? wcsnlen_s( strMsg, 1024 ) : 0;
3926  if( nMsgLen > 0 )
3927  {
3928  OutputDebugStringW( strMsg );
3929  OutputDebugStringW( L" " );
3930  }
3931 
3932  swprintf_s( strBufferError, 256, L"%ls (0x%0.8x)", DXGetErrorStringW(hr), hr );
3933  swprintf_s( strBuffer, BUFFER_SIZE, L"hr=%ls", strBufferError );
3934  OutputDebugStringW( strBuffer );
3935 
3936  OutputDebugStringW( L"\n" );
3937 
3938 #if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
3939  if( bPopMsgBox )
3940  {
3941  WCHAR strBufferFile[MAX_PATH];
3942  wcscpy_s( strBufferFile, MAX_PATH, L"" );
3943  if( strFile )
3944  wcscpy_s( strBufferFile, MAX_PATH, strFile );
3945 
3946  WCHAR strBufferMsg[1024];
3947  wcscpy_s( strBufferMsg, 1024, L"" );
3948  if( nMsgLen > 0 )
3949  swprintf_s( strBufferMsg, 1024, L"Calling: %ls\n", strMsg );
3950 
3951  swprintf_s( strBuffer, BUFFER_SIZE, L"File: %ls\nLine: %ls\nError Code: %ls\n%lsDo you want to debug the application?",
3952  strBufferFile, strBufferLine, strBufferError, strBufferMsg );
3953 
3954  int nResult = MessageBoxW( GetForegroundWindow(), strBuffer, L"Unexpected error encountered", MB_YESNO | MB_ICONERROR );
3955  if( nResult == IDYES )
3956  DebugBreak();
3957  }
3958 #else
3959  UNREFERENCED_PARAMETER(bPopMsgBox);
3960 #endif
3961 
3962  return hr;
3963 }
HRESULT WINAPI DXTraceW(_In_z_ const WCHAR *strFile, _In_ DWORD dwLine, _In_ HRESULT hr, _In_opt_ const WCHAR *strMsg, _In_ bool bPopMsgBox)
Definition: dxerr.cpp:3911
#define XAUDIO2_E_XAPO_CREATION_FAILED
Definition: dxerr.cpp:42
#define DXUTERR_NOCOMPATIBLEDEVICES
Definition: dxerr.cpp:48
#define XAUDIO2_E_INVALID_CALL
Definition: dxerr.cpp:40
#define CHK_ERRA(hrchk)
Definition: dxerr.cpp:3450
void WINAPI DXGetErrorDescriptionW(_In_ HRESULT hr, _Out_cap_(count) WCHAR *desc, _In_ size_t count)
Definition: dxerr.cpp:3460
#define DXUTERR_CREATINGDEVICEOBJECTS
Definition: dxerr.cpp:53
#define CHK_ERR(hrchk, strOut)
Definition: dxerr.cpp:3454
#define DXUTERR_RESETTINGDEVICE
Definition: dxerr.cpp:52
#define CHK_ERR_WIN32_ONLY(hrchk, strOut)
Definition: dxerr.cpp:79
#define CHK_ERR_WIN32A(hrchk)
Definition: dxerr.cpp:74
#define DXUTERR_DEVICEREMOVED
Definition: dxerr.cpp:56
#define DXUTERR_NODIRECT3D
Definition: dxerr.cpp:47
#define DXUTERR_NONZEROREFCOUNT
Definition: dxerr.cpp:50
#define DXUTERR_RESETTINGDEVICEOBJECTS
Definition: dxerr.cpp:54
#define XAUDIO2_E_XMA_DECODER_ERROR
Definition: dxerr.cpp:41
#define XAUDIO2_E_DEVICE_INVALIDATED
Definition: dxerr.cpp:43
#define DXUTERR_INCORRECTVERSION
Definition: dxerr.cpp:55
#define DXUTERR_CREATINGDEVICE
Definition: dxerr.cpp:51
#define BUFFER_SIZE
Definition: dxerr.cpp:59
#define XAPO_E_FORMAT_UNSUPPORTED
Definition: dxerr.cpp:45
const WCHAR *WINAPI DXGetErrorStringW(_In_ HRESULT hr)
Definition: dxerr.cpp:84
#define DXUTERR_MEDIANOTFOUND
Definition: dxerr.cpp:49