enum ERROR_CODES : int32 {
ERROR_SUCCESS = 0,
ERROR_INVALID_FUNCTION,
ERROR_FILE_NOT_FOUND,
ERROR_PATH_NOT_FOUND,
ERROR_TOO_MANY_OPEN_FILES,
ERROR_ACCESS_DENIED,
ERROR_INVALID_HANDLE,
ERROR_ARENA_TRASHED,
ERROR_NOT_ENOUGH_MEMORY,
ERROR_INVALID_BLOCK,
ERROR_BAD_ENVIRONMENT,
ERROR_BAD_FORMAT,
ERROR_INVALID_ACCESS,
ERROR_INVALID_DATA,
ERROR_OUTOFMEMORY,
ERROR_INVALID_DRIVE,
ERROR_CURRENT_DIRECTORY,
ERROR_NOT_SAME_DEVICE,
ERROR_NO_MORE_FILES,
ERROR_WRITE_PROTECT,
ERROR_BAD_UNIT,
ERROR_NOT_READY,
ERROR_BAD_COMMAND,
ERROR_BAD_CRC,
ERROR_BAD_LENGTH,
ERROR_SEEK,
ERROR_NOT_DOS_DISK,
ERROR_SECTOR_NOT_FOUND,
ERROR_OUT_OF_PAPER,
ERROR_WRITE_FAULT,
ERROR_READ_FAULT,
ERROR_GEN_FAILURE,
ERROR_SHARING_VIOLATION,
ERROR_LOCK_VIOLATION,
ERROR_WRONG_DISK,
ERROR_SHARING_BUFFER_EXCEEDED = 36,
ERROR_HANDLE_EOF = 38,
ERROR_HANDLE_DISK_FULL,
ERROR_NOT_SUPPORTED = 50,
ERROR_REM_NOT_LIST,
ERROR_DUP_NAME,
ERROR_BAD_NETPATH,
ERROR_NETWORK_BUSY,
ERROR_DEV_NOT_EXIST,
ERROR_TOO_MANY_CMDS,
ERROR_ADAP_HDW_ERR
ERROR_BAD_NET_RESP,
ERROR_UNEXP_NET_ERR,
ERROR_BAD_REM_ADAP,
ERROR_PRINTQ_FULL,
ERROR_NO_SPOOL_SPACE,
ERROR_PRINT_CANCELLED,
ERROR_NETNAME_DELETED,
ERROR_NETWORK_ACCESS_DENIED,
ERROR_BAD_DEV_TYPE,
ERROR_BAD_NET_NAME,
ERROR_TOO_MANY_NAMES,
ERROR_TOO_MANY_SESS,
ERROR_SHARING_PAUSED,
ERROR_REQ_NOT_ACCEP,
ERROR_REDIT_PAUSED,
ERROR_FILE_EXISTS = 80,
ERROR_CANNOT_MAKE = 82,
ERROR_FAIL_I21,
ERROR_OUT_OF_STRUCTURES,
ERROR_ALREADY_ASSIGNED,
ERROR_INVALID_PARAMETER,
ERROR_NET_WRITE_FAULT,
ERROR_NO_PROC_SLOTS,
ERROR_TOO_MANY_SEMAPHORES = 100,
ERROR_EXCL_SEM_ALREADY_OWNED,
ERROR_SEM_IS_SET,
ERROR_TOO_MANY_SEM_REQUESTS,
ERROR_INVALID_INTERUPT_TIME,
ERROR_SEM_OWNER_DIED,
ERROR_SEM_USER_LIMIT,
ERROR_DISK_CHANGE,
ERROR_DRIVE_LOCKED,
ERROR_BROKEN_PIPE,
ERROR_OPEN_FAILED,
ERROR_BUFFER_OVERFLOW,
ERROR_DISK_FULL,
ERROR_NO_MORE_SEARCH_HANDLES,
ERROR_INVALID_TARGET_HANDLE,
ERROR_INVALID_CATEGORY = 117,
ERROR_INVALID_VERIFY_SWITCH,
ERROR_BAD_DRIVER_LEVEL,
ERROR_CALL_NOT_IMPLEMENTED,
ERROR_SEM_TIMEOUT,
ERROR_INSUFFICIENT_BUFFER,
ERROR_INVALID_NAME,
ERROR_INVALID_LEVEL,
ERROR_NO_VOLUME_LABEL,
ERROR_MOD_NOT_FOUND,
ERROR_PROC_NOT_FOUND,
ERROR_WAIT_NOT_CHILDREN,
ERROR_CHILD_NOT_COMPLETE,
ERROR_DIRECT_ACCESS_HANDLE,
ERROR_NEGATIVE_SEEK,
ERROR_SEEK_ON_DEVICE,
ERROR_IS_JOIN_TARGET,
ERROR_IS_JOINED,
ERROR_IS_SUBSTED,
ERROR_NOT_JOINED,
ERROR_NOT_SUBSTED,
ERROR_JOIN_TO_JOIN,
ERROR_SUBST_TO_SUBST,
ERROR_JOIN_TO_SUBST,
ERROR_SUBST_TO_JOIN,
ERROR_BUSY_DRIVE,
ERROR_SAME_DRIVE,
ERROR_DIR_NOT_ROOT,
ERROR_DIR_NOT_EMPTY,
ERROR_IS_SUBST_PATH,
ERROR_IS_JOIN_PATH,
ERROR_PATH_BUSY,
ERROR_IS_SUBST_TARGET,
ERROR_SYSTEM_TRACE,
ERROR_INVALID_EVENT_COUNT,
ERROR_TOO_MANY_MUXWAITERS,
ERROR_INVALID_LIST_FORMAT,
ERROR_LABEL_TOO_LONG,
ERROR_TOO_MANY_TCBS,
ERROR_SIGNAL_REFUSED,
ERROR_ERROR_DISCARDED,
ERROR_NOT_LOCKED,
ERROR_BAD_THREADID_ADDR,
ERROR_BAD_ARGUMENTS,
ERROR_BAD_PATHNAME,
ERROR_SIGNAL_PENDING,
ERROR_MAX_THRDS_REACHED = 164,
ERROR_LOCK_FAILED = 167,
ERROR_BUSY = 170,
ERROR_DEVICE_SUPPORT_IN_PROGRESS,
ERROR_CANCEL_VIOLATION = 173,
ERROR_ATOMIC,lOCKS_NOT_SUPPORTED,
ERROR_INVALID_SEGMENT_NUMBER = 180,
ERROR_INVALID_ORDINAL = 182,
ERROR_ALREADY_EXISTS,
ERROR_INVALID_FLAG_NUMBER = 186,
ERROR_SEM_NOT_FOUND,
ERROR_INVALID_STARTING_CODESEG,
ERROR_INVALID_STACK_SEG,
ERROR_INVALID_MODULETYPE,
ERROR_INVALID_EXE_SIGNATURE,
ERROR_EXE_MARKED_INVALID,
ERROR_BAD_EXE_FORMAT,
ERROR_ITERATED_DATA_EXCEEDS_64K,
ERROR_INVALID_MINALLOCSIZE,
ERROR_DYNLINK_FROM_INVALID_RING,
ERROR_IOPL_NOT_ENABLED,
ERROR_INVALID_SEGDPL,AUTODATASEG_EXCEEDS_64K,
ERROR_RING2SEG_MUST_BE_MOVABLE,
ERROR_RELOC_CHAIN_XEEDS_SEGLIM,
ERROR_INFLOOP_IN_RELOC_CHAIN,
ERROR_ENVVAR_NOT_FOUND,
ERROR_NO_SIGNAL_SENT,
ERROR_FILENAME_EXCED_RANGE,
ERROR_RING2_STACK_IN_USE,
ERROR_META_EXPANSION_TOO_LONG,
ERROR_INVALID_SIGNAL_NUMBER,
ERROR_THREAD_1_INACTIVE,
ERROR_LOCKED = 212,
ERROR_TOO_MANY_MODULES = 214,
ERROR_NESTING_NOT_ALLOWED,
ERROR_EXE_MACHINE_TYPE_MISSMATCH,
ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY,
ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY,
ERROR_FILE_CHECKED_OUT = 220,
ERROR_CHECKOUT_REQUIRED,
ERROR_BAD_FILE_TYPE,
ERROR_FILE_TOO_LARGE,
ERROR_FORMS_AUTH_REQUIRED,
ERROR_VIRUS_INFECTED,
ERROR_VIRUS_DELETED,
ERROR_PIPE_LOCAL = 229,
ERROR_BAD_PIPE,
ERROR_PIPE_BUSY,
ERROR_NO_DATA,
ERROR_PIPE_NOT_CONNECTED,
ERROR_MORE_DATA,
ERROR_VC_DISCONNECTED = 240,
ERROR_INVALID_EA_NAME = 254,
ERROR_EA_LIST_INCONSISTENT,
WAIT_TIMEOUT = 258,
ERROR_NO_MORE_ITEMS,
ERROR_CANNOT_COPY = 266,
ERROR_DIRECTORY,
ERROR_EAS_DIDNT_FIT = 275,
ERROR_EA_FILE_CORRUPT,
ERROR_EA_TABLE_FULL,
ERROR_INVALID_EA_HANDLE,
ERROR_EAS_NOT_SUPPORTED = 282,
ERROR_TOO_MANY_POSTS = 298,
ERROR_PARTIAL_COPY,
ERROR_OPLOCK_NOT_GRANTED,
ERROR_INVALID_OPLOCK_PROTOCOL,
ERROR_DISK_TOO_FRAGMENTED,
ERROR_DELETE_PENDING,
ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING,
ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME,
ERROR_SECURITY_STREAM_IS_INCONSISTENT,
ERROR_INVALID_LOCK_RANGE,
ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT,
ERROR_NOTIFICATION_GUID_ALREADY_DEFINED,
ERROR_INVALID_EXCEPTION_HANDLER,
ERROR_DUPLICATE_PRIVILEGES,
ERROR_NO_RANGES_PROCESSED,
ERROR_NOT_ALLOWED_ON_SYSTEM_FILE,
ERROR_DISK_RESOURCES_EXHAUSTED,
ERROR_INVALID_TOKEN,
ERROR_DEVICE_FEATURE_NOT_SUPPORTED,
ERROR_MR_MID_NOT_FOUND,
ERROR_SCOPE_NOT_FOUND,
ERROR_UNDEFINED_SCOPE,
ERROR_INVALID_CAP,
ERROR_DEVICE_UNREACHABLE,
ERROR_DEVICE_NO_RESOURCES,
ERROR_DATA_CHECKSUM_ERROR,
ERROR_INTERMIXED_KERNEL_EA_OPERATION,
ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED = 326,
ERROR_OFFSET_ALIGNMENT_VIOLATION,
ERROR_INVALID_FIELD_IN_PARAMETER_LIST,
ERROR_OPERATION_IN_PROGRESS,
ERROR_BAD_DEVICE_PATH,
ERROR_TOO_MANY_DESCRIPTORS,
ERROR_SCRUB_DATA_DISABLED,
ERROR_NOT_REDUNDANT_STORAGE,
ERROR_RESIDENT_FILE_NOT_SUPPORTED,
ERROR_COMPRESSED_FILE_NOT_SUPPORTED,
ERROR_DIRECTORY_NOT_SUPPORTED,
ERROR_NOT_READ_FROM_COPY,
ERROR_FAIL_NOACTION_REBOOT = 350,
ERROR_FAIL_SUTDOWN,
ERROR_FAIL_RESTART,
ERROR_MAX_sESSIONS_REACHED,
ERROR_THREAD_MODE_ALREADY_BACKGROUND = 400,
ERROR_THREAD_MODE_NOT_BACKGROUND,
ERROR_PROCESS_MODE_ALREADY_BACKGROUND,
ERROR_PROCESS_MODE_NOT_BACKGROUND,
ERROR_INVALID_ADDRESS = 487
}