Re: Sync(1): include/winerror.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> The native headers don't have a _HR_() macro, so we shouldn't have
> one either. Please do normal casts instead.

:%s/_HR_/_HRESULT_TYPEDEF_/g

Now it matches the native headers.

Cheers,
Jon

ChangeLog:

  Jon Griffiths <jon_p_griffiths_at_yahoo.com>

  +include/winerror.h
    Cast hresult error codes to HRESULT.

=====
"Don't wait for the seas to part, or messiahs to come;
 Don't you sit around and waste this chance..." - Live

jon_p_griffiths@yahoo.com

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
--- wine/include/winerror.h	Wed Aug 13 18:29:17 2003
+++ wine-develop/include/winerror.h	Fri Aug 15 21:41:46 2003
@@ -1529,552 +1529,559 @@
 /* HRESULT values for OLE, SHELL and other Interface stuff */
 /* the codes 4000-40ff are reserved for OLE */
 #undef NOERROR  /* arpa/nameser_compat.h defines this */
-#define NOERROR                                            0L
-#define S_OK                                               ((HRESULT)0L)
-#define S_FALSE                                            ((HRESULT)1L)
-
-#define E_PENDING                                          0x8000000AL
 
-
-#define E_NOTIMPL                                          0x80004001L
-#define E_NOINTERFACE                                      0x80004002L
-#define E_POINTER                                          0x80004003L
-#define E_ABORT                                            0x80004004L
-#define E_FAIL                                             0x80004005L
+#ifdef RC_INVOKED
+#define _HRESULT_TYPEDEF_(x) (x)
+#else
+#define _HRESULT_TYPEDEF_(x) ((HRESULT)x)
+#endif
+
+#define NOERROR                                            _HRESULT_TYPEDEF_(0L)
+#define S_OK                                               _HRESULT_TYPEDEF_(0L)
+#define S_FALSE                                            _HRESULT_TYPEDEF_(1L)
+
+#define E_PENDING                                          _HRESULT_TYPEDEF_(0x8000000AL)
+
+
+#define E_NOTIMPL                                          _HRESULT_TYPEDEF_(0x80004001L)
+#define E_NOINTERFACE                                      _HRESULT_TYPEDEF_(0x80004002L)
+#define E_POINTER                                          _HRESULT_TYPEDEF_(0x80004003L)
+#define E_ABORT                                            _HRESULT_TYPEDEF_(0x80004004L)
+#define E_FAIL                                             _HRESULT_TYPEDEF_(0x80004005L)
 /* FIXME: E_UNSPEC is not a standard value but it is used by
  * FileMoniker, IOleLink and DoDragDrop as a return value.
  */
 #define E_UNSPEC                                           E_FAIL
 
 
-#define CO_E_INIT_TLS                                      0x80004006L
-#define CO_E_INIT_SHARED_ALLOCATOR                         0x80004007L
-#define CO_E_INIT_MEMORY_ALLOCATOR                         0x80004008L
-#define CO_E_INIT_CLASS_CACHE                              0x80004009L
-#define CO_E_INIT_RPC_CHANNEL                              0x8000400AL
-#define CO_E_INIT_TLS_SET_CHANNEL_CONTROL                  0x8000400BL
-#define CO_E_INIT_TLS_CHANNEL_CONTROL                      0x8000400CL
-#define CO_E_INIT_UNACCEPTED_USER_ALLOCATOR                0x8000400DL
-#define CO_E_INIT_SCM_MUTEX_EXISTS                         0x8000400EL
-#define CO_E_INIT_SCM_FILE_MAPPING_EXISTS                  0x8000400FL
-#define CO_E_INIT_SCM_MAP_VIEW_OF_FILE                     0x80004010L
-#define CO_E_INIT_SCM_EXEC_FAILURE                         0x80004011L
-#define CO_E_INIT_ONLY_SINGLE_THREADED                     0x80004012L
-
-#define E_UNEXPECTED                                       0x8000FFFFL
-
-#define RPC_E_CALL_REJECTED                                0x80010001L
-#define RPC_E_CALL_CANCELED                                0x80010002L
-#define RPC_E_CANTPOST_INSENDCALL                          0x80010003L
-#define RPC_E_CANTCALLOUT_INASYNCCALL                      0x80010004L
-#define RPC_E_CANTCALLOUT_INEXTERNALCALL                   0x80010005L
-#define RPC_E_CONNECTION_TERMINATED                        0x80010006L
-#define RPC_E_SERVER_DIED                                  0x80010007L
-#define RPC_E_CLIENT_DIED                                  0x80010008L
-#define RPC_E_INVALID_DATAPACKET                           0x80010009L
-#define RPC_E_CANTTRANSMIT_CALL                            0x8001000AL
-#define RPC_E_CLIENT_CANTMARSHAL_DATA                      0x8001000BL
-#define RPC_E_CLIENT_CANTUNMARSHAL_DATA                    0x8001000CL
-#define RPC_E_SERVER_CANTMARSHAL_DATA                      0x8001000DL
-#define RPC_E_SERVER_CANTUNMARSHAL_DATA                    0x8001000EL
-#define RPC_E_INVALID_DATA                                 0x8001000FL
-#define RPC_E_INVALID_PARAMETER                            0x80010010L
-#define RPC_E_CANTCALLOUT_AGAIN                            0x80010011L
-#define RPC_E_SERVER_DIED_DNE                              0x80010012L
-#define RPC_E_SYS_CALL_FAILED                              0x80010100L
-#define RPC_E_OUT_OF_RESOURCES                             0x80010101L
-#define RPC_E_ATTEMPTED_MULTITHREAD                        0x80010102L
-#define RPC_E_NOT_REGISTERED                               0x80010103L
-#define RPC_E_FAULT                                        0x80010104L
-#define RPC_E_SERVERFAULT                                  0x80010105L
-#define RPC_E_CHANGED_MODE                                 0x80010106L
-#define RPC_E_INVALIDMETHOD                                0x80010107L
-#define RPC_E_DISCONNECTED                                 0x80010108L
-#define RPC_E_RETRY                                        0x80010109L
-#define RPC_E_SERVERCALL_RETRYLATER                        0x8001010AL
-#define RPC_E_SERVERCALL_REJECTED                          0x8001010BL
-#define RPC_E_INVALID_CALLDATA                             0x8001010CL
-#define RPC_E_CANTCALLOUT_ININPUTSYNCCALL                  0x8001010DL
-#define RPC_E_WRONG_THREAD                                 0x8001010EL
-#define RPC_E_THREAD_NOT_INIT                              0x8001010FL
-#define RPC_E_VERSION_MISMATCH                             0x80010110L
-#define RPC_E_INVALID_HEADER                               0x80010111L
-#define RPC_E_INVALID_EXTENSION                            0x80010112L
-#define RPC_E_INVALID_IPID                                 0x80010113L
-#define RPC_E_INVALID_OBJECT                               0x80010114L
-#define RPC_S_CALLPENDING                                  0x80010115L
-#define RPC_S_WAITONTIMER                                  0x80010116L
-#define RPC_E_CALL_COMPLETE                                0x80010117L
-#define RPC_E_UNSECURE_CALL                                0x80010118L
-#define RPC_E_TOO_LATE                                     0x80010119L
-#define RPC_E_NO_GOOD_SECURITY_PACKAGES                    0x8001011AL
-#define RPC_E_ACCESS_DENIED                                0x8001011BL
-#define RPC_E_REMOTE_DISABLED                              0x8001011CL
-#define RPC_E_INVALID_OBJREF                               0x8001011DL
-#define RPC_E_NO_CONTEXT                                   0x8001011EL
-#define RPC_E_TIMEOUT                                      0x8001011FL
-#define RPC_E_NO_SYNC                                      0x80010120L
-#define RPC_E_UNEXPECTED                                   0x8001FFFFL
-
-#define DISP_E_UNKNOWNINTERFACE                            0x80020001L
-#define DISP_E_MEMBERNOTFOUND                              0x80020003L
-#define DISP_E_PARAMNOTFOUND                               0x80020004L
-#define DISP_E_TYPEMISMATCH                                0x80020005L
-#define DISP_E_UNKNOWNNAME                                 0x80020006L
-#define DISP_E_NONAMEDARGS                                 0x80020007L
-#define DISP_E_BADVARTYPE                                  0x80020008L
-#define DISP_E_EXCEPTION                                   0x80020009L
-#define DISP_E_OVERFLOW                                    0x8002000AL
-#define DISP_E_BADINDEX                                    0x8002000BL
-#define DISP_E_UNKNOWNLCID                                 0x8002000CL
-#define DISP_E_ARRAYISLOCKED                               0x8002000DL
-#define DISP_E_BADPARAMCOUNT                               0x8002000EL
-#define DISP_E_PARAMNOTOPTIONAL                            0x8002000FL
-#define DISP_E_BADCALLEE                                   0x80020010L
-#define DISP_E_NOTACOLLECTION                              0x80020011L
-#define DISP_E_DIVBYZERO                                   0x80020012L
-
-#define TYPE_E_BUFFERTOOSMALL                              0x80028016L
-#define TYPE_E_FIELDNOTFOUND                               0x80028017L
-#define TYPE_E_INVDATAREAD                                 0x80028018L
-#define TYPE_E_UNSUPFORMAT                                 0x80028019L
-#define TYPE_E_REGISTRYACCESS                              0x8002801CL
-#define TYPE_E_LIBNOTREGISTERED                            0x8002801DL
-#define TYPE_E_UNDEFINEDTYPE                               0x80028027L
-#define TYPE_E_QUALIFIEDNAMEDISALLOWED                     0x80028028L
-#define TYPE_E_INVALIDSTATE                                0x80028029L
-#define TYPE_E_WRONGTYPEKIND                               0x8002802AL
-#define TYPE_E_ELEMENTNOTFOUND                             0x8002802BL
-#define TYPE_E_AMBIGUOUSNAME                               0x8002802CL
-#define TYPE_E_NAMECONFLICT                                0x8002802DL
-#define TYPE_E_UNKNOWNLCID                                 0x8002802EL
-#define TYPE_E_DLLFUNCTIONNOTFOUND                         0x8002802FL
-#define TYPE_E_BADMODULEKIND                               0x800288BDL
-#define TYPE_E_SIZETOOBIG                                  0x800288C5L
-#define TYPE_E_DUPLICATEID                                 0x800288C6L
-#define TYPE_E_INVALIDID                                   0x800288CFL
-#define TYPE_E_TYPEMISMATCH                                0x80028CA0L
-#define TYPE_E_OUTOFBOUNDS                                 0x80028CA1L
-#define TYPE_E_IOERROR                                     0x80028CA2L
-#define TYPE_E_CANTCREATETMPFILE                           0x80028CA3L
-#define TYPE_E_CANTLOADLIBRARY                             0x80029C4AL
-#define TYPE_E_INCONSISTENTPROPFUNCS                       0x80029C83L
-#define TYPE_E_CIRCULARTYPE                                0x80029C84L
-
-#define STG_S_CONVERTED                                    0x00030200L
-#define STG_S_BLOCK                                        0x00030201L
-#define STG_S_RETRYNOW                                     0x00030202L
-#define STG_S_MONITORING                                   0x00030203L
-#define STG_S_MULTIPLEOPENS                                0x00030204L
-#define STG_S_CONSOLIDATIONFAILED                          0x00030205L
-#define STG_S_CANNOTCONSOLIDATE                            0x00030206L
-
-#define STG_E_INVALIDFUNCTION                              0x80030001L
-#define STG_E_FILENOTFOUND                                 0x80030002L
-#define STG_E_PATHNOTFOUND                                 0x80030003L
-#define STG_E_TOOMANYOPENFILES                             0x80030004L
-#define STG_E_ACCESSDENIED                                 0x80030005L
-#define STG_E_INVALIDHANDLE                                0x80030006L
-#define STG_E_INSUFFICIENTMEMORY                           0x80030008L
-#define STG_E_INVALIDPOINTER                               0x80030009L
-#define STG_E_NOMOREFILES                                  0x80030012L
-#define STG_E_DISKISWRITEPROTECTED                         0x80030013L
-#define STG_E_SEEKERROR                                    0x80030019L
-#define STG_E_WRITEFAULT                                   0x8003001DL
-#define STG_E_READFAULT                                    0x8003001EL
-#define STG_E_SHAREVIOLATION                               0x80030020L
-#define STG_E_LOCKVIOLATION                                0x80030021L
-#define STG_E_FILEALREADYEXISTS                            0x80030050L
-#define STG_E_INVALIDPARAMETER                             0x80030057L
-#define STG_E_MEDIUMFULL                                   0x80030070L
-#define STG_E_ABNORMALAPIEXIT                              0x800300FAL
-#define STG_E_INVALIDHEADER                                0x800300FBL
-#define STG_E_INVALIDNAME                                  0x800300FCL
-#define STG_E_UNKNOWN                                      0x800300FDL
-#define STG_E_UNIMPLEMENTEDFUNCTION                        0x800300FEL
-#define STG_E_INVALIDFLAG                                  0x800300FFL
-#define STG_E_INUSE                                        0x80030100L
-#define STG_E_NOTCURRENT                                   0x80030101L
-#define STG_E_REVERTED                                     0x80030102L
-#define STG_E_CANTSAVE                                     0x80030103L
-#define STG_E_OLDFORMAT                                    0x80030104L
-#define STG_E_OLDDLL                                       0x80030105L
-#define STG_E_SHAREREQUIRED                                0x80030106L
-#define STG_E_NOTFILEBASEDSTORAGE                          0x80030107L
-#define STG_E_EXTANTMARSHALLINGS                           0x80030108L
-
-#define STG_E_STATUS_COPY_PROTECTION_FAILURE               0x80030305L
-#define STG_E_CSS_AUTHENTICATION_FAILURE                   0x80030306L
-#define STG_E_CSS_KEY_NOT_PRESENT                          0x80030307L
-#define STG_E_CSS_KEY_NOT_ESTABLISHED                      0x80030308L
-#define STG_E_CSS_SCRAMBLED_SECTOR                         0x80030309L
-#define STG_E_CSS_REGION_MISMATCH                          0x8003030AL
-#define STG_E_RESETS_EXHAUSTED                             0x8003030BL
-
-#define OLE_S_FIRST                                        0x00040000L
-#define OLE_S_USEREG                                       0x00040000L
-#define OLE_S_STATIC                                       0x00040001L
-#define OLE_S_MAC_CLIPFORMAT                               0x00040002L
-#define OLE_S_LAST                                         0x000400FFL
-
-#define OLE_E_FIRST                                        0x80040000L
-#define OLE_E_OLEVERB                                      0x80040000L
-#define OLE_E_ADVF                                         0x80040001L
-#define OLE_E_ENUM_NOMORE                                  0x80040002L
-#define OLE_E_ADVISENOTSUPPORTED                           0x80040003L
-#define OLE_E_NOCONNECTION                                 0x80040004L
-#define OLE_E_NOTRUNNING                                   0x80040005L
-#define OLE_E_NOCACHE                                      0x80040006L
-#define OLE_E_BLANK                                        0x80040007L
-#define OLE_E_CLASSDIFF                                    0x80040008L
-#define OLE_E_CANT_GETMONIKER                              0x80040009L
-#define OLE_E_CANT_BINDTOSOURCE                            0x8004000AL
-#define OLE_E_STATIC                                       0x8004000BL
-#define OLE_E_PROMPTSAVECANCELLED                          0x8004000CL
-#define OLE_E_INVALIDRECT                                  0x8004000DL
-#define OLE_E_WRONGCOMPOBJ                                 0x8004000EL
-#define OLE_E_INVALIDHWND                                  0x8004000FL
-#define OLE_E_NOT_INPLACEACTIVE                            0x80040010L
-#define OLE_E_CANTCONVERT                                  0x80040011L
-#define OLE_E_NOSTORAGE                                    0x80040012L
-#define DV_E_FORMATETC                                     0x80040064L
-#define DV_E_DVTARGETDEVICE                                0x80040065L
-#define DV_E_STGMEDIUM                                     0x80040066L
-#define DV_E_STATDATA                                      0x80040067L
-#define DV_E_LINDEX                                        0x80040068L
-#define DV_E_TYMED                                         0x80040069L
-#define DV_E_CLIPFORMAT                                    0x8004006AL
-#define DV_E_DVASPECT                                      0x8004006BL
-#define DV_E_DVTARGETDEVICE_SIZE                           0x8004006CL
-#define DV_E_NOIVIEWOBJECT                                 0x8004006DL
-#define OLE_E_LAST                                         0x800400FFL
-
-#define DRAGDROP_S_FIRST                                   0x00040100L
-#define DRAGDROP_S_DROP                                    0x00040100L
-#define DRAGDROP_S_CANCEL                                  0x00040101L
-#define DRAGDROP_S_USEDEFAULTCURSORS                       0x00040102L
-#define DRAGDROP_S_LAST                                    0x0004010FL
-
-#define DRAGDROP_E_FIRST                                   0x80040100L
-#define DRAGDROP_E_NOTREGISTERED                           0x80040100L
-#define DRAGDROP_E_ALREADYREGISTERED                       0x80040101L
-#define DRAGDROP_E_INVALIDHWND                             0x80040102L
-#define DRAGDROP_E_LAST                                    0x8004010FL
-
-
-#define CLASSFACTORY_S_FIRST                               0x00040110L
-#define CLASSFACTORY_S_LAST                                0x0004011FL
-
-#define CLASSFACTORY_E_FIRST                               0x80040110L
-#define CLASS_E_NOAGGREGATION                              0x80040110L
-#define CLASS_E_CLASSNOTAVAILABLE                          0x80040111L
-#define CLASS_E_NOTLICENSED                                0x80040112L
-#define CLASSFACTORY_E_LAST                                0x8004011FL
-
-#define MARSHAL_S_FIRST                                    0x00040120L
-#define MARSHAL_S_LAST                                     0x0004012FL
-
-#define MARSHAL_E_FIRST                                    0x80040120L
-#define MARSHAL_E_LAST                                     0x8004012FL
-
-#define DATA_S_FIRST                                       0x00040130L
-#define DATA_S_SAMEFORMATETC                               0x00040130L
-#define DATA_S_LAST                                        0x0004013FL
-
-#define DATA_E_FIRST                                       0x80040130L
-#define DATA_E_LAST                                        0x8004013FL
-
-#define VIEW_S_FIRST                                       0x00040140L
-#define VIEW_S_ALREADY_FROZEN                              0x00040140L
-#define VIEW_S_LAST                                        0x0004014FL
-
-#define VIEW_E_FIRST                                       0x80040140L
-#define VIEW_E_DRAW                                        0x80040140L
-#define VIEW_E_LAST                                        0x8004014FL
-
-#define REGDB_S_FIRST                                      0x00040150L
-#define REGDB_S_LAST                                       0x0004015FL
-
-#define REGDB_E_FIRST                                      0x80040150L
-#define REGDB_E_READREGDB                                  0x80040150L
-#define REGDB_E_WRITEREGDB                                 0x80040151L
-#define REGDB_E_KEYMISSING                                 0x80040152L
-#define REGDB_E_INVALIDVALUE                               0x80040153L
-#define REGDB_E_CLASSNOTREG                                0x80040154L
-#define REGDB_E_IIDNOTREG                                  0x80040155L
-#define REGDB_E_LAST                                       0x8004015FL
-
-#define CAT_E_FIRST                                        0x80040160L
-#define CAT_E_CATIDNOEXIST                                 0x80040160L
-#define CAT_E_NODESCRIPTION                                0x80040161L
-#define CAT_E_LAST                                         0x80040161L
-
-#define CACHE_S_FIRST                                      0x00040170L
-#define CACHE_S_FORMATETC_NOTSUPPORTED                     0x00040170L
-#define CACHE_S_SAMECACHE                                  0x00040171L
-#define CACHE_S_SOMECACHES_NOTUPDATED                      0x00040172L
-#define CACHE_S_LAST                                       0x0004017FL
-
-#define CACHE_E_FIRST                                      0x80040170L
-#define CACHE_E_NOCACHE_UPDATED                            0x80040170L
-#define CACHE_E_LAST                                       0x8004017FL
-
-#define OLEOBJ_S_FIRST                                     0x00040180L
-#define OLEOBJ_S_INVALIDVERB                               0x00040180L
-#define OLEOBJ_S_CANNOT_DOVERB_NOW                         0x00040181L
-#define OLEOBJ_S_INVALIDHWND                               0x00040182L
-#define OLEOBJ_S_LAST                                      0x0004018FL
-
-#define OLEOBJ_E_FIRST                                     0x80040180L
-#define OLEOBJ_E_NOVERBS                                   0x80040180L
-#define OLEOBJ_E_INVALIDVERB                               0x80040181L
-#define OLEOBJ_E_LAST                                      0x8004018FL
-
-#define CLIENTSITE_S_FIRST                                 0x00040190L
-#define CLIENTSITE_S_LAST                                  0x0004019FL
-
-#define CLIENTSITE_E_FIRST                                 0x80040190L
-#define CLIENTSITE_E_LAST                                  0x8004019FL
-
-#define INPLACE_S_FIRST                                    0x000401A0L
-#define INPLACE_S_TRUNCATED                                0x000401A0L
-#define INPLACE_S_LAST                                     0x000401AFL
-
-#define INPLACE_E_FIRST                                    0x800401A0L
-#define INPLACE_E_NOTUNDOABLE                              0x800401A0L
-#define INPLACE_E_NOTOOLSPACE                              0x800401A1L
-#define INPLACE_E_LAST                                     0x800401AFL
-
-#define ENUM_S_FIRST                                       0x000401B0L
-#define ENUM_S_LAST                                        0x000401BFL
-
-#define ENUM_E_FIRST                                       0x800401B0L
-#define ENUM_E_LAST                                        0x800401BFL
-
-#define CONVERT10_S_FIRST                                  0x000401C0L
-#define CONVERT10_S_NO_PRESENTATION                        0x000401C0L
-#define CONVERT10_S_LAST                                   0x000401CFL
-
-#define CONVERT10_E_FIRST                                  0x800401C0L
-#define CONVERT10_E_OLESTREAM_GET                          0x800401C0L
-#define CONVERT10_E_OLESTREAM_PUT                          0x800401C1L
-#define CONVERT10_E_OLESTREAM_FMT                          0x800401C2L
-#define CONVERT10_E_OLESTREAM_BITMAP_TO_DIB                0x800401C3L
-#define CONVERT10_E_STG_FMT                                0x800401C4L
-#define CONVERT10_E_STG_NO_STD_STREAM                      0x800401C5L
-#define CONVERT10_E_STG_DIB_TO_BITMAP                      0x800401C6L
-#define CONVERT10_E_LAST                                   0x800401CFL
-
-#define CLIPBRD_S_FIRST                                    0x000401D0L
-#define CLIPBRD_S_LAST                                     0x000401DFL
-
-#define CLIPBRD_E_FIRST                                    0x800401D0L
-#define CLIPBRD_E_LAST                                     0x800401DFL
-#define CLIPBRD_E_CANT_OPEN                                0x800401D0L
-#define CLIPBRD_E_CANT_EMPTY                               0x800401D1L
-#define CLIPBRD_E_CANT_SET                                 0x800401D2L
-#define CLIPBRD_E_BAD_DATA                                 0x800401D3L
-#define CLIPBRD_E_CANT_CLOSE                               0x800401D4L
-
-#define MK_S_FIRST                                         0x000401E0L
-#define MK_S_REDUCED_TO_SELF                               0x000401E2L
-#define MK_S_ME                                            0x000401E4L
-#define MK_S_HIM                                           0x000401E5L
-#define MK_S_US                                            0x000401E6L
-#define MK_S_MONIKERALREADYREGISTERED                      0x000401E7L
-#define MK_S_LAST                                          0x000401EFL
-
-#define MK_E_FIRST                                         0x800401E0L
-#define MK_E_CONNECTMANUALLY                               0x800401E0L
-#define MK_E_EXCEEDEDDEADLINE                              0x800401E1L
-#define MK_E_NEEDGENERIC                                   0x800401E2L
-#define MK_E_UNAVAILABLE                                   0x800401E3L
-#define MK_E_SYNTAX                                        0x800401E4L
-#define MK_E_NOOBJECT                                      0x800401E5L
-#define MK_E_INVALIDEXTENSION                              0x800401E6L
-#define MK_E_INTERMEDIATEINTERFACENOTSUPPORTED             0x800401E7L
-#define MK_E_NOTBINDABLE                                   0x800401E8L
-#define MK_E_NOTBOUND                                      0x800401E9L
-#define MK_E_CANTOPENFILE                                  0x800401EAL
-#define MK_E_MUSTBOTHERUSER                                0x800401EBL
-#define MK_E_NOINVERSE                                     0x800401ECL
-#define MK_E_NOSTORAGE                                     0x800401EDL
-#define MK_E_NOPREFIX                                      0x800401EEL
-#define MK_E_ENUMERATION_FAILED                            0x800401EFL
-#define MK_E_LAST                                          0x800401EFL
-
-#define CO_S_FIRST                                         0x000401F0L
-#define CO_S_LAST                                          0x000401FFL
-
-#define CO_E_FIRST                                         0x800401F0L
-#define CO_E_NOTINITIALIZED                                0x800401F0L
-#define CO_E_ALREADYINITIALIZED                            0x800401F1L
-#define CO_E_CANTDETERMINECLASS                            0x800401F2L
-#define CO_E_CLASSSTRING                                   0x800401F3L
-#define CO_E_IIDSTRING                                     0x800401F4L
-#define CO_E_APPNOTFOUND                                   0x800401F5L
-#define CO_E_APPSINGLEUSE                                  0x800401F6L
-#define CO_E_ERRORINAPP                                    0x800401F7L
-#define CO_E_DLLNOTFOUND                                   0x800401F8L
-#define CO_E_ERRORINDLL                                    0x800401F9L
-#define CO_E_WRONGOSFORAPP                                 0x800401FAL
-#define CO_E_OBJNOTREG                                     0x800401FBL
-#define CO_E_OBJISREG                                      0x800401FCL
-#define CO_E_OBJNOTCONNECTED                               0x800401FDL
-#define CO_E_APPDIDNTREG                                   0x800401FEL
-#define CO_E_RELEASED                                      0x800401FFL
-#define CO_E_LAST                                          0x800401FFL
-#define CO_E_FAILEDTOIMPERSONATE                           0x80040200L
-#define CO_E_FAILEDTOGETSECCTX                             0x80040201L
-#define CO_E_FAILEDTOOPENTHREADTOKEN                       0x80040202L
-#define CO_E_FAILEDTOGETTOKENINFO                          0x80040203L
-#define CO_E_TRUSTEEDOESNTMATCHCLIENT                      0x80040204L
-#define CO_E_FAILEDTOQUERYCLIENTBLANKET                    0x80040205L
-#define CO_E_FAILEDTOSETDACL                               0x80040206L
-#define CO_E_ACCESSCHECKFAILED                             0x80040207L
-#define CO_E_NETACCESSAPIFAILED                            0x80040208L
-#define CO_E_WRONGTRUSTEENAMESYNTAX                        0x80040209L
-#define CO_E_INVALIDSID                                    0x8004020AL
-#define CO_E_CONVERSIONFAILED                              0x8004020BL
-#define CO_E_NOMATCHINGSIDFOUND                            0x8004020CL
-#define CO_E_LOOKUPACCSIDFAILED                            0x8004020DL
-#define CO_E_NOMATCHINGNAMEFOUND                           0x8004020EL
-#define CO_E_LOOKUPACCNAMEFAILED                           0x8004020FL
-#define CO_E_SETSERLHNDLFAILED                             0x80040210L
-#define CO_E_FAILEDTOGETWINDIR                             0x80040211L
-#define CO_E_PATHTOOLONG                                   0x80040212L
-#define CO_E_FAILEDTOGENUUID                               0x80040213L
-#define CO_E_FAILEDTOCREATEFILE                            0x80040214L
-#define CO_E_FAILEDTOCLOSEHANDLE                           0x80040215L
-#define CO_E_EXCEEDSYSACLLIMIT                             0x80040216L
-#define CO_E_ACESINWRONGORDER                              0x80040217L
-#define CO_E_INCOMPATIBLESTREAMVERSION                     0x80040218L
-#define CO_E_FAILEDTOOPENPROCESSTOKEN                      0x80040219L
-#define CO_E_DECODEFAILED                                  0x8004021AL
-#define CO_E_ACNOTINITIALIZED                              0x8004021BL
-
-#define E_ACCESSDENIED                                     0x80070005L
-#define E_HANDLE                                           0x80070006L
-#define E_OUTOFMEMORY                                      0x8007000EL
-#define E_INVALIDARG                                       0x80070057L
+#define CO_E_INIT_TLS                                      _HRESULT_TYPEDEF_(0x80004006L)
+#define CO_E_INIT_SHARED_ALLOCATOR                         _HRESULT_TYPEDEF_(0x80004007L)
+#define CO_E_INIT_MEMORY_ALLOCATOR                         _HRESULT_TYPEDEF_(0x80004008L)
+#define CO_E_INIT_CLASS_CACHE                              _HRESULT_TYPEDEF_(0x80004009L)
+#define CO_E_INIT_RPC_CHANNEL                              _HRESULT_TYPEDEF_(0x8000400AL)
+#define CO_E_INIT_TLS_SET_CHANNEL_CONTROL                  _HRESULT_TYPEDEF_(0x8000400BL)
+#define CO_E_INIT_TLS_CHANNEL_CONTROL                      _HRESULT_TYPEDEF_(0x8000400CL)
+#define CO_E_INIT_UNACCEPTED_USER_ALLOCATOR                _HRESULT_TYPEDEF_(0x8000400DL)
+#define CO_E_INIT_SCM_MUTEX_EXISTS                         _HRESULT_TYPEDEF_(0x8000400EL)
+#define CO_E_INIT_SCM_FILE_MAPPING_EXISTS                  _HRESULT_TYPEDEF_(0x8000400FL)
+#define CO_E_INIT_SCM_MAP_VIEW_OF_FILE                     _HRESULT_TYPEDEF_(0x80004010L)
+#define CO_E_INIT_SCM_EXEC_FAILURE                         _HRESULT_TYPEDEF_(0x80004011L)
+#define CO_E_INIT_ONLY_SINGLE_THREADED                     _HRESULT_TYPEDEF_(0x80004012L)
+
+#define E_UNEXPECTED                                       _HRESULT_TYPEDEF_(0x8000FFFFL)
+
+#define RPC_E_CALL_REJECTED                                _HRESULT_TYPEDEF_(0x80010001L)
+#define RPC_E_CALL_CANCELED                                _HRESULT_TYPEDEF_(0x80010002L)
+#define RPC_E_CANTPOST_INSENDCALL                          _HRESULT_TYPEDEF_(0x80010003L)
+#define RPC_E_CANTCALLOUT_INASYNCCALL                      _HRESULT_TYPEDEF_(0x80010004L)
+#define RPC_E_CANTCALLOUT_INEXTERNALCALL                   _HRESULT_TYPEDEF_(0x80010005L)
+#define RPC_E_CONNECTION_TERMINATED                        _HRESULT_TYPEDEF_(0x80010006L)
+#define RPC_E_SERVER_DIED                                  _HRESULT_TYPEDEF_(0x80010007L)
+#define RPC_E_CLIENT_DIED                                  _HRESULT_TYPEDEF_(0x80010008L)
+#define RPC_E_INVALID_DATAPACKET                           _HRESULT_TYPEDEF_(0x80010009L)
+#define RPC_E_CANTTRANSMIT_CALL                            _HRESULT_TYPEDEF_(0x8001000AL)
+#define RPC_E_CLIENT_CANTMARSHAL_DATA                      _HRESULT_TYPEDEF_(0x8001000BL)
+#define RPC_E_CLIENT_CANTUNMARSHAL_DATA                    _HRESULT_TYPEDEF_(0x8001000CL)
+#define RPC_E_SERVER_CANTMARSHAL_DATA                      _HRESULT_TYPEDEF_(0x8001000DL)
+#define RPC_E_SERVER_CANTUNMARSHAL_DATA                    _HRESULT_TYPEDEF_(0x8001000EL)
+#define RPC_E_INVALID_DATA                                 _HRESULT_TYPEDEF_(0x8001000FL)
+#define RPC_E_INVALID_PARAMETER                            _HRESULT_TYPEDEF_(0x80010010L)
+#define RPC_E_CANTCALLOUT_AGAIN                            _HRESULT_TYPEDEF_(0x80010011L)
+#define RPC_E_SERVER_DIED_DNE                              _HRESULT_TYPEDEF_(0x80010012L)
+#define RPC_E_SYS_CALL_FAILED                              _HRESULT_TYPEDEF_(0x80010100L)
+#define RPC_E_OUT_OF_RESOURCES                             _HRESULT_TYPEDEF_(0x80010101L)
+#define RPC_E_ATTEMPTED_MULTITHREAD                        _HRESULT_TYPEDEF_(0x80010102L)
+#define RPC_E_NOT_REGISTERED                               _HRESULT_TYPEDEF_(0x80010103L)
+#define RPC_E_FAULT                                        _HRESULT_TYPEDEF_(0x80010104L)
+#define RPC_E_SERVERFAULT                                  _HRESULT_TYPEDEF_(0x80010105L)
+#define RPC_E_CHANGED_MODE                                 _HRESULT_TYPEDEF_(0x80010106L)
+#define RPC_E_INVALIDMETHOD                                _HRESULT_TYPEDEF_(0x80010107L)
+#define RPC_E_DISCONNECTED                                 _HRESULT_TYPEDEF_(0x80010108L)
+#define RPC_E_RETRY                                        _HRESULT_TYPEDEF_(0x80010109L)
+#define RPC_E_SERVERCALL_RETRYLATER                        _HRESULT_TYPEDEF_(0x8001010AL)
+#define RPC_E_SERVERCALL_REJECTED                          _HRESULT_TYPEDEF_(0x8001010BL)
+#define RPC_E_INVALID_CALLDATA                             _HRESULT_TYPEDEF_(0x8001010CL)
+#define RPC_E_CANTCALLOUT_ININPUTSYNCCALL                  _HRESULT_TYPEDEF_(0x8001010DL)
+#define RPC_E_WRONG_THREAD                                 _HRESULT_TYPEDEF_(0x8001010EL)
+#define RPC_E_THREAD_NOT_INIT                              _HRESULT_TYPEDEF_(0x8001010FL)
+#define RPC_E_VERSION_MISMATCH                             _HRESULT_TYPEDEF_(0x80010110L)
+#define RPC_E_INVALID_HEADER                               _HRESULT_TYPEDEF_(0x80010111L)
+#define RPC_E_INVALID_EXTENSION                            _HRESULT_TYPEDEF_(0x80010112L)
+#define RPC_E_INVALID_IPID                                 _HRESULT_TYPEDEF_(0x80010113L)
+#define RPC_E_INVALID_OBJECT                               _HRESULT_TYPEDEF_(0x80010114L)
+#define RPC_S_CALLPENDING                                  _HRESULT_TYPEDEF_(0x80010115L)
+#define RPC_S_WAITONTIMER                                  _HRESULT_TYPEDEF_(0x80010116L)
+#define RPC_E_CALL_COMPLETE                                _HRESULT_TYPEDEF_(0x80010117L)
+#define RPC_E_UNSECURE_CALL                                _HRESULT_TYPEDEF_(0x80010118L)
+#define RPC_E_TOO_LATE                                     _HRESULT_TYPEDEF_(0x80010119L)
+#define RPC_E_NO_GOOD_SECURITY_PACKAGES                    _HRESULT_TYPEDEF_(0x8001011AL)
+#define RPC_E_ACCESS_DENIED                                _HRESULT_TYPEDEF_(0x8001011BL)
+#define RPC_E_REMOTE_DISABLED                              _HRESULT_TYPEDEF_(0x8001011CL)
+#define RPC_E_INVALID_OBJREF                               _HRESULT_TYPEDEF_(0x8001011DL)
+#define RPC_E_NO_CONTEXT                                   _HRESULT_TYPEDEF_(0x8001011EL)
+#define RPC_E_TIMEOUT                                      _HRESULT_TYPEDEF_(0x8001011FL)
+#define RPC_E_NO_SYNC                                      _HRESULT_TYPEDEF_(0x80010120L)
+#define RPC_E_UNEXPECTED                                   _HRESULT_TYPEDEF_(0x8001FFFFL)
+
+#define DISP_E_UNKNOWNINTERFACE                            _HRESULT_TYPEDEF_(0x80020001L)
+#define DISP_E_MEMBERNOTFOUND                              _HRESULT_TYPEDEF_(0x80020003L)
+#define DISP_E_PARAMNOTFOUND                               _HRESULT_TYPEDEF_(0x80020004L)
+#define DISP_E_TYPEMISMATCH                                _HRESULT_TYPEDEF_(0x80020005L)
+#define DISP_E_UNKNOWNNAME                                 _HRESULT_TYPEDEF_(0x80020006L)
+#define DISP_E_NONAMEDARGS                                 _HRESULT_TYPEDEF_(0x80020007L)
+#define DISP_E_BADVARTYPE                                  _HRESULT_TYPEDEF_(0x80020008L)
+#define DISP_E_EXCEPTION                                   _HRESULT_TYPEDEF_(0x80020009L)
+#define DISP_E_OVERFLOW                                    _HRESULT_TYPEDEF_(0x8002000AL)
+#define DISP_E_BADINDEX                                    _HRESULT_TYPEDEF_(0x8002000BL)
+#define DISP_E_UNKNOWNLCID                                 _HRESULT_TYPEDEF_(0x8002000CL)
+#define DISP_E_ARRAYISLOCKED                               _HRESULT_TYPEDEF_(0x8002000DL)
+#define DISP_E_BADPARAMCOUNT                               _HRESULT_TYPEDEF_(0x8002000EL)
+#define DISP_E_PARAMNOTOPTIONAL                            _HRESULT_TYPEDEF_(0x8002000FL)
+#define DISP_E_BADCALLEE                                   _HRESULT_TYPEDEF_(0x80020010L)
+#define DISP_E_NOTACOLLECTION                              _HRESULT_TYPEDEF_(0x80020011L)
+#define DISP_E_DIVBYZERO                                   _HRESULT_TYPEDEF_(0x80020012L)
+
+#define TYPE_E_BUFFERTOOSMALL                              _HRESULT_TYPEDEF_(0x80028016L)
+#define TYPE_E_FIELDNOTFOUND                               _HRESULT_TYPEDEF_(0x80028017L)
+#define TYPE_E_INVDATAREAD                                 _HRESULT_TYPEDEF_(0x80028018L)
+#define TYPE_E_UNSUPFORMAT                                 _HRESULT_TYPEDEF_(0x80028019L)
+#define TYPE_E_REGISTRYACCESS                              _HRESULT_TYPEDEF_(0x8002801CL)
+#define TYPE_E_LIBNOTREGISTERED                            _HRESULT_TYPEDEF_(0x8002801DL)
+#define TYPE_E_UNDEFINEDTYPE                               _HRESULT_TYPEDEF_(0x80028027L)
+#define TYPE_E_QUALIFIEDNAMEDISALLOWED                     _HRESULT_TYPEDEF_(0x80028028L)
+#define TYPE_E_INVALIDSTATE                                _HRESULT_TYPEDEF_(0x80028029L)
+#define TYPE_E_WRONGTYPEKIND                               _HRESULT_TYPEDEF_(0x8002802AL)
+#define TYPE_E_ELEMENTNOTFOUND                             _HRESULT_TYPEDEF_(0x8002802BL)
+#define TYPE_E_AMBIGUOUSNAME                               _HRESULT_TYPEDEF_(0x8002802CL)
+#define TYPE_E_NAMECONFLICT                                _HRESULT_TYPEDEF_(0x8002802DL)
+#define TYPE_E_UNKNOWNLCID                                 _HRESULT_TYPEDEF_(0x8002802EL)
+#define TYPE_E_DLLFUNCTIONNOTFOUND                         _HRESULT_TYPEDEF_(0x8002802FL)
+#define TYPE_E_BADMODULEKIND                               _HRESULT_TYPEDEF_(0x800288BDL)
+#define TYPE_E_SIZETOOBIG                                  _HRESULT_TYPEDEF_(0x800288C5L)
+#define TYPE_E_DUPLICATEID                                 _HRESULT_TYPEDEF_(0x800288C6L)
+#define TYPE_E_INVALIDID                                   _HRESULT_TYPEDEF_(0x800288CFL)
+#define TYPE_E_TYPEMISMATCH                                _HRESULT_TYPEDEF_(0x80028CA0L)
+#define TYPE_E_OUTOFBOUNDS                                 _HRESULT_TYPEDEF_(0x80028CA1L)
+#define TYPE_E_IOERROR                                     _HRESULT_TYPEDEF_(0x80028CA2L)
+#define TYPE_E_CANTCREATETMPFILE                           _HRESULT_TYPEDEF_(0x80028CA3L)
+#define TYPE_E_CANTLOADLIBRARY                             _HRESULT_TYPEDEF_(0x80029C4AL)
+#define TYPE_E_INCONSISTENTPROPFUNCS                       _HRESULT_TYPEDEF_(0x80029C83L)
+#define TYPE_E_CIRCULARTYPE                                _HRESULT_TYPEDEF_(0x80029C84L)
+
+#define STG_S_CONVERTED                                    _HRESULT_TYPEDEF_(0x00030200L)
+#define STG_S_BLOCK                                        _HRESULT_TYPEDEF_(0x00030201L)
+#define STG_S_RETRYNOW                                     _HRESULT_TYPEDEF_(0x00030202L)
+#define STG_S_MONITORING                                   _HRESULT_TYPEDEF_(0x00030203L)
+#define STG_S_MULTIPLEOPENS                                _HRESULT_TYPEDEF_(0x00030204L)
+#define STG_S_CONSOLIDATIONFAILED                          _HRESULT_TYPEDEF_(0x00030205L)
+#define STG_S_CANNOTCONSOLIDATE                            _HRESULT_TYPEDEF_(0x00030206L)
+
+#define STG_E_INVALIDFUNCTION                              _HRESULT_TYPEDEF_(0x80030001L)
+#define STG_E_FILENOTFOUND                                 _HRESULT_TYPEDEF_(0x80030002L)
+#define STG_E_PATHNOTFOUND                                 _HRESULT_TYPEDEF_(0x80030003L)
+#define STG_E_TOOMANYOPENFILES                             _HRESULT_TYPEDEF_(0x80030004L)
+#define STG_E_ACCESSDENIED                                 _HRESULT_TYPEDEF_(0x80030005L)
+#define STG_E_INVALIDHANDLE                                _HRESULT_TYPEDEF_(0x80030006L)
+#define STG_E_INSUFFICIENTMEMORY                           _HRESULT_TYPEDEF_(0x80030008L)
+#define STG_E_INVALIDPOINTER                               _HRESULT_TYPEDEF_(0x80030009L)
+#define STG_E_NOMOREFILES                                  _HRESULT_TYPEDEF_(0x80030012L)
+#define STG_E_DISKISWRITEPROTECTED                         _HRESULT_TYPEDEF_(0x80030013L)
+#define STG_E_SEEKERROR                                    _HRESULT_TYPEDEF_(0x80030019L)
+#define STG_E_WRITEFAULT                                   _HRESULT_TYPEDEF_(0x8003001DL)
+#define STG_E_READFAULT                                    _HRESULT_TYPEDEF_(0x8003001EL)
+#define STG_E_SHAREVIOLATION                               _HRESULT_TYPEDEF_(0x80030020L)
+#define STG_E_LOCKVIOLATION                                _HRESULT_TYPEDEF_(0x80030021L)
+#define STG_E_FILEALREADYEXISTS                            _HRESULT_TYPEDEF_(0x80030050L)
+#define STG_E_INVALIDPARAMETER                             _HRESULT_TYPEDEF_(0x80030057L)
+#define STG_E_MEDIUMFULL                                   _HRESULT_TYPEDEF_(0x80030070L)
+#define STG_E_ABNORMALAPIEXIT                              _HRESULT_TYPEDEF_(0x800300FAL)
+#define STG_E_INVALIDHEADER                                _HRESULT_TYPEDEF_(0x800300FBL)
+#define STG_E_INVALIDNAME                                  _HRESULT_TYPEDEF_(0x800300FCL)
+#define STG_E_UNKNOWN                                      _HRESULT_TYPEDEF_(0x800300FDL)
+#define STG_E_UNIMPLEMENTEDFUNCTION                        _HRESULT_TYPEDEF_(0x800300FEL)
+#define STG_E_INVALIDFLAG                                  _HRESULT_TYPEDEF_(0x800300FFL)
+#define STG_E_INUSE                                        _HRESULT_TYPEDEF_(0x80030100L)
+#define STG_E_NOTCURRENT                                   _HRESULT_TYPEDEF_(0x80030101L)
+#define STG_E_REVERTED                                     _HRESULT_TYPEDEF_(0x80030102L)
+#define STG_E_CANTSAVE                                     _HRESULT_TYPEDEF_(0x80030103L)
+#define STG_E_OLDFORMAT                                    _HRESULT_TYPEDEF_(0x80030104L)
+#define STG_E_OLDDLL                                       _HRESULT_TYPEDEF_(0x80030105L)
+#define STG_E_SHAREREQUIRED                                _HRESULT_TYPEDEF_(0x80030106L)
+#define STG_E_NOTFILEBASEDSTORAGE                          _HRESULT_TYPEDEF_(0x80030107L)
+#define STG_E_EXTANTMARSHALLINGS                           _HRESULT_TYPEDEF_(0x80030108L)
+
+#define STG_E_STATUS_COPY_PROTECTION_FAILURE               _HRESULT_TYPEDEF_(0x80030305L)
+#define STG_E_CSS_AUTHENTICATION_FAILURE                   _HRESULT_TYPEDEF_(0x80030306L)
+#define STG_E_CSS_KEY_NOT_PRESENT                          _HRESULT_TYPEDEF_(0x80030307L)
+#define STG_E_CSS_KEY_NOT_ESTABLISHED                      _HRESULT_TYPEDEF_(0x80030308L)
+#define STG_E_CSS_SCRAMBLED_SECTOR                         _HRESULT_TYPEDEF_(0x80030309L)
+#define STG_E_CSS_REGION_MISMATCH                          _HRESULT_TYPEDEF_(0x8003030AL)
+#define STG_E_RESETS_EXHAUSTED                             _HRESULT_TYPEDEF_(0x8003030BL)
+
+#define OLE_S_FIRST                                        _HRESULT_TYPEDEF_(0x00040000L)
+#define OLE_S_USEREG                                       _HRESULT_TYPEDEF_(0x00040000L)
+#define OLE_S_STATIC                                       _HRESULT_TYPEDEF_(0x00040001L)
+#define OLE_S_MAC_CLIPFORMAT                               _HRESULT_TYPEDEF_(0x00040002L)
+#define OLE_S_LAST                                         _HRESULT_TYPEDEF_(0x000400FFL)
+
+#define OLE_E_FIRST                                        _HRESULT_TYPEDEF_(0x80040000L)
+#define OLE_E_OLEVERB                                      _HRESULT_TYPEDEF_(0x80040000L)
+#define OLE_E_ADVF                                         _HRESULT_TYPEDEF_(0x80040001L)
+#define OLE_E_ENUM_NOMORE                                  _HRESULT_TYPEDEF_(0x80040002L)
+#define OLE_E_ADVISENOTSUPPORTED                           _HRESULT_TYPEDEF_(0x80040003L)
+#define OLE_E_NOCONNECTION                                 _HRESULT_TYPEDEF_(0x80040004L)
+#define OLE_E_NOTRUNNING                                   _HRESULT_TYPEDEF_(0x80040005L)
+#define OLE_E_NOCACHE                                      _HRESULT_TYPEDEF_(0x80040006L)
+#define OLE_E_BLANK                                        _HRESULT_TYPEDEF_(0x80040007L)
+#define OLE_E_CLASSDIFF                                    _HRESULT_TYPEDEF_(0x80040008L)
+#define OLE_E_CANT_GETMONIKER                              _HRESULT_TYPEDEF_(0x80040009L)
+#define OLE_E_CANT_BINDTOSOURCE                            _HRESULT_TYPEDEF_(0x8004000AL)
+#define OLE_E_STATIC                                       _HRESULT_TYPEDEF_(0x8004000BL)
+#define OLE_E_PROMPTSAVECANCELLED                          _HRESULT_TYPEDEF_(0x8004000CL)
+#define OLE_E_INVALIDRECT                                  _HRESULT_TYPEDEF_(0x8004000DL)
+#define OLE_E_WRONGCOMPOBJ                                 _HRESULT_TYPEDEF_(0x8004000EL)
+#define OLE_E_INVALIDHWND                                  _HRESULT_TYPEDEF_(0x8004000FL)
+#define OLE_E_NOT_INPLACEACTIVE                            _HRESULT_TYPEDEF_(0x80040010L)
+#define OLE_E_CANTCONVERT                                  _HRESULT_TYPEDEF_(0x80040011L)
+#define OLE_E_NOSTORAGE                                    _HRESULT_TYPEDEF_(0x80040012L)
+#define DV_E_FORMATETC                                     _HRESULT_TYPEDEF_(0x80040064L)
+#define DV_E_DVTARGETDEVICE                                _HRESULT_TYPEDEF_(0x80040065L)
+#define DV_E_STGMEDIUM                                     _HRESULT_TYPEDEF_(0x80040066L)
+#define DV_E_STATDATA                                      _HRESULT_TYPEDEF_(0x80040067L)
+#define DV_E_LINDEX                                        _HRESULT_TYPEDEF_(0x80040068L)
+#define DV_E_TYMED                                         _HRESULT_TYPEDEF_(0x80040069L)
+#define DV_E_CLIPFORMAT                                    _HRESULT_TYPEDEF_(0x8004006AL)
+#define DV_E_DVASPECT                                      _HRESULT_TYPEDEF_(0x8004006BL)
+#define DV_E_DVTARGETDEVICE_SIZE                           _HRESULT_TYPEDEF_(0x8004006CL)
+#define DV_E_NOIVIEWOBJECT                                 _HRESULT_TYPEDEF_(0x8004006DL)
+#define OLE_E_LAST                                         _HRESULT_TYPEDEF_(0x800400FFL)
+
+#define DRAGDROP_S_FIRST                                   _HRESULT_TYPEDEF_(0x00040100L)
+#define DRAGDROP_S_DROP                                    _HRESULT_TYPEDEF_(0x00040100L)
+#define DRAGDROP_S_CANCEL                                  _HRESULT_TYPEDEF_(0x00040101L)
+#define DRAGDROP_S_USEDEFAULTCURSORS                       _HRESULT_TYPEDEF_(0x00040102L)
+#define DRAGDROP_S_LAST                                    _HRESULT_TYPEDEF_(0x0004010FL)
+
+#define DRAGDROP_E_FIRST                                   _HRESULT_TYPEDEF_(0x80040100L)
+#define DRAGDROP_E_NOTREGISTERED                           _HRESULT_TYPEDEF_(0x80040100L)
+#define DRAGDROP_E_ALREADYREGISTERED                       _HRESULT_TYPEDEF_(0x80040101L)
+#define DRAGDROP_E_INVALIDHWND                             _HRESULT_TYPEDEF_(0x80040102L)
+#define DRAGDROP_E_LAST                                    _HRESULT_TYPEDEF_(0x8004010FL)
+
+
+#define CLASSFACTORY_S_FIRST                               _HRESULT_TYPEDEF_(0x00040110L)
+#define CLASSFACTORY_S_LAST                                _HRESULT_TYPEDEF_(0x0004011FL)
+
+#define CLASSFACTORY_E_FIRST                               _HRESULT_TYPEDEF_(0x80040110L)
+#define CLASS_E_NOAGGREGATION                              _HRESULT_TYPEDEF_(0x80040110L)
+#define CLASS_E_CLASSNOTAVAILABLE                          _HRESULT_TYPEDEF_(0x80040111L)
+#define CLASS_E_NOTLICENSED                                _HRESULT_TYPEDEF_(0x80040112L)
+#define CLASSFACTORY_E_LAST                                _HRESULT_TYPEDEF_(0x8004011FL)
+
+#define MARSHAL_S_FIRST                                    _HRESULT_TYPEDEF_(0x00040120L)
+#define MARSHAL_S_LAST                                     _HRESULT_TYPEDEF_(0x0004012FL)
+
+#define MARSHAL_E_FIRST                                    _HRESULT_TYPEDEF_(0x80040120L)
+#define MARSHAL_E_LAST                                     _HRESULT_TYPEDEF_(0x8004012FL)
+
+#define DATA_S_FIRST                                       _HRESULT_TYPEDEF_(0x00040130L)
+#define DATA_S_SAMEFORMATETC                               _HRESULT_TYPEDEF_(0x00040130L)
+#define DATA_S_LAST                                        _HRESULT_TYPEDEF_(0x0004013FL)
+
+#define DATA_E_FIRST                                       _HRESULT_TYPEDEF_(0x80040130L)
+#define DATA_E_LAST                                        _HRESULT_TYPEDEF_(0x8004013FL)
+
+#define VIEW_S_FIRST                                       _HRESULT_TYPEDEF_(0x00040140L)
+#define VIEW_S_ALREADY_FROZEN                              _HRESULT_TYPEDEF_(0x00040140L)
+#define VIEW_S_LAST                                        _HRESULT_TYPEDEF_(0x0004014FL)
+
+#define VIEW_E_FIRST                                       _HRESULT_TYPEDEF_(0x80040140L)
+#define VIEW_E_DRAW                                        _HRESULT_TYPEDEF_(0x80040140L)
+#define VIEW_E_LAST                                        _HRESULT_TYPEDEF_(0x8004014FL)
+
+#define REGDB_S_FIRST                                      _HRESULT_TYPEDEF_(0x00040150L)
+#define REGDB_S_LAST                                       _HRESULT_TYPEDEF_(0x0004015FL)
+
+#define REGDB_E_FIRST                                      _HRESULT_TYPEDEF_(0x80040150L)
+#define REGDB_E_READREGDB                                  _HRESULT_TYPEDEF_(0x80040150L)
+#define REGDB_E_WRITEREGDB                                 _HRESULT_TYPEDEF_(0x80040151L)
+#define REGDB_E_KEYMISSING                                 _HRESULT_TYPEDEF_(0x80040152L)
+#define REGDB_E_INVALIDVALUE                               _HRESULT_TYPEDEF_(0x80040153L)
+#define REGDB_E_CLASSNOTREG                                _HRESULT_TYPEDEF_(0x80040154L)
+#define REGDB_E_IIDNOTREG                                  _HRESULT_TYPEDEF_(0x80040155L)
+#define REGDB_E_LAST                                       _HRESULT_TYPEDEF_(0x8004015FL)
+
+#define CAT_E_FIRST                                        _HRESULT_TYPEDEF_(0x80040160L)
+#define CAT_E_CATIDNOEXIST                                 _HRESULT_TYPEDEF_(0x80040160L)
+#define CAT_E_NODESCRIPTION                                _HRESULT_TYPEDEF_(0x80040161L)
+#define CAT_E_LAST                                         _HRESULT_TYPEDEF_(0x80040161L)
+
+#define CACHE_S_FIRST                                      _HRESULT_TYPEDEF_(0x00040170L)
+#define CACHE_S_FORMATETC_NOTSUPPORTED                     _HRESULT_TYPEDEF_(0x00040170L)
+#define CACHE_S_SAMECACHE                                  _HRESULT_TYPEDEF_(0x00040171L)
+#define CACHE_S_SOMECACHES_NOTUPDATED                      _HRESULT_TYPEDEF_(0x00040172L)
+#define CACHE_S_LAST                                       _HRESULT_TYPEDEF_(0x0004017FL)
+
+#define CACHE_E_FIRST                                      _HRESULT_TYPEDEF_(0x80040170L)
+#define CACHE_E_NOCACHE_UPDATED                            _HRESULT_TYPEDEF_(0x80040170L)
+#define CACHE_E_LAST                                       _HRESULT_TYPEDEF_(0x8004017FL)
+
+#define OLEOBJ_S_FIRST                                     _HRESULT_TYPEDEF_(0x00040180L)
+#define OLEOBJ_S_INVALIDVERB                               _HRESULT_TYPEDEF_(0x00040180L)
+#define OLEOBJ_S_CANNOT_DOVERB_NOW                         _HRESULT_TYPEDEF_(0x00040181L)
+#define OLEOBJ_S_INVALIDHWND                               _HRESULT_TYPEDEF_(0x00040182L)
+#define OLEOBJ_S_LAST                                      _HRESULT_TYPEDEF_(0x0004018FL)
+
+#define OLEOBJ_E_FIRST                                     _HRESULT_TYPEDEF_(0x80040180L)
+#define OLEOBJ_E_NOVERBS                                   _HRESULT_TYPEDEF_(0x80040180L)
+#define OLEOBJ_E_INVALIDVERB                               _HRESULT_TYPEDEF_(0x80040181L)
+#define OLEOBJ_E_LAST                                      _HRESULT_TYPEDEF_(0x8004018FL)
+
+#define CLIENTSITE_S_FIRST                                 _HRESULT_TYPEDEF_(0x00040190L)
+#define CLIENTSITE_S_LAST                                  _HRESULT_TYPEDEF_(0x0004019FL)
+
+#define CLIENTSITE_E_FIRST                                 _HRESULT_TYPEDEF_(0x80040190L)
+#define CLIENTSITE_E_LAST                                  _HRESULT_TYPEDEF_(0x8004019FL)
+
+#define INPLACE_S_FIRST                                    _HRESULT_TYPEDEF_(0x000401A0L)
+#define INPLACE_S_TRUNCATED                                _HRESULT_TYPEDEF_(0x000401A0L)
+#define INPLACE_S_LAST                                     _HRESULT_TYPEDEF_(0x000401AFL)
+
+#define INPLACE_E_FIRST                                    _HRESULT_TYPEDEF_(0x800401A0L)
+#define INPLACE_E_NOTUNDOABLE                              _HRESULT_TYPEDEF_(0x800401A0L)
+#define INPLACE_E_NOTOOLSPACE                              _HRESULT_TYPEDEF_(0x800401A1L)
+#define INPLACE_E_LAST                                     _HRESULT_TYPEDEF_(0x800401AFL)
+
+#define ENUM_S_FIRST                                       _HRESULT_TYPEDEF_(0x000401B0L)
+#define ENUM_S_LAST                                        _HRESULT_TYPEDEF_(0x000401BFL)
+
+#define ENUM_E_FIRST                                       _HRESULT_TYPEDEF_(0x800401B0L)
+#define ENUM_E_LAST                                        _HRESULT_TYPEDEF_(0x800401BFL)
+
+#define CONVERT10_S_FIRST                                  _HRESULT_TYPEDEF_(0x000401C0L)
+#define CONVERT10_S_NO_PRESENTATION                        _HRESULT_TYPEDEF_(0x000401C0L)
+#define CONVERT10_S_LAST                                   _HRESULT_TYPEDEF_(0x000401CFL)
+
+#define CONVERT10_E_FIRST                                  _HRESULT_TYPEDEF_(0x800401C0L)
+#define CONVERT10_E_OLESTREAM_GET                          _HRESULT_TYPEDEF_(0x800401C0L)
+#define CONVERT10_E_OLESTREAM_PUT                          _HRESULT_TYPEDEF_(0x800401C1L)
+#define CONVERT10_E_OLESTREAM_FMT                          _HRESULT_TYPEDEF_(0x800401C2L)
+#define CONVERT10_E_OLESTREAM_BITMAP_TO_DIB                _HRESULT_TYPEDEF_(0x800401C3L)
+#define CONVERT10_E_STG_FMT                                _HRESULT_TYPEDEF_(0x800401C4L)
+#define CONVERT10_E_STG_NO_STD_STREAM                      _HRESULT_TYPEDEF_(0x800401C5L)
+#define CONVERT10_E_STG_DIB_TO_BITMAP                      _HRESULT_TYPEDEF_(0x800401C6L)
+#define CONVERT10_E_LAST                                   _HRESULT_TYPEDEF_(0x800401CFL)
+
+#define CLIPBRD_S_FIRST                                    _HRESULT_TYPEDEF_(0x000401D0L)
+#define CLIPBRD_S_LAST                                     _HRESULT_TYPEDEF_(0x000401DFL)
+
+#define CLIPBRD_E_FIRST                                    _HRESULT_TYPEDEF_(0x800401D0L)
+#define CLIPBRD_E_LAST                                     _HRESULT_TYPEDEF_(0x800401DFL)
+#define CLIPBRD_E_CANT_OPEN                                _HRESULT_TYPEDEF_(0x800401D0L)
+#define CLIPBRD_E_CANT_EMPTY                               _HRESULT_TYPEDEF_(0x800401D1L)
+#define CLIPBRD_E_CANT_SET                                 _HRESULT_TYPEDEF_(0x800401D2L)
+#define CLIPBRD_E_BAD_DATA                                 _HRESULT_TYPEDEF_(0x800401D3L)
+#define CLIPBRD_E_CANT_CLOSE                               _HRESULT_TYPEDEF_(0x800401D4L)
+
+#define MK_S_FIRST                                         _HRESULT_TYPEDEF_(0x000401E0L)
+#define MK_S_REDUCED_TO_SELF                               _HRESULT_TYPEDEF_(0x000401E2L)
+#define MK_S_ME                                            _HRESULT_TYPEDEF_(0x000401E4L)
+#define MK_S_HIM                                           _HRESULT_TYPEDEF_(0x000401E5L)
+#define MK_S_US                                            _HRESULT_TYPEDEF_(0x000401E6L)
+#define MK_S_MONIKERALREADYREGISTERED                      _HRESULT_TYPEDEF_(0x000401E7L)
+#define MK_S_LAST                                          _HRESULT_TYPEDEF_(0x000401EFL)
+
+#define MK_E_FIRST                                         _HRESULT_TYPEDEF_(0x800401E0L)
+#define MK_E_CONNECTMANUALLY                               _HRESULT_TYPEDEF_(0x800401E0L)
+#define MK_E_EXCEEDEDDEADLINE                              _HRESULT_TYPEDEF_(0x800401E1L)
+#define MK_E_NEEDGENERIC                                   _HRESULT_TYPEDEF_(0x800401E2L)
+#define MK_E_UNAVAILABLE                                   _HRESULT_TYPEDEF_(0x800401E3L)
+#define MK_E_SYNTAX                                        _HRESULT_TYPEDEF_(0x800401E4L)
+#define MK_E_NOOBJECT                                      _HRESULT_TYPEDEF_(0x800401E5L)
+#define MK_E_INVALIDEXTENSION                              _HRESULT_TYPEDEF_(0x800401E6L)
+#define MK_E_INTERMEDIATEINTERFACENOTSUPPORTED             _HRESULT_TYPEDEF_(0x800401E7L)
+#define MK_E_NOTBINDABLE                                   _HRESULT_TYPEDEF_(0x800401E8L)
+#define MK_E_NOTBOUND                                      _HRESULT_TYPEDEF_(0x800401E9L)
+#define MK_E_CANTOPENFILE                                  _HRESULT_TYPEDEF_(0x800401EAL)
+#define MK_E_MUSTBOTHERUSER                                _HRESULT_TYPEDEF_(0x800401EBL)
+#define MK_E_NOINVERSE                                     _HRESULT_TYPEDEF_(0x800401ECL)
+#define MK_E_NOSTORAGE                                     _HRESULT_TYPEDEF_(0x800401EDL)
+#define MK_E_NOPREFIX                                      _HRESULT_TYPEDEF_(0x800401EEL)
+#define MK_E_ENUMERATION_FAILED                            _HRESULT_TYPEDEF_(0x800401EFL)
+#define MK_E_LAST                                          _HRESULT_TYPEDEF_(0x800401EFL)
+
+#define CO_S_FIRST                                         _HRESULT_TYPEDEF_(0x000401F0L)
+#define CO_S_LAST                                          _HRESULT_TYPEDEF_(0x000401FFL)
+
+#define CO_E_FIRST                                         _HRESULT_TYPEDEF_(0x800401F0L)
+#define CO_E_NOTINITIALIZED                                _HRESULT_TYPEDEF_(0x800401F0L)
+#define CO_E_ALREADYINITIALIZED                            _HRESULT_TYPEDEF_(0x800401F1L)
+#define CO_E_CANTDETERMINECLASS                            _HRESULT_TYPEDEF_(0x800401F2L)
+#define CO_E_CLASSSTRING                                   _HRESULT_TYPEDEF_(0x800401F3L)
+#define CO_E_IIDSTRING                                     _HRESULT_TYPEDEF_(0x800401F4L)
+#define CO_E_APPNOTFOUND                                   _HRESULT_TYPEDEF_(0x800401F5L)
+#define CO_E_APPSINGLEUSE                                  _HRESULT_TYPEDEF_(0x800401F6L)
+#define CO_E_ERRORINAPP                                    _HRESULT_TYPEDEF_(0x800401F7L)
+#define CO_E_DLLNOTFOUND                                   _HRESULT_TYPEDEF_(0x800401F8L)
+#define CO_E_ERRORINDLL                                    _HRESULT_TYPEDEF_(0x800401F9L)
+#define CO_E_WRONGOSFORAPP                                 _HRESULT_TYPEDEF_(0x800401FAL)
+#define CO_E_OBJNOTREG                                     _HRESULT_TYPEDEF_(0x800401FBL)
+#define CO_E_OBJISREG                                      _HRESULT_TYPEDEF_(0x800401FCL)
+#define CO_E_OBJNOTCONNECTED                               _HRESULT_TYPEDEF_(0x800401FDL)
+#define CO_E_APPDIDNTREG                                   _HRESULT_TYPEDEF_(0x800401FEL)
+#define CO_E_RELEASED                                      _HRESULT_TYPEDEF_(0x800401FFL)
+#define CO_E_LAST                                          _HRESULT_TYPEDEF_(0x800401FFL)
+#define CO_E_FAILEDTOIMPERSONATE                           _HRESULT_TYPEDEF_(0x80040200L)
+#define CO_E_FAILEDTOGETSECCTX                             _HRESULT_TYPEDEF_(0x80040201L)
+#define CO_E_FAILEDTOOPENTHREADTOKEN                       _HRESULT_TYPEDEF_(0x80040202L)
+#define CO_E_FAILEDTOGETTOKENINFO                          _HRESULT_TYPEDEF_(0x80040203L)
+#define CO_E_TRUSTEEDOESNTMATCHCLIENT                      _HRESULT_TYPEDEF_(0x80040204L)
+#define CO_E_FAILEDTOQUERYCLIENTBLANKET                    _HRESULT_TYPEDEF_(0x80040205L)
+#define CO_E_FAILEDTOSETDACL                               _HRESULT_TYPEDEF_(0x80040206L)
+#define CO_E_ACCESSCHECKFAILED                             _HRESULT_TYPEDEF_(0x80040207L)
+#define CO_E_NETACCESSAPIFAILED                            _HRESULT_TYPEDEF_(0x80040208L)
+#define CO_E_WRONGTRUSTEENAMESYNTAX                        _HRESULT_TYPEDEF_(0x80040209L)
+#define CO_E_INVALIDSID                                    _HRESULT_TYPEDEF_(0x8004020AL)
+#define CO_E_CONVERSIONFAILED                              _HRESULT_TYPEDEF_(0x8004020BL)
+#define CO_E_NOMATCHINGSIDFOUND                            _HRESULT_TYPEDEF_(0x8004020CL)
+#define CO_E_LOOKUPACCSIDFAILED                            _HRESULT_TYPEDEF_(0x8004020DL)
+#define CO_E_NOMATCHINGNAMEFOUND                           _HRESULT_TYPEDEF_(0x8004020EL)
+#define CO_E_LOOKUPACCNAMEFAILED                           _HRESULT_TYPEDEF_(0x8004020FL)
+#define CO_E_SETSERLHNDLFAILED                             _HRESULT_TYPEDEF_(0x80040210L)
+#define CO_E_FAILEDTOGETWINDIR                             _HRESULT_TYPEDEF_(0x80040211L)
+#define CO_E_PATHTOOLONG                                   _HRESULT_TYPEDEF_(0x80040212L)
+#define CO_E_FAILEDTOGENUUID                               _HRESULT_TYPEDEF_(0x80040213L)
+#define CO_E_FAILEDTOCREATEFILE                            _HRESULT_TYPEDEF_(0x80040214L)
+#define CO_E_FAILEDTOCLOSEHANDLE                           _HRESULT_TYPEDEF_(0x80040215L)
+#define CO_E_EXCEEDSYSACLLIMIT                             _HRESULT_TYPEDEF_(0x80040216L)
+#define CO_E_ACESINWRONGORDER                              _HRESULT_TYPEDEF_(0x80040217L)
+#define CO_E_INCOMPATIBLESTREAMVERSION                     _HRESULT_TYPEDEF_(0x80040218L)
+#define CO_E_FAILEDTOOPENPROCESSTOKEN                      _HRESULT_TYPEDEF_(0x80040219L)
+#define CO_E_DECODEFAILED                                  _HRESULT_TYPEDEF_(0x8004021AL)
+#define CO_E_ACNOTINITIALIZED                              _HRESULT_TYPEDEF_(0x8004021BL)
+
+#define E_ACCESSDENIED                                     _HRESULT_TYPEDEF_(0x80070005L)
+#define E_HANDLE                                           _HRESULT_TYPEDEF_(0x80070006L)
+#define E_OUTOFMEMORY                                      _HRESULT_TYPEDEF_(0x8007000EL)
+#define E_INVALIDARG                                       _HRESULT_TYPEDEF_(0x80070057L)
 
 /* For IKsPropertySets */
-#define E_PROP_ID_UNSUPPORTED				   0x80070490L
-#define E_PROP_SET_UNSUPPORTED				   0x80070492L
+#define E_PROP_ID_UNSUPPORTED				   _HRESULT_TYPEDEF_(0x80070490L)
+#define E_PROP_SET_UNSUPPORTED				   _HRESULT_TYPEDEF_(0x80070492L)
 
-#define CO_S_NOTALLINTERFACES                              0x00080012L
+#define CO_S_NOTALLINTERFACES                              _HRESULT_TYPEDEF_(0x00080012L)
 
-#define CO_E_CLASS_CREATE_FAILED                           0x80080001L
-#define CO_E_SCM_ERROR                                     0x80080002L
-#define CO_E_SCM_RPC_FAILURE                               0x80080003L
-#define CO_E_BAD_PATH                                      0x80080004L
-#define CO_E_SERVER_EXEC_FAILURE                           0x80080005L
-#define CO_E_OBJSRV_RPC_FAILURE                            0x80080006L
-#define MK_E_NO_NORMALIZED                                 0x80080007L
-#define CO_E_SERVER_STOPPING                               0x80080008L
-#define MEM_E_INVALID_ROOT                                 0x80080009L
-#define MEM_E_INVALID_LINK                                 0x80080010L
-#define MEM_E_INVALID_SIZE                                 0x80080011L
+#define CO_E_CLASS_CREATE_FAILED                           _HRESULT_TYPEDEF_(0x80080001L)
+#define CO_E_SCM_ERROR                                     _HRESULT_TYPEDEF_(0x80080002L)
+#define CO_E_SCM_RPC_FAILURE                               _HRESULT_TYPEDEF_(0x80080003L)
+#define CO_E_BAD_PATH                                      _HRESULT_TYPEDEF_(0x80080004L)
+#define CO_E_SERVER_EXEC_FAILURE                           _HRESULT_TYPEDEF_(0x80080005L)
+#define CO_E_OBJSRV_RPC_FAILURE                            _HRESULT_TYPEDEF_(0x80080006L)
+#define MK_E_NO_NORMALIZED                                 _HRESULT_TYPEDEF_(0x80080007L)
+#define CO_E_SERVER_STOPPING                               _HRESULT_TYPEDEF_(0x80080008L)
+#define MEM_E_INVALID_ROOT                                 _HRESULT_TYPEDEF_(0x80080009L)
+#define MEM_E_INVALID_LINK                                 _HRESULT_TYPEDEF_(0x80080010L)
+#define MEM_E_INVALID_SIZE                                 _HRESULT_TYPEDEF_(0x80080011L)
 
 /*Cryptographic Error Codes */
-#define NTE_BAD_UID                                        0x80090001L
-#define NTE_BAD_HASH                                       0x80090002L
-#define NTE_BAD_KEY                                        0x80090003L
-#define NTE_BAD_LEN                                        0x80090004L
-#define NTE_BAD_DATA                                       0x80090005L
-#define NTE_BAD_SIGNATURE                                  0x80090006L
-#define NTE_BAD_VER                                        0x80090007L
-#define NTE_BAD_ALGID                                      0x80090008L
-#define NTE_BAD_FLAGS                                      0x80090009L
-#define NTE_BAD_TYPE                                       0x8009000AL
-#define NTE_BAD_KEY_STATE                                  0x8009000BL
-#define NTE_BAD_HASH_STATE                                 0x8009000CL
-#define NTE_NO_KEY                                         0x8009000DL
-#define NTE_NO_MEMORY                                      0x8009000EL
-#define NTE_EXISTS                                         0x8009000FL
-#define NTE_PERM                                           0x80090010L
-#define NTE_NOT_FOUND                                      0x80090011L
-#define NTE_DOUBLE_ENCRYPT                                 0x80090012L
-#define NTE_BAD_PROVIDER                                   0x80090013L
-#define NTE_BAD_PROV_TYPE                                  0x80090014L
-#define NTE_BAD_PUBLIC_KEY                                 0x80090015L
-#define NTE_BAD_KEYSET                                     0x80090016L
-#define NTE_PROV_TYPE_NOT_DEF                              0x80090017L
-#define NTE_PROV_TYPE_ENTRY_BAD                            0x80090018L
-#define NTE_KEYSET_NOT_DEF                                 0x80090019L
-#define NTE_KEYSET_ENTRY_BAD                               0x8009001AL
-#define NTE_PROV_TYPE_NO_MATCH                             0x8009001BL
-#define NTE_SIGNATURE_FILE_BAD                             0x8009001CL
-#define NTE_PROVIDER_DLL_FAIL                              0x8009001DL
-#define NTE_PROV_DLL_NOT_FOUND                             0x8009001EL
-#define NTE_BAD_KEYSET_PARAM                               0x8009001FL
-#define NTE_FAIL                                           0x80090020L
-#define NTE_SYS_ERR                                        0x80090021L
-#define NTE_OP_OK                                          0
-
-#define SEC_E_INSUFFICIENT_MEMORY                          0x80090300L
-#define SEC_E_INVALID_HANDLE                               0x80090301L
-#define SEC_E_UNSUPPORTED_FUNCTION                         0x80090302L
-#define SEC_E_TARGET_UNKNOWN                               0x80090303L
-#define SEC_E_INTERNAL_ERROR                               0x80090304L
-#define SEC_E_SECPKG_NOT_FOUND                             0x80090305L
-#define SEC_E_NOT_OWNER                                    0x80090306L
-#define SEC_E_CANNOT_INSTALL                               0x80090307L
-#define SEC_E_INVALID_TOKEN                                0x80090308L
-#define SEC_E_CANNOT_PACK                                  0x80090309L
-#define SEC_E_QOP_NOT_SUPPORTED                            0x8009030AL
-#define SEC_E_NO_IMPERSONATION                             0x8009030BL
-#define SEC_E_LOGON_DENIED                                 0x8009030CL
-#define SEC_E_UNKNOWN_CREDENTIALS                          0x8009030DL
-#define SEC_E_NO_CREDENTIALS                               0x8009030EL
-#define SEC_E_MESSAGE_ALTERED                              0x8009030FL
-#define SEC_E_OUT_OF_SEQUENCE                              0x80090310L
-#define SEC_E_NO_AUTHENTICATING_AUTHORITY                  0x80090311L
-#define SEC_E_BAD_PKGID                                    0x80090316L
-#define SEC_E_CONTEXT_EXPIRED                              0x80090317L
-#define SEC_E_INCOMPLETE_MESSAGE                           0x80090318L
-#define SEC_E_INCOMPLETE_CREDENTIALS                       0x80090320L
-#define SEC_E_BUFFER_TOO_SMALL                             0x80090321L
-#define SEC_E_WRONG_PRINCIPAL                              0x80090322L
-#define SEC_E_UNTRUSTED_ROOT                               0x80090325L
-#define SEC_E_ILLEGAL_MESSAGE                              0x80090326L
-#define SEC_E_CERT_UNKNOWN                                 0x80090327L
-#define SEC_E_CERT_EXPIRED                                 0x80090328L
-#define SEC_E_ENCRYPT_FAILURE                              0x80090329L
-#define SEC_E_DECRYPT_FAILURE                              0x80090330L
-#define SEC_E_ALGORITHM_MISMATCH                           0x80090331L
-#define SEC_E_UNFINISHED_CONTEXT_DELETED                   0x80090333L
-#define SEC_E_NO_TGT_REPLY                                 0x80090334L
-#define SEC_E_NO_IP_ADDRESSES                              0x80090335L
-#define SEC_E_WRONG_CREDENTIAL_HANDLE                      0x80090336L
-#define SEC_E_CRYPTO_SYSTEM_INVALID                        0x80090337L
-#define SEC_E_MAX_REFERRALS_EXCEEDED                       0x80090338L
-#define SEC_E_MUST_BE_KDC                                  0x80090339L
-#define SEC_E_STRONG_CRYPTO_NOT_SUPPORTED                  0x8009033AL
-#define SEC_E_TOO_MANY_PRINCIPALS                          0x8009033BL
-#define SEC_E_NO_PA_DATA                                   0x8009033CL
-#define SEC_E_PKINIT_NAME_MISMATCH                         0x8009033DL
-#define SEC_E_SMARTCARD_LOGON_REQUIRED                     0x8009033EL
-#define SEC_E_KDC_INVALID_REQUEST                          0x80090340L
-#define SEC_E_KDC_UNABLE_TO_REFER                          0x80090341L
-#define SEC_E_KDC_UNKNOWN_ETYPE                            0x80090342L
-#define SEC_E_UNSUPPORTED_PREAUTH                          0x80090343L
-#define SEC_E_BAD_BINDINGS                                 0x80090346L
-#define SEC_E_MULTIPLE_ACCOUNTS                            0x80090347L
-#define SEC_E_NO_KERB_KEY                                  0x80090348L
-
-#define CRYPT_E_REVOKED                                    0x80092010L
-#define CRYPT_E_NO_REVOCATION_CHECK                        0x80092012L
-#define CRYPT_E_REVOCATION_OFFLINE                         0x80092013L
-#define TRUST_E_CERT_SIGNATURE                             0x80096004L
+#define NTE_BAD_UID                                        _HRESULT_TYPEDEF_(0x80090001L)
+#define NTE_BAD_HASH                                       _HRESULT_TYPEDEF_(0x80090002L)
+#define NTE_BAD_KEY                                        _HRESULT_TYPEDEF_(0x80090003L)
+#define NTE_BAD_LEN                                        _HRESULT_TYPEDEF_(0x80090004L)
+#define NTE_BAD_DATA                                       _HRESULT_TYPEDEF_(0x80090005L)
+#define NTE_BAD_SIGNATURE                                  _HRESULT_TYPEDEF_(0x80090006L)
+#define NTE_BAD_VER                                        _HRESULT_TYPEDEF_(0x80090007L)
+#define NTE_BAD_ALGID                                      _HRESULT_TYPEDEF_(0x80090008L)
+#define NTE_BAD_FLAGS                                      _HRESULT_TYPEDEF_(0x80090009L)
+#define NTE_BAD_TYPE                                       _HRESULT_TYPEDEF_(0x8009000AL)
+#define NTE_BAD_KEY_STATE                                  _HRESULT_TYPEDEF_(0x8009000BL)
+#define NTE_BAD_HASH_STATE                                 _HRESULT_TYPEDEF_(0x8009000CL)
+#define NTE_NO_KEY                                         _HRESULT_TYPEDEF_(0x8009000DL)
+#define NTE_NO_MEMORY                                      _HRESULT_TYPEDEF_(0x8009000EL)
+#define NTE_EXISTS                                         _HRESULT_TYPEDEF_(0x8009000FL)
+#define NTE_PERM                                           _HRESULT_TYPEDEF_(0x80090010L)
+#define NTE_NOT_FOUND                                      _HRESULT_TYPEDEF_(0x80090011L)
+#define NTE_DOUBLE_ENCRYPT                                 _HRESULT_TYPEDEF_(0x80090012L)
+#define NTE_BAD_PROVIDER                                   _HRESULT_TYPEDEF_(0x80090013L)
+#define NTE_BAD_PROV_TYPE                                  _HRESULT_TYPEDEF_(0x80090014L)
+#define NTE_BAD_PUBLIC_KEY                                 _HRESULT_TYPEDEF_(0x80090015L)
+#define NTE_BAD_KEYSET                                     _HRESULT_TYPEDEF_(0x80090016L)
+#define NTE_PROV_TYPE_NOT_DEF                              _HRESULT_TYPEDEF_(0x80090017L)
+#define NTE_PROV_TYPE_ENTRY_BAD                            _HRESULT_TYPEDEF_(0x80090018L)
+#define NTE_KEYSET_NOT_DEF                                 _HRESULT_TYPEDEF_(0x80090019L)
+#define NTE_KEYSET_ENTRY_BAD                               _HRESULT_TYPEDEF_(0x8009001AL)
+#define NTE_PROV_TYPE_NO_MATCH                             _HRESULT_TYPEDEF_(0x8009001BL)
+#define NTE_SIGNATURE_FILE_BAD                             _HRESULT_TYPEDEF_(0x8009001CL)
+#define NTE_PROVIDER_DLL_FAIL                              _HRESULT_TYPEDEF_(0x8009001DL)
+#define NTE_PROV_DLL_NOT_FOUND                             _HRESULT_TYPEDEF_(0x8009001EL)
+#define NTE_BAD_KEYSET_PARAM                               _HRESULT_TYPEDEF_(0x8009001FL)
+#define NTE_FAIL                                           _HRESULT_TYPEDEF_(0x80090020L)
+#define NTE_SYS_ERR                                        _HRESULT_TYPEDEF_(0x80090021L)
+#define NTE_OP_OK                                          _HRESULT_TYPEDEF_(0)
+
+#define SEC_E_INSUFFICIENT_MEMORY                          _HRESULT_TYPEDEF_(0x80090300L)
+#define SEC_E_INVALID_HANDLE                               _HRESULT_TYPEDEF_(0x80090301L)
+#define SEC_E_UNSUPPORTED_FUNCTION                         _HRESULT_TYPEDEF_(0x80090302L)
+#define SEC_E_TARGET_UNKNOWN                               _HRESULT_TYPEDEF_(0x80090303L)
+#define SEC_E_INTERNAL_ERROR                               _HRESULT_TYPEDEF_(0x80090304L)
+#define SEC_E_SECPKG_NOT_FOUND                             _HRESULT_TYPEDEF_(0x80090305L)
+#define SEC_E_NOT_OWNER                                    _HRESULT_TYPEDEF_(0x80090306L)
+#define SEC_E_CANNOT_INSTALL                               _HRESULT_TYPEDEF_(0x80090307L)
+#define SEC_E_INVALID_TOKEN                                _HRESULT_TYPEDEF_(0x80090308L)
+#define SEC_E_CANNOT_PACK                                  _HRESULT_TYPEDEF_(0x80090309L)
+#define SEC_E_QOP_NOT_SUPPORTED                            _HRESULT_TYPEDEF_(0x8009030AL)
+#define SEC_E_NO_IMPERSONATION                             _HRESULT_TYPEDEF_(0x8009030BL)
+#define SEC_E_LOGON_DENIED                                 _HRESULT_TYPEDEF_(0x8009030CL)
+#define SEC_E_UNKNOWN_CREDENTIALS                          _HRESULT_TYPEDEF_(0x8009030DL)
+#define SEC_E_NO_CREDENTIALS                               _HRESULT_TYPEDEF_(0x8009030EL)
+#define SEC_E_MESSAGE_ALTERED                              _HRESULT_TYPEDEF_(0x8009030FL)
+#define SEC_E_OUT_OF_SEQUENCE                              _HRESULT_TYPEDEF_(0x80090310L)
+#define SEC_E_NO_AUTHENTICATING_AUTHORITY                  _HRESULT_TYPEDEF_(0x80090311L)
+#define SEC_E_BAD_PKGID                                    _HRESULT_TYPEDEF_(0x80090316L)
+#define SEC_E_CONTEXT_EXPIRED                              _HRESULT_TYPEDEF_(0x80090317L)
+#define SEC_E_INCOMPLETE_MESSAGE                           _HRESULT_TYPEDEF_(0x80090318L)
+#define SEC_E_INCOMPLETE_CREDENTIALS                       _HRESULT_TYPEDEF_(0x80090320L)
+#define SEC_E_BUFFER_TOO_SMALL                             _HRESULT_TYPEDEF_(0x80090321L)
+#define SEC_E_WRONG_PRINCIPAL                              _HRESULT_TYPEDEF_(0x80090322L)
+#define SEC_E_UNTRUSTED_ROOT                               _HRESULT_TYPEDEF_(0x80090325L)
+#define SEC_E_ILLEGAL_MESSAGE                              _HRESULT_TYPEDEF_(0x80090326L)
+#define SEC_E_CERT_UNKNOWN                                 _HRESULT_TYPEDEF_(0x80090327L)
+#define SEC_E_CERT_EXPIRED                                 _HRESULT_TYPEDEF_(0x80090328L)
+#define SEC_E_ENCRYPT_FAILURE                              _HRESULT_TYPEDEF_(0x80090329L)
+#define SEC_E_DECRYPT_FAILURE                              _HRESULT_TYPEDEF_(0x80090330L)
+#define SEC_E_ALGORITHM_MISMATCH                           _HRESULT_TYPEDEF_(0x80090331L)
+#define SEC_E_UNFINISHED_CONTEXT_DELETED                   _HRESULT_TYPEDEF_(0x80090333L)
+#define SEC_E_NO_TGT_REPLY                                 _HRESULT_TYPEDEF_(0x80090334L)
+#define SEC_E_NO_IP_ADDRESSES                              _HRESULT_TYPEDEF_(0x80090335L)
+#define SEC_E_WRONG_CREDENTIAL_HANDLE                      _HRESULT_TYPEDEF_(0x80090336L)
+#define SEC_E_CRYPTO_SYSTEM_INVALID                        _HRESULT_TYPEDEF_(0x80090337L)
+#define SEC_E_MAX_REFERRALS_EXCEEDED                       _HRESULT_TYPEDEF_(0x80090338L)
+#define SEC_E_MUST_BE_KDC                                  _HRESULT_TYPEDEF_(0x80090339L)
+#define SEC_E_STRONG_CRYPTO_NOT_SUPPORTED                  _HRESULT_TYPEDEF_(0x8009033AL)
+#define SEC_E_TOO_MANY_PRINCIPALS                          _HRESULT_TYPEDEF_(0x8009033BL)
+#define SEC_E_NO_PA_DATA                                   _HRESULT_TYPEDEF_(0x8009033CL)
+#define SEC_E_PKINIT_NAME_MISMATCH                         _HRESULT_TYPEDEF_(0x8009033DL)
+#define SEC_E_SMARTCARD_LOGON_REQUIRED                     _HRESULT_TYPEDEF_(0x8009033EL)
+#define SEC_E_KDC_INVALID_REQUEST                          _HRESULT_TYPEDEF_(0x80090340L)
+#define SEC_E_KDC_UNABLE_TO_REFER                          _HRESULT_TYPEDEF_(0x80090341L)
+#define SEC_E_KDC_UNKNOWN_ETYPE                            _HRESULT_TYPEDEF_(0x80090342L)
+#define SEC_E_UNSUPPORTED_PREAUTH                          _HRESULT_TYPEDEF_(0x80090343L)
+#define SEC_E_BAD_BINDINGS                                 _HRESULT_TYPEDEF_(0x80090346L)
+#define SEC_E_MULTIPLE_ACCOUNTS                            _HRESULT_TYPEDEF_(0x80090347L)
+#define SEC_E_NO_KERB_KEY                                  _HRESULT_TYPEDEF_(0x80090348L)
+
+#define CRYPT_E_REVOKED                                    _HRESULT_TYPEDEF_(0x80092010L)
+#define CRYPT_E_NO_REVOCATION_CHECK                        _HRESULT_TYPEDEF_(0x80092012L)
+#define CRYPT_E_REVOCATION_OFFLINE                         _HRESULT_TYPEDEF_(0x80092013L)
+#define TRUST_E_CERT_SIGNATURE                             _HRESULT_TYPEDEF_(0x80096004L)
 
 /* Smart card management error codes */
-#define SCARD_E_NO_SMARTCARD                               0x8010000CL
-#define SCARD_E_NO_SUCH_CERTIFICATE                        0x8010002CL
-#define SCARD_E_COMM_DATA_LOST                             0x8010002FL
-
-#define SCARD_W_WRONG_CHV                                  0x8010006BL
-#define SCARD_W_CHV_BLOCKED                                0x8010006CL
-#define SCARD_W_CARD_NOT_AUTHENTICATED                     0x8010006FL
+#define SCARD_E_NO_SMARTCARD                               _HRESULT_TYPEDEF_(0x8010000CL)
+#define SCARD_E_NO_SUCH_CERTIFICATE                        _HRESULT_TYPEDEF_(0x8010002CL)
+#define SCARD_E_COMM_DATA_LOST                             _HRESULT_TYPEDEF_(0x8010002FL)
+
+#define SCARD_W_WRONG_CHV                                  _HRESULT_TYPEDEF_(0x8010006BL)
+#define SCARD_W_CHV_BLOCKED                                _HRESULT_TYPEDEF_(0x8010006CL)
+#define SCARD_W_CARD_NOT_AUTHENTICATED                     _HRESULT_TYPEDEF_(0x8010006FL)
 
 #endif  /* __WINE_WINERROR_H */

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux