#define ERROR_SUCCESS                    0
#define ERROR_INVALID_FUNCTION           1
#define ERROR_FILE_NOT_FOUND             2
#define ERROR_PATH_NOT_FOUND             3
#define ERROR_TOO_MANY_OPEN_FILES        4
#define ERROR_ACCESS_DENIED              5
#define ERROR_INVALID_HANDLE             6
#define ERROR_ARENA_TRASHED              7
#define ERROR_NOT_ENOUGH_MEMORY          8
#define ERROR_INVALID_BLOCK              9
#define ERROR_BAD_ENVIRONMENT            10
#define ERROR_BAD_FORMAT                 11
#define ERROR_INVALID_ACCESS             12
#define ERROR_INVALID_DATA               13
#define ERROR_OUTOFMEMORY                14
#define ERROR_INVALID_DRIVE              15
#define ERROR_CURRENT_DIRECTORY          16
#define ERROR_NOT_SAME_DEVICE            17
#define ERROR_NO_MORE_FILES              18
#define ERROR_WRITE_PROTECT              19
#define ERROR_BAD_UNIT                   20
#define ERROR_NOT_READY                  21
#define ERROR_BAD_COMMAND                22
#define ERROR_CRC                        23
#define ERROR_BAD_LENGTH                 24
#define ERROR_SEEK                       25
#define ERROR_NOT_DOS_DISK               26
#define ERROR_SECTOR_NOT_FOUND           27
#define ERROR_OUT_OF_PAPER               28
#define ERROR_WRITE_FAULT                29
#define ERROR_READ_FAULT                 30
#define ERROR_GEN_FAILURE                31
#define ERROR_SHARING_VIOLATION          32
#define ERROR_LOCK_VIOLATION             33
#define ERROR_WRONG_DISK                 34
#define ERROR_SHARING_BUFFER_EXCEEDED    36
#define ERROR_HANDLE_EOF                 38
#define ERROR_HANDLE_DISK_FULL           39
#define ERROR_NOT_SUPPORTED              50
#define ERROR_REM_NOT_LIST               51
#define ERROR_DUP_NAME                   52
#define ERROR_BAD_NETPATH                53
#define ERROR_NETWORK_BUSY               54
#define ERROR_DEV_NOT_EXIST              55
#define ERROR_TOO_MANY_CMDS              56
#define ERROR_ADAP_HDW_ERR               57
#define ERROR_BAD_NET_RESP               58
#define ERROR_UNEXP_NET_ERR              59
#define ERROR_BAD_REM_ADAP               60
#define ERROR_PRINTQ_FULL                61
#define ERROR_NO_SPOOL_SPACE             62
#define ERROR_PRINT_CANCELLED            63
#define ERROR_NETNAME_DELETED            64
#define ERROR_NETWORK_ACCESS_DENIED      65
#define ERROR_BAD_DEV_TYPE               66
#define ERROR_BAD_NET_NAME               67
#define ERROR_TOO_MANY_NAMES             68
#define ERROR_TOO_MANY_SESS              69
#define ERROR_SHARING_PAUSED             70
#define ERROR_REQ_NOT_ACCEP              71
#define ERROR_REDIR_PAUSED               72
#define ERROR_FILE_EXISTS                80
#define ERROR_CANNOT_MAKE                82
#define ERROR_FAIL_I24                   83
#define ERROR_OUT_OF_STRUCTURES          84
#define ERROR_ALREADY_ASSIGNED           85
#define ERROR_INVALID_PASSWORD           86
#define ERROR_INVALID_PARAMETER          87
#define ERROR_NET_WRITE_FAULT            88
#define ERROR_NO_PROC_SLOTS              89
#define ERROR_TOO_MANY_SEMAPHORES        100
#define ERROR_EXCL_SEM_ALREADY_OWNED     101
#define ERROR_SEM_IS_SET                 102
#define ERROR_TOO_MANY_SEM_REQUESTS      103
#define ERROR_INVALID_AT_INTERRUPT_TIME  104
#define ERROR_SEM_OWNER_DIED             105
#define ERROR_SEM_USER_LIMIT             106
#define ERROR_DISK_CHANGE                107
#define ERROR_DRIVE_LOCKED               108
#define ERROR_BROKEN_PIPE                109
#define ERROR_OPEN_FAILED                110
#define ERROR_BUFFER_OVERFLOW            111
#define ERROR_DISK_FULL                  112
#define ERROR_NO_MORE_SEARCH_HANDLES     113
#define ERROR_INVALID_TARGET_HANDLE      114
#define ERROR_INVALID_CATEGORY           117
#define ERROR_INVALID_VERIFY_SWITCH      118
#define ERROR_BAD_DRIVER_LEVEL           119
#define ERROR_CALL_NOT_IMPLEMENTED       120
#define ERROR_SEM_TIMEOUT                121
#define ERROR_INSUFFICIENT_BUFFER        122
#define ERROR_INVALID_NAME               123
#define ERROR_INVALID_LEVEL              124
#define ERROR_NO_VOLUME_LABEL            125
#define ERROR_MOD_NOT_FOUND              126
#define ERROR_PROC_NOT_FOUND             127
#define ERROR_WAIT_NO_CHILDREN           128
#define ERROR_CHILD_NOT_COMPLETE         129
#define ERROR_DIRECT_ACCESS_HANDLE       130
#define ERROR_NEGATIVE_SEEK              131
#define ERROR_SEEK_ON_DEVICE             132
#define ERROR_IS_JOIN_TARGET             133
#define ERROR_IS_JOINED                  134
#define ERROR_IS_SUBSTED                 135
#define ERROR_NOT_JOINED                 136
#define ERROR_NOT_SUBSTED                137
#define ERROR_JOIN_TO_JOIN               138
#define ERROR_SUBST_TO_SUBST             139
#define ERROR_JOIN_TO_SUBST              140
#define ERROR_SUBST_TO_JOIN              141
#define ERROR_BUSY_DRIVE                 142
#define ERROR_SAME_DRIVE                 143
#define ERROR_DIR_NOT_ROOT               144
#define ERROR_DIR_NOT_EMPTY              145
#define ERROR_IS_SUBST_PATH              146
#define ERROR_IS_JOIN_PATH               147
#define ERROR_PATH_BUSY                  148
#define ERROR_IS_SUBST_TARGET            149
#define ERROR_SYSTEM_TRACE               150
#define ERROR_INVALID_EVENT_COUNT        151
#define ERROR_TOO_MANY_MUXWAITERS        152
#define ERROR_INVALID_LIST_FORMAT        153
#define ERROR_LABEL_TOO_LONG             154
#define ERROR_TOO_MANY_TCBS              155
#define ERROR_SIGNAL_REFUSED             156
#define ERROR_DISCARDED                  157
#define ERROR_NOT_LOCKED                 158
#define ERROR_BAD_THREADID_ADDR          159
#define ERROR_BAD_ARGUMENTS              160
#define ERROR_BAD_PATHNAME               161
#define ERROR_SIGNAL_PENDING             162
#define ERROR_MAX_THRDS_REACHED          164
#define ERROR_LOCK_FAILED                167
#define ERROR_BUSY                       170
#define ERROR_CANCEL_VIOLATION           173
#define ERROR_ATOMIC_LOCKS_NOT_SUPPORTED 174
#define ERROR_INVALID_SEGMENT_NUMBER     180
#define ERROR_INVALID_ORDINAL            182
#define ERROR_ALREADY_EXISTS             183
#define ERROR_INVALID_FLAG_NUMBER        186
#define ERROR_SEM_NOT_FOUND              187
#define ERROR_INVALID_STARTING_CODESEG   188
#define ERROR_INVALID_STACKSEG           189
#define ERROR_INVALID_MODULETYPE         190
#define ERROR_INVALID_EXE_SIGNATURE      191
#define ERROR_EXE_MARKED_INVALID         192
#define ERROR_BAD_EXE_FORMAT             193
#define ERROR_ITERATED_DATA_EXCEEDS_64k  194
#define ERROR_INVALID_MINALLOCSIZE       195
#define ERROR_DYNLINK_FROM_INVALID_RING  196
#define ERROR_IOPL_NOT_ENABLED           197
#define ERROR_INVALID_SEGDPL             198
#define ERROR_AUTODATASEG_EXCEEDS_64k    199
#define ERROR_RING2SEG_MUST_BE_MOVABLE   200
#define ERROR_RELOC_CHAIN_XEEDS_SEGLIM   201
#define ERROR_INFLOOP_IN_RELOC_CHAIN     202
#define ERROR_ENVVAR_NOT_FOUND           203
#define ERROR_NO_SIGNAL_SENT             205
#define ERROR_FILENAME_EXCED_RANGE       206
#define ERROR_RING2_STACK_IN_USE         207
#define ERROR_META_EXPANSION_TOO_LONG    208
#define ERROR_INVALID_SIGNAL_NUMBER      209
#define ERROR_THREAD_1_INACTIVE          210
#define ERROR_LOCKED                     212
#define ERROR_TOO_MANY_MODULES           214
#define ERROR_NESTING_NOT_ALLOWED        215
#define ERROR_EXE_MACHINE_TYPE_MISMATCH  216
#define ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY 217
#define ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY 218
#define ERROR_FILE_CHECKED_OUT           220
#define ERROR_CHECKOUT_REQUIRED          221
#define ERROR_BAD_FILE_TYPE              222
#define ERROR_FILE_TOO_LARGE             223
#define ERROR_FORMS_AUTH_REQUIRED        224
#define ERROR_VIRUS_INFECTED             225
#define ERROR_VIRUS_DELETED              226
#define ERROR_PIPE_LOCAL                 229
#define ERROR_BAD_PIPE                   230
#define ERROR_PIPE_BUSY                  231
#define ERROR_NO_DATA                    232
#define ERROR_PIPE_NOT_CONNECTED         233
#define ERROR_MORE_DATA                  234
#define ERROR_VC_DISCONNECTED            240
#define ERROR_INVALID_EA_NAME            254
#define ERROR_EA_LIST_INCONSISTENT       255
#define ERROR_NO_MORE_ITEMS              259
#define ERROR_CANNOT_COPY                266
#define ERROR_DIRECTORY                  267
#define ERROR_EAS_DIDNT_FIT              275
#define ERROR_EA_FILE_CORRUPT            276
#define ERROR_EA_TABLE_FULL              277
#define ERROR_INVALID_EA_HANDLE          278
#define ERROR_EAS_NOT_SUPPORTED          282
#define ERROR_NOT_OWNER                  288
#define ERROR_TOO_MANY_POSTS             298
#define ERROR_PARTIAL_COPY               299
#define ERROR_OPLOCK_NOT_GRANTED         300
#define ERROR_INVALID_OPLOCK_PROTOCOL    301
#define ERROR_DISK_TOO_FRAGMENTED        302
#define ERROR_DELETE_PENDING             303
#define ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING 304
#define ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME 305
#define ERROR_SECURITY_STREAM_IS_INCONSISTENT 306
#define ERROR_INVALID_LOCK_RANGE         307
#define ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT 308
#define ERROR_NOTIFICATION_GUID_ALREADY_DEFINED 309
#define ERROR_MR_MID_NOT_FOUND           317
#define ERROR_SCOPE_NOT_FOUND            318
#define ERROR_FAIL_NOACTION_REBOOT       350
#define ERROR_FAIL_SHUTDOWN              351
#define ERROR_FAIL_RESTART               352
#define ERROR_MAX_SESSIONS_REACHED       353
#define ERROR_THREAD_MODE_ALREADY_BACKGROUND 400
#define ERROR_THREAD_MODE_NOT_BACKGROUND 401
#define ERROR_PROCESS_MODE_ALREADY_BACKGROUND 402
#define ERROR_PROCESS_MODE_NOT_BACKGROUND 403
#define ERROR_INVALID_ADDRESS            487
#define ERROR_USER_PROFILE_LOAD          500
#define ERROR_ARITHMETIC_OVERFLOW        534
#define ERROR_PIPE_CONNECTED             535
#define ERROR_PIPE_LISTENING             536
#define ERROR_VERIFIER_STOP              537
#define ERROR_ABIOS_ERROR                538
#define ERROR_WX86_WARNING               539
#define ERROR_WX86_ERROR                 540
#define ERROR_TIMER_NOT_CANCELED         541
#define ERROR_UNWIND                     542
#define ERROR_BAD_STACK                  543
#define ERROR_INVALID_UNWIND_TARGET      544
#define ERROR_INVALID_PORT_ATTRIBUTES    545
#define ERROR_PORT_MESSAGE_TOO_LONG      546
#define ERROR_INVALID_QUOTA_LOWER        547
#define ERROR_DEVICE_ALREADY_ATTACHED    548
#define ERROR_INSTRUCTION_MISALIGNMENT   549
#define ERROR_PROFILING_NOT_STARTED      550
#define ERROR_PROFILING_NOT_STOPPED      551
#define ERROR_COULD_NOT_INTERPRET        552
#define ERROR_PROFILING_AT_LIMIT         553
#define ERROR_CANT_WAIT                  554
#define ERROR_CANT_TERMINATE_SELF        555
#define ERROR_UNEXPECTED_MM_CREATE_ERR   556
#define ERROR_UNEXPECTED_MM_MAP_ERROR    557
#define ERROR_UNEXPECTED_MM_EXTEND_ERR   558
#define ERROR_BAD_FUNCTION_TABLE         559
#define ERROR_NO_GUID_TRANSLATION        560
#define ERROR_INVALID_LDT_SIZE           561
#define ERROR_INVALID_LDT_OFFSET         563
#define ERROR_INVALID_LDT_DESCRIPTOR     564
#define ERROR_TOO_MANY_THREADS           565
#define ERROR_THREAD_NOT_IN_PROCESS      566
#define ERROR_PAGEFILE_QUOTA_EXCEEDED    567
#define ERROR_LOGON_SERVER_CONFLICT      568
#define ERROR_SYNCHRONIZATION_REQUIRED   569
#define ERROR_NET_OPEN_FAILED            570
#define ERROR_IO_PRIVILEGE_FAILED        571
#define ERROR_CONTROL_C_EXIT             572
#define ERROR_MISSING_SYSTEMFILE         573
#define ERROR_UNHANDLED_EXCEPTION        574
#define ERROR_APP_INIT_FAILURE           575
#define ERROR_PAGEFILE_CREATE_FAILED     576
#define ERROR_INVALID_IMAGE_HASH         577
#define ERROR_NO_PAGEFILE                578
#define ERROR_ILLEGAL_FLOAT_CONTEXT      579
#define ERROR_NO_EVENT_PAIR              580
#define ERROR_DOMAIN_CTRLR_CONFIG_ERROR  581
#define ERROR_ILLEGAL_CHARACTER          582
#define ERROR_UNDEFINED_CHARACTER        583
#define ERROR_FLOPPY_VOLUME              584
#define ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT 585
#define ERROR_BACKUP_CONTROLLER          586
#define ERROR_MUTANT_LIMIT_EXCEEDED      587
#define ERROR_FS_DRIVER_REQUIRED         588
#define ERROR_CANNOT_LOAD_REGISTRY_FILE  589
#define ERROR_DEBUG_ATTACH_FAILED        590
#define ERROR_SYSTEM_PROCESS_TERMINATED  591
#define ERROR_DATA_NOT_ACCEPTED          592
#define ERROR_VDM_HARD_ERROR             593
#define ERROR_DRIVER_CANCEL_TIMEOUT      594
#define ERROR_REPLY_MESSAGE_MISMATCH     595
#define ERROR_LOST_WRITEBEHIND_DATA      596
#define ERROR_CLIENT_SERVER_PARAMETERS_INVALID 597
#define ERROR_NOT_TINY_STREAM            598
#define ERROR_STACK_OVERFLOW_READ        599
#define ERROR_CONVERT_TO_LARGE           600
#define ERROR_FOUND_OUT_OF_SCOPE         601
#define ERROR_ALLOCATE_BUCKET            602
#define ERROR_MARSHALL_OVERFLOW          603
#define ERROR_INVALID_VARIANT            604
#define ERROR_BAD_COMPRESSION_BUFFER     605
#define ERROR_AUDIT_FAILED               606
#define ERROR_TIMER_RESOLUTION_NOT_SET   607
#define ERROR_INSUFFICIENT_LOGON_INFO    608
#define ERROR_BAD_DLL_ENTRYPOINT         609
#define ERROR_BAD_SERVICE_ENTRYPOINT     610
#define ERROR_IP_ADDRESS_CONFLICT1       611
#define ERROR_IP_ADDRESS_CONFLICT2       612
#define ERROR_REGISTRY_QUOTA_LIMIT       613
#define ERROR_NO_CALLBACK_ACTIVE         614
#define ERROR_PWD_TOO_SHORT              615
#define ERROR_PWD_TOO_RECENT             616
#define ERROR_PWD_HISTORY_CONFLICT       617
#define ERROR_UNSUPPORTED_COMPRESSION    618
#define ERROR_INVALID_HW_PROFILE         619
#define ERROR_INVALID_PLUGPLAY_DEVICE_PATH 620
#define ERROR_QUOTA_LIST_INCONSISTENT    621
#define ERROR_EVALUATION_EXPIRATION      622
#define ERROR_ILLEGAL_DLL_RELOCATION     623
#define ERROR_DLL_INIT_FAILED_LOGOFF     624
#define ERROR_VALIDATE_CONTINUE          625
#define ERROR_NO_MORE_MATCHES            626
#define ERROR_RANGE_LIST_CONFLICT        627
#define ERROR_SERVER_SID_MISMATCH        628
#define ERROR_CANT_ENABLE_DENY_ONLY      629
#define ERROR_FLOAT_MULTIPLE_FAULTS      630
#define ERROR_FLOAT_MULTIPLE_TRAPS       631
#define ERROR_NOINTERFACE                632
#define ERROR_DRIVER_FAILED_SLEEP        633
#define ERROR_CORRUPT_SYSTEM_FILE        634
#define ERROR_COMMITMENT_MINIMUM         635
#define ERROR_PNP_RESTART_ENUMERATION    636
#define ERROR_SYSTEM_IMAGE_BAD_SIGNATURE 637
#define ERROR_PNP_REBOOT_REQUIRED        638
#define ERROR_INSUFFICIENT_POWER         639
#define ERROR_MULTIPLE_FAULT_VIOLATION   640
#define ERROR_SYSTEM_SHUTDOWN            641
#define ERROR_PORT_NOT_SET               642
#define ERROR_DS_VERSION_CHECK_FAILURE   643
#define ERROR_RANGE_NOT_FOUND            644
#define ERROR_NOT_SAFE_MODE_DRIVER       646
#define ERROR_FAILED_DRIVER_ENTRY        647
#define ERROR_DEVICE_ENUMERATION_ERROR   648
#define ERROR_MOUNT_POINT_NOT_RESOLVED   649
#define ERROR_INVALID_DEVICE_OBJECT_PARAMETER 650
#define ERROR_MCA_OCCURED                651
#define ERROR_DRIVER_DATABASE_ERROR      652
#define ERROR_SYSTEM_HIVE_TOO_LARGE      653
#define ERROR_DRIVER_FAILED_PRIOR_UNLOAD 654
#define ERROR_VOLSNAP_PREPARE_HIBERNATE  655
#define ERROR_HIBERNATION_FAILURE        656
#define ERROR_FILE_SYSTEM_LIMITATION     665
#define ERROR_ASSERTION_FAILURE          668
#define ERROR_ACPI_ERROR                 669
#define ERROR_WOW_ASSERTION              670
#define ERROR_PNP_BAD_MPS_TABLE          671
#define ERROR_PNP_TRANSLATION_FAILED     672
#define ERROR_PNP_IRQ_TRANSLATION_FAILED 673
#define ERROR_PNP_INVALID_ID             674
#define ERROR_WAKE_SYSTEM_DEBUGGER       675
#define ERROR_HANDLES_CLOSED             676
#define ERROR_EXTRANEOUS_INFORMATION     677
#define ERROR_RXACT_COMMIT_NECESSARY     678
#define ERROR_MEDIA_CHECK                679
#define ERROR_GUID_SUBSTITUTION_MADE     680
#define ERROR_STOPPED_ON_SYMLINK         681
#define ERROR_LONGJUMP                   682
#define ERROR_PLUGPLAY_QUERY_VETOED      683
#define ERROR_UNWIND_CONSOLIDATE         684
#define ERROR_REGISTRY_HIVE_RECOVERED    685
#define ERROR_DLL_MIGHT_BE_INSECURE      686
#define ERROR_DLL_MIGHT_BE_INCOMPATIBLE  687
#define ERROR_DBG_EXCEPTION_NOT_HANDLED  688
#define ERROR_DBG_REPLY_LATER            689
#define ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE 690
#define ERROR_DBG_TERMINATE_THREAD       691
#define ERROR_DBG_TERMINATE_PROCESS      692
#define ERROR_DBG_CONTROL_C              693
#define ERROR_DBG_PRINTEXCEPTION_C       694
#define ERROR_DBG_RIPEXCEPTION           695
#define ERROR_DBG_CONTROL_BREAK          696
#define ERROR_DBG_COMMAND_EXCEPTION      697
#define ERROR_OBJECT_NAME_EXISTS         698
#define ERROR_THREAD_WAS_SUSPENDED       699
#define ERROR_IMAGE_NOT_AT_BASE          700
#define ERROR_RXACT_STATE_CREATED        701
#define ERROR_SEGMENT_NOTIFICATION       702
#define ERROR_BAD_CURRENT_DIRECTORY      703
#define ERROR_FT_READ_RECOVERY_FROM_BACKUP 704
#define ERROR_FT_WRITE_RECOVERY          705
#define ERROR_IMAGE_MACHINE_TYPE_MISMATCH 706
#define ERROR_RECEIVE_PARTIAL            707
#define ERROR_RECEIVE_EXPEDITED          708
#define ERROR_RECEIVE_PARTIAL_EXPEDITED  709
#define ERROR_EVENT_DONE                 710
#define ERROR_EVENT_PENDING              711
#define ERROR_CHECKING_FILE_SYSTEM       712
#define ERROR_FATAL_APP_EXIT             713
#define ERROR_PREDEFINED_HANDLE          714
#define ERROR_WAS_UNLOCKED               715
#define ERROR_SERVICE_NOTIFICATION       716
#define ERROR_WAS_LOCKED                 717
#define ERROR_LOG_HARD_ERROR             718
#define ERROR_ALREADY_WIN32              719
#define ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE 720
#define ERROR_NO_YIELD_PERFORMED         721
#define ERROR_TIMER_RESUME_IGNORED       722
#define ERROR_ARBITRATION_UNHANDLED      723
#define ERROR_CARDBUS_NOT_SUPPORTED      724
#define ERROR_MP_PROCESSOR_MISMATCH      725
#define ERROR_HIBERNATED                 726
#define ERROR_RESUME_HIBERNATION         727
#define ERROR_FIRMWARE_UPDATED           728
#define ERROR_DRIVERS_LEAKING_LOCKED_PAGES 729
#define ERROR_WAKE_SYSTEM                730
#define ERROR_WAIT_1                     731
#define ERROR_WAIT_2                     732
#define ERROR_WAIT_3                     733
#define ERROR_WAIT_63                    734
#define ERROR_ABANDONED_WAIT_0           735
#define ERROR_ABANDONED_WAIT_63          736
#define ERROR_USER_APC                   737
#define ERROR_KERNEL_APC                 738
#define ERROR_ALERTED                    739
#define ERROR_ELEVATION_REQUIRED         740
#define ERROR_REPARSE                    741
#define ERROR_OPLOCK_BREAK_IN_PROGRESS   742
#define ERROR_VOLUME_MOUNTED             743
#define ERROR_RXACT_COMMITTED            744
#define ERROR_NOTIFY_CLEANUP             745
#define ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED 746
#define ERROR_PAGE_FAULT_TRANSITION      747
#define ERROR_PAGE_FAULT_DEMAND_ZERO     748
#define ERROR_PAGE_FAULT_COPY_ON_WRITE   749
#define ERROR_PAGE_FAULT_GUARD_PAGE      750
#define ERROR_PAGE_FAULT_PAGING_FILE     751
#define ERROR_CACHE_PAGE_LOCKED          752
#define ERROR_CRASH_DUMP                 753
#define ERROR_BUFFER_ALL_ZEROS           754
#define ERROR_REPARSE_OBJECT             755
#define ERROR_RESOURCE_REQUIREMENTS_CHANGED 756
#define ERROR_TRANSLATION_COMPLETE       757
#define ERROR_NOTHING_TO_TERMINATE       758
#define ERROR_PROCESS_NOT_IN_JOB         759
#define ERROR_PROCESS_IN_JOB             760
#define ERROR_VOLSNAP_HIBERNATE_READY    761
#define ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY 762
#define ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED 763
#define ERROR_INTERRUPT_STILL_CONNECTED  764
#define ERROR_WAIT_FOR_OPLOCK            765
#define ERROR_DBG_EXCEPTION_HANDLED      766
#define ERROR_DBG_CONTINUE               767
#define ERROR_CALLBACK_POP_STACK         768
#define ERROR_COMPRESSION_DISABLED       769
#define ERROR_CANTFETCHBACKWARDS         770
#define ERROR_CANTSCROLLBACKWARDS        771
#define ERROR_ROWSNOTRELEASED            772
#define ERROR_BAD_ACCESSOR_FLAGS         773
#define ERROR_ERRORS_ENCOUNTERED         774
#define ERROR_NOT_CAPABLE                775
#define ERROR_REQUEST_OUT_OF_SEQUENCE    776
#define ERROR_VERSION_PARSE_ERROR        777
#define ERROR_BADSTARTPOSITION           778
#define ERROR_MEMORY_HARDWARE            779
#define ERROR_DISK_REPAIR_DISABLED       780
#define ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE 781
#define ERROR_SYSTEM_POWERSTATE_TRANSITION 782
#define ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION 783
#define ERROR_MCA_EXCEPTION              784
#define ERROR_ACCESS_AUDIT_BY_POLICY     785
#define ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY 786
#define ERROR_ABANDON_HIBERFILE          787
#define ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED 788
#define ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR 789
#define ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR 790
#define ERROR_BAD_MCFG_TABLE             791
#define ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE 800
#define ERROR_CANNOT_GRANT_REQUESTED_OPLOCK 801
#define ERROR_CANNOT_BREAK_OPLOCK        802
#define ERROR_OPLOCK_HANDLE_CLOSED       803
#define ERROR_NO_ACE_CONDITION           804
#define ERROR_INVALID_ACE_CONDITION      805
#define ERROR_EA_ACCESS_DENIED           994
#define ERROR_OPERATION_ABORTED          995
#define ERROR_IO_INCOMPLETE              996
#define ERROR_IO_PENDING                 997
#define ERROR_NOACCESS                   998
#define ERROR_SWAPERROR                  999
#define ERROR_STACK_OVERFLOW             1001
#define ERROR_INVALID_MESSAGE            1002
#define ERROR_CAN_NOT_COMPLETE           1003
#define ERROR_INVALID_FLAGS              1004
#define ERROR_UNRECOGNIZED_VOLUME        1005
#define ERROR_FILE_INVALID               1006
#define ERROR_FULLSCREEN_MODE            1007
#define ERROR_NO_TOKEN                   1008
#define ERROR_BADDB                      1009
#define ERROR_BADKEY                     1010
#define ERROR_CANTOPEN                   1011
#define ERROR_CANTREAD                   1012
#define ERROR_CANTWRITE                  1013
#define ERROR_REGISTRY_RECOVERED         1014
#define ERROR_REGISTRY_CORRUPT           1015
#define ERROR_REGISTRY_IO_FAILED         1016
#define ERROR_NOT_REGISTRY_FILE          1017
#define ERROR_KEY_DELETED                1018
#define ERROR_NO_LOG_SPACE               1019
#define ERROR_KEY_HAS_CHILDREN           1020
#define ERROR_CHILD_MUST_BE_VOLATILE     1021
#define ERROR_NOTIFY_ENUM_DIR            1022

#define RPC_X_BAD_STUB_DATA 1783
#define RPC_S_UNKNOWN_IF 1717
#define RPC_S_PROTOCOL_ERROR 1728
#define RPC_S_UNSUPPORTED_TRANS_SYN 1730
#define RPC_S_PROCNUM_OUT_OF_RANGE 1745

#define ERROR_RESOURCE_DATA_NOT_FOUND    1812L
#define ERROR_RESOURCE_TYPE_NOT_FOUND    1813L
#define ERROR_RESOURCE_NAME_NOT_FOUND    1814L
#define ERROR_RESOURCE_LANG_NOT_FOUND    1815L


////////////////////////////////////
//                                //
//     WMI Error Codes            //
//                                //
////////////////////////////////////

#define ERROR_WMI_GUID_NOT_FOUND         4200L
#define ERROR_WMI_INSTANCE_NOT_FOUND     4201L
#define ERROR_WMI_ITEMID_NOT_FOUND       4202L
#define ERROR_WMI_TRY_AGAIN              4203L
#define ERROR_WMI_DP_NOT_FOUND           4204L
#define ERROR_WMI_UNRESOLVED_INSTANCE_REF 4205L
#define ERROR_WMI_ALREADY_ENABLED        4206L
#define ERROR_WMI_GUID_DISCONNECTED      4207L
#define ERROR_WMI_SERVER_UNAVAILABLE     4208L
#define ERROR_WMI_DP_FAILED              4209L
#define ERROR_WMI_INVALID_MOF            4210L
#define ERROR_WMI_INVALID_REGINFO        4211L
#define ERROR_WMI_ALREADY_DISABLED       4212L
#define ERROR_WMI_READ_ONLY              4213L
#define ERROR_WMI_SET_FAILURE            4214L


#define ERROR_INVALID_TRANSACTION 6700
#define ERROR_TRANSACTION_NOT_ACTIVE 6701
#define ERROR_TRANSACTION_REQUEST_NOT_VALID 6702
#define ERROR_TRANSACTION_NOT_REQUESTED 6703
#define ERROR_TRANSACTION_ALREADY_ABORTED 6704
#define ERROR_TRANSACTION_ALREADY_COMMITTED 6705

// FACILITY_SSPI

#define NTE_BAD_UID                      (0x80090001)
#define NTE_BAD_HASH                     (0x80090002)
#define NTE_BAD_KEY                      (0x80090003)
#define NTE_BAD_LEN                      (0x80090004)
#define NTE_BAD_DATA                     (0x80090005)
#define NTE_BAD_SIGNATURE                (0x80090006)
#define NTE_BAD_VER                      (0x80090007)
#define NTE_BAD_ALGID                    (0x80090008)
#define NTE_BAD_FLAGS                    (0x80090009)
#define NTE_BAD_TYPE                     (0x8009000A)
#define NTE_BAD_KEY_STATE                (0x8009000B)
#define NTE_BAD_HASH_STATE               (0x8009000C)
#define NTE_NO_KEY                       (0x8009000D)
#define NTE_NO_MEMORY                    (0x8009000E)
#define NTE_EXISTS                       (0x8009000F)
#define NTE_PERM                         (0x80090010)
#define NTE_NOT_FOUND                    (0x80090011)
#define NTE_DOUBLE_ENCRYPT               (0x80090012)
#define NTE_BAD_PROVIDER                 (0x80090013)
#define NTE_BAD_PROV_TYPE                (0x80090014)
#define NTE_BAD_PUBLIC_KEY               (0x80090015)
#define NTE_BAD_KEYSET                   (0x80090016)
#define NTE_PROV_TYPE_NOT_DEF            (0x80090017)
#define NTE_PROV_TYPE_ENTRY_BAD          (0x80090018)
#define NTE_KEYSET_NOT_DEF               (0x80090019)
#define NTE_KEYSET_ENTRY_BAD             (0x8009001A)
#define NTE_PROV_TYPE_NO_MATCH           (0x8009001B)
#define NTE_SIGNATURE_FILE_BAD           (0x8009001C)
#define NTE_PROVIDER_DLL_FAIL            (0x8009001D)
#define NTE_PROV_DLL_NOT_FOUND           (0x8009001E)
#define NTE_BAD_KEYSET_PARAM             (0x8009001F)
#define NTE_FAIL                         (0x80090020)
#define NTE_SYS_ERR                      (0x80090021)
#define NTE_SILENT_CONTEXT               (0x80090022)
#define NTE_TOKEN_KEYSET_STORAGE_FULL    (0x80090023)
#define NTE_TEMPORARY_PROFILE            (0x80090024)
#define NTE_FIXEDPARAMETER               (0x80090025)
#define NTE_INVALID_HANDLE               (0x80090026)
#define NTE_INVALID_PARAMETER            (0x80090027)
#define NTE_BUFFER_TOO_SMALL             (0x80090028)
#define NTE_NOT_SUPPORTED                (0x80090029)
#define NTE_NO_MORE_ITEMS                (0x8009002A)
#define NTE_BUFFERS_OVERLAP              (0x8009002B)
#define NTE_DECRYPTION_FAILURE           (0x8009002C)
#define NTE_INTERNAL_ERROR               (0x8009002D)
#define NTE_UI_REQUIRED                  (0x8009002E)
#define NTE_HMAC_NOT_SUPPORTED           (0x8009002F)

// Autres
#define E_UNEXPECTED                     (0x8000FFFFL)

// RPC/COM Erros
#define RPC_E_INVALID_OBJREF       0x8001011D
#define RPC_E_ACCESS_DENIED        0x8001011B
