Explicatif d'erreurs : explicitelasterror() <= getlasterror

Contenu du snippet

Cette fonction donne l'explication de la derniere erreur levée
récupérée avec GetLastError

Elle est permet de l'afficher comme on veut...

(rq: vous pouvez utilisez la classe CString mais pensez bien à convertir correctement les entiers...)

Une fonction pratique, un poil brutale, générée par une macro a partir des MSDN

Rq; il faudrait que les case soient formels...

Rq2: cette fonction est à ajouter à la classe BVisuel déjà publiée.
(mise à jour dans un proche avenir...)

Magicalement
Nono.

Source / Exemple :


BString BVisuel::expliciteLastError()
{
/// --------------------------------------------------------------------------
/// ---------------- BVisuel::expliciteLastError() -> BString ----------------
/// --------------------------------------------------------------------------
/// -----  Objectif	: donner l'explication de la derniere erreur levée (GetLastError)
/// -----  Auteur(s)	: Magic_Nono 02/07/04
/// -----  PreCond	: /
/// -----  PostCond	: /
/// -----  Etat		: 1			(-1<0<1<2)
/// --------------------------------------------------------------------------
/// -----  retour (BString)	: cf.obj
/// --------------------------------------------------------------------------
/// -----  Var Internes à la fonction (2)	: erreur ,rep
	long erreur=GetLastError();
	//	if(erreur==0)		return "";
	BString rep="\n\nerreur ";
	rep+=erreur;
	rep+=" :\t";
	switch(erreur)
	{
	case 0:
		rep+=" OK - no error refered in the GetLastError function - ERROR_SUCCESS";
		break;
	case 1:
		rep+=" Incorrect function.  ERROR_INVALID_FUNCTION ";
		break;
	case 2:
		rep+=" The system cannot find the file specified.  ERROR_FILE_NOT_FOUND ";
		break;
	case 3:
		rep+=" The system cannot find the path specified.  ERROR_PATH_NOT_FOUND ";
		break;
	case 4:
		rep+=" The system cannot open the file.  ERROR_TOO_MANY_OPEN_FILES ";
		break;
	case 5:
		rep+=" Access is denied.  ERROR_ACCESS_DENIED ";
		break;
	case 6:
		rep+=" The handle is invalid.  ERROR_INVALID_HANDLE ";
		break;
	case 7:
		rep+=" The storage control blocks were destroyed.  ERROR_ARENA_TRASHED ";
		break;
	case 8:
		rep+=" Not enough storage is available to process this command.  ERROR_NOT_ENOUGH_MEMORY ";
		break;
	case 9:
		rep+=" The storage control block address is invalid.  ERROR_INVALID_BLOCK ";
		break;
	case 10:
		rep+=" The environment is incorrect.  ERROR_BAD_ENVIRONMENT ";
		break;
	case 11:
		rep+=" An attempt was made to load a program with an incorrect format.  ERROR_BAD_FORMAT ";
		break;
	case 12:
		rep+=" The access code is invalid.  ERROR_INVALID_ACCESS ";
		break;
	case 13:
		rep+=" The data is invalid.  ERROR_INVALID_DATA ";
		break;
	case 14:
		rep+=" Not enough storage is available to complete this operation.  ERROR_OUTOFMEMORY ";
		break;
	case 15:
		rep+=" The system cannot find the drive specified.  ERROR_INVALID_DRIVE ";
		break;
	case 16:
		rep+=" The directory cannot be removed.  ERROR_CURRENT_DIRECTORY ";
		break;
	case 17:
		rep+=" The system cannot move the file to a different disk drive.  ERROR_NOT_SAME_DEVICE ";
		break;
	case 18:
		rep+=" There are no more files.  ERROR_NO_MORE_FILES ";
		break;
	case 19:
		rep+=" The media is write protected.  ERROR_WRITE_PROTECT ";
		break;
	case 20:
		rep+=" The system cannot find the device specified.  ERROR_BAD_UNIT ";
		break;
	case 21:
		rep+=" The device is not ready.  ERROR_NOT_READY ";
		break;
	case 22:
		rep+=" The device does not recognize the command.  ERROR_BAD_COMMAND ";
		break;
	case 23:
		rep+=" Data error (cyclic redundancy check).  ERROR_CRC ";
		break;
	case 24:
		rep+=" The program issued a command but the command length is incorrect.  ERROR_BAD_LENGTH ";
		break;
	case 25:
		rep+=" The drive cannot locate a specific area or track on the disk.  ERROR_SEEK ";
		break;
	case 26:
		rep+=" The specified disk or diskette cannot be accessed.  ERROR_NOT_DOS_DISK ";
		break;
	case 27:
		rep+=" The drive cannot find the sector requested.  ERROR_SECTOR_NOT_FOUND ";
		break;
	case 28:
		rep+=" The printer is out of paper.  ERROR_OUT_OF_PAPER ";
		break;
	case 29:
		rep+=" The system cannot write to the specified device.  ERROR_WRITE_FAULT ";
		break;
	case 30:
		rep+=" The system cannot read from the specified device.  ERROR_READ_FAULT ";
		break;
	case 31:
		rep+=" A device attached to the system is not functioning.  ERROR_GEN_FAILURE ";
		break;
	case 32:
		rep+=" The process cannot access the file because it is being used by another process.  ERROR_SHARING_VIOLATION ";
		break;
	case 33:
		rep+=" The process cannot access the file because another process has locked a portion of the file.  ERROR_LOCK_VIOLATION ";
		break;
	case 34:
		rep+=" The wrong diskette is in the drive. Insert %2 (Volume Serial Number: %3) into drive %1.  ERROR_WRONG_DISK ";
		break;
	case 36:
		rep+=" Too many files opened for sharing.  ERROR_SHARING_BUFFER_EXCEEDED ";
		break;
	case 38:
		rep+=" Reached the end of the file.  ERROR_HANDLE_EOF ";
		break;
	case 39:
		rep+=" The disk is full.  ERROR_HANDLE_DISK_FULL ";
		break;
	case 50:
		rep+=" The network request is not supported.  ERROR_NOT_SUPPORTED ";
		break;
	case 51:
		rep+=" The remote computer is not available.  ERROR_REM_NOT_LIST ";
		break;
	case 52:
		rep+=" A duplicate name exists on the network.  ERROR_DUP_NAME ";
		break;
	case 53:
		rep+=" The network path was not found.  ERROR_BAD_NETPATH ";
		break;
	case 54:
		rep+=" The network is busy.  ERROR_NETWORK_BUSY ";
		break;
	case 55:
		rep+=" The specified network resource or device is no longer available.  ERROR_DEV_NOT_EXIST ";
		break;
	case 56:
		rep+=" The network BIOS command limit has been reached.  ERROR_TOO_MANY_CMDS ";
		break;
	case 57:
		rep+=" A network adapter hardware error occurred.  ERROR_ADAP_HDW_ERR ";
		break;
	case 58:
		rep+=" The specified server cannot perform the requested operation.  ERROR_BAD_NET_RESP ";
		break;
	case 59:
		rep+=" An unexpected network error occurred.  ERROR_UNEXP_NET_ERR ";
		break;
	case 60:
		rep+=" The remote adapter is not compatible.  ERROR_BAD_REM_ADAP ";
		break;
	case 61:
		rep+=" The printer queue is full.  ERROR_PRINTQ_FULL ";
		break;
	case 62:
		rep+=" Space to store the file waiting to be printed is not available on the server.  ERROR_NO_SPOOL_SPACE ";
		break;
	case 63:
		rep+=" Your file waiting to be printed was deleted.  ERROR_PRINT_CANCELLED ";
		break;
	case 64:
		rep+=" The specified network name is no longer available.  ERROR_NETNAME_DELETED ";
		break;
	case 65:
		rep+=" Network access is denied.  ERROR_NETWORK_ACCESS_DENIED ";
		break;
	case 66:
		rep+=" The network resource type is not correct.  ERROR_BAD_DEV_TYPE ";
		break;
	case 67:
		rep+=" The network name cannot be found.  ERROR_BAD_NET_NAME ";
		break;
	case 68:
		rep+=" The name limit for the local computer network adapter card was exceeded.  ERROR_TOO_MANY_NAMES ";
		break;
	case 69:
		rep+=" The network BIOS session limit was exceeded.  ERROR_TOO_MANY_SESS ";
		break;
	case 70:
		rep+=" The remote server has been paused or is in the process of being started.  ERROR_SHARING_PAUSED ";
		break;
	case 71:
		rep+=" No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.  ERROR_REQ_NOT_ACCEP ";
		break;
	case 72:
		rep+=" The specified printer or disk device has been paused.  ERROR_REDIR_PAUSED ";
		break;
	case 80:
		rep+=" The file exists.  ERROR_FILE_EXISTS ";
		break;
	case 82:
		rep+=" The directory or file cannot be created.  ERROR_CANNOT_MAKE ";
		break;
	case 83:
		rep+=" Fail on INT 24.  ERROR_FAIL_I24 ";
		break;
	case 84:
		rep+=" Storage to process this request is not available.  ERROR_OUT_OF_STRUCTURES ";
		break;
	case 85:
		rep+=" The local device name is already in use.  ERROR_ALREADY_ASSIGNED ";
		break;
	case 86:
		rep+=" The specified network password is not correct.  ERROR_INVALID_PASSWORD ";
		break;
	case 87:
		rep+=" The parameter is incorrect.  ERROR_INVALID_PARAMETER ";
		break;
	case 88:
		rep+=" A write fault occurred on the network.  ERROR_NET_WRITE_FAULT ";
		break;
	case 89:
		rep+=" The system cannot start another process at this time.  ERROR_NO_PROC_SLOTS ";
		break;
	case 100:
		rep+=" Cannot create another system semaphore.  ERROR_TOO_MANY_SEMAPHORES ";
		break;
	case 101:
		rep+=" The exclusive semaphore is owned by another process.  ERROR_EXCL_SEM_ALREADY_OWNED ";
		break;
	case 102:
		rep+=" The semaphore is set and cannot be closed.  ERROR_SEM_IS_SET ";
		break;
	case 103:
		rep+=" The semaphore cannot be set again.  ERROR_TOO_MANY_SEM_REQUESTS ";
		break;
	case 104:
		rep+=" Cannot request exclusive semaphores at interrupt time.  ERROR_INVALID_AT_INTERRUPT_TIME ";
		break;
	case 105:
		rep+=" The previous ownership of this semaphore has ended.  ERROR_SEM_OWNER_DIED ";
		break;
	case 106:
		rep+=" Insert the diskette for drive %1.  ERROR_SEM_USER_LIMIT ";
		break;
	case 107:
		rep+=" The program stopped because an alternate diskette was not inserted.  ERROR_DISK_CHANGE ";
		break;
	case 108:
		rep+=" The disk is in use or locked by another process.  ERROR_DRIVE_LOCKED ";
		break;
	case 109:
		rep+=" The pipe has been ended.  ERROR_BROKEN_PIPE ";
		break;
	case 110:
		rep+=" The system cannot open the device or file specified.  ERROR_OPEN_FAILED ";
		break;
	case 111:
		rep+=" The file name is too long.  ERROR_BUFFER_OVERFLOW ";
		break;
	case 112:
		rep+=" There is not enough space on the disk.  ERROR_DISK_FULL ";
		break;
	case 113:
		rep+=" No more internal file identifiers available.  ERROR_NO_MORE_SEARCH_HANDLES ";
		break;
	case 114:
		rep+=" The target internal file identifier is incorrect.  ERROR_INVALID_TARGET_HANDLE ";
		break;
	case 117:
		rep+=" The IOCTL call made by the application program is not correct.  ERROR_INVALID_CATEGORY ";
		break;
	case 118:
		rep+=" The verify-on-write switch parameter value is not correct.  ERROR_INVALID_VERIFY_SWITCH ";
		break;
	case 119:
		rep+=" The system does not support the command requested.  ERROR_BAD_DRIVER_LEVEL ";
		break;
	case 120:
		rep+=" This function is not supported on this system.  ERROR_CALL_NOT_IMPLEMENTED ";
		break;
	case 121:
		rep+=" The semaphore timeout period has expired.  ERROR_SEM_TIMEOUT ";
		break;
	case 122:
		rep+=" The data area passed to a system call is too small.  ERROR_INSUFFICIENT_BUFFER ";
		break;
	case 123:
		rep+=" The filename, directory name, or volume label syntax is incorrect.  ERROR_INVALID_NAME ";
		break;
	case 124:
		rep+=" The system call level is not correct.  ERROR_INVALID_LEVEL ";
		break;
	case 125:
		rep+=" The disk has no volume label.  ERROR_NO_VOLUME_LABEL ";
		break;
	case 126:
		rep+=" The specified module could not be found.  ERROR_MOD_NOT_FOUND ";
		break;
	case 127:
		rep+=" The specified procedure could not be found.  ERROR_PROC_NOT_FOUND ";
		break;
	case 128:
		rep+=" There are no child processes to wait for.  ERROR_WAIT_NO_CHILDREN ";
		break;
	case 129:
		rep+=" The %1 application cannot be run in Win32 mode.  ERROR_CHILD_NOT_COMPLETE ";
		break;
	case 130:
		rep+=" Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.  ERROR_DIRECT_ACCESS_HANDLE ";
		break;
	case 131:
		rep+=" An attempt was made to move the file pointer before the beginning of the file.  ERROR_NEGATIVE_SEEK ";
		break;
	case 132:
		rep+=" The file pointer cannot be set on the specified device or file.  ERROR_SEEK_ON_DEVICE ";
		break;
	case 133:
		rep+=" A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.  ERROR_IS_JOIN_TARGET ";
		break;
	case 134:
		rep+=" An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.  ERROR_IS_JOINED ";
		break;
	case 135:
		rep+=" An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.  ERROR_IS_SUBSTED ";
		break;
	case 136:
		rep+=" The system tried to delete the JOIN of a drive that is not joined.  ERROR_NOT_JOINED ";
		break;
	case 137:
		rep+=" The system tried to delete the substitution of a drive that is not substituted.  ERROR_NOT_SUBSTED ";
		break;
	case 138:
		rep+=" The system tried to join a drive to a directory on a joined drive.  ERROR_JOIN_TO_JOIN ";
		break;
	case 139:
		rep+=" The system tried to substitute a drive to a directory on a substituted drive.  ERROR_SUBST_TO_SUBST ";
		break;
	case 140:
		rep+=" The system tried to join a drive to a directory on a substituted drive.  ERROR_JOIN_TO_SUBST ";
		break;
	case 141:
		rep+=" The system tried to SUBST a drive to a directory on a joined drive.  ERROR_SUBST_TO_JOIN ";
		break;
	case 142:
		rep+=" The system cannot perform a JOIN or SUBST at this time.  ERROR_BUSY_DRIVE ";
		break;
	case 143:
		rep+=" The system cannot join or substitute a drive to or for a directory on the same drive.  ERROR_SAME_DRIVE ";
		break;
	case 144:
		rep+=" The directory is not a subdirectory of the root directory.  ERROR_DIR_NOT_ROOT ";
		break;
	case 145:
		rep+=" The directory is not empty.  ERROR_DIR_NOT_EMPTY ";
		break;
	case 146:
		rep+=" The path specified is being used in a substitute.  ERROR_IS_SUBST_PATH ";
		break;
	case 147:
		rep+=" Not enough resources are available to process this command.  ERROR_IS_JOIN_PATH ";
		break;
	case 148:
		rep+=" The path specified cannot be used at this time.  ERROR_PATH_BUSY ";
		break;
	case 149:
		rep+=" An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute.  ERROR_IS_SUBST_TARGET ";
		break;
	case 150:
		rep+=" System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.  ERROR_SYSTEM_TRACE ";
		break;
	case 151:
		rep+=" The number of specified semaphore events for DosMuxSemWait is not correct.  ERROR_INVALID_EVENT_COUNT ";
		break;
	case 152:
		rep+=" DosMuxSemWait did not execute; too many semaphores are already set.  ERROR_TOO_MANY_MUXWAITERS ";
		break;
	case 153:
		rep+=" The DosMuxSemWait list is not correct.  ERROR_INVALID_LIST_FORMAT ";
		break;
	case 154:
		rep+=" The volume label you entered exceeds the label character limit of the target file system.  ERROR_LABEL_TOO_LONG ";
		break;
	case 155:
		rep+=" Cannot create another thread.  ERROR_TOO_MANY_TCBS ";
		break;
	case 156:
		rep+=" The recipient process has refused the signal.  ERROR_SIGNAL_REFUSED ";
		break;
	case 157:
		rep+=" The segment is already discarded and cannot be locked.  ERROR_DISCARDED ";
		break;
	case 158:
		rep+=" The segment is already unlocked.  ERROR_NOT_LOCKED ";
		break;
	case 159:
		rep+=" The address for the thread ID is not correct.  ERROR_BAD_THREADID_ADDR ";
		break;
	case 160:
		rep+=" The argument string passed to DosExecPgm is not correct.  ERROR_BAD_ARGUMENTS ";
		break;
	case 161:
		rep+=" The specified path is invalid.  ERROR_BAD_PATHNAME ";
		break;
	case 162:
		rep+=" A signal is already pending.  ERROR_SIGNAL_PENDING ";
		break;
	case 164:
		rep+=" No more threads can be created in the system.  ERROR_MAX_THRDS_REACHED ";
		break;
	case 167:
		rep+=" Unable to lock a region of a file.  ERROR_LOCK_FAILED ";
		break;
	case 170:
		rep+=" The requested resource is in use.  ERROR_BUSY ";
		break;
	case 173:
		rep+=" A lock request was not outstanding for the supplied cancel region.  ERROR_CANCEL_VIOLATION ";
		break;
	case 174:
		rep+=" The file system does not support atomic changes to the lock type.  ERROR_ATOMIC_LOCKS_NOT_SUPPORTED ";
		break;
	case 180:
		rep+=" The system detected a segment number that was not correct.  ERROR_INVALID_SEGMENT_NUMBER ";
		break;
	case 182:
		rep+=" The operating system cannot run %1.  ERROR_INVALID_ORDINAL ";
		break;
	case 183:
		rep+=" Cannot create a file when that file already exists.  ERROR_ALREADY_EXISTS ";
		break;
	case 186:
		rep+=" The flag passed is not correct.  ERROR_INVALID_FLAG_NUMBER ";
		break;
	case 187:
		rep+=" The specified system semaphore name was not found.  ERROR_SEM_NOT_FOUND ";
		break;
	case 188:
		rep+=" The operating system cannot run %1.  ERROR_INVALID_STARTING_CODESEG ";
		break;
	case 189:
		rep+=" The operating system cannot run %1.  ERROR_INVALID_STACKSEG ";
		break;
	case 190:
		rep+=" The operating system cannot run %1.  ERROR_INVALID_MODULETYPE ";
		break;
	case 191:
		rep+=" Cannot run %1 in Win32 mode.  ERROR_INVALID_EXE_SIGNATURE ";
		break;
	case 192:
		rep+=" The operating system cannot run %1.  ERROR_EXE_MARKED_INVALID ";
		break;
	case 193:
		rep+=" is not a valid Win32 application.  ERROR_BAD_EXE_FORMAT ";
		break;
	case 194:
		rep+=" The operating system cannot run %1.  ERROR_ITERATED_DATA_EXCEEDS_64k ";
		break;
	case 195:
		rep+=" The operating system cannot run %1.  ERROR_INVALID_MINALLOCSIZE ";
		break;
	case 196:
		rep+=" The operating system cannot run this application program.  ERROR_DYNLINK_FROM_INVALID_RING ";
		break;
	case 197:
		rep+=" The operating system is not presently configured to run this application.  ERROR_IOPL_NOT_ENABLED ";
		break;
	case 198:
		rep+=" The operating system cannot run %1.  ERROR_INVALID_SEGDPL ";
		break;
	case 199:
		rep+=" The operating system cannot run this application program.  ERROR_AUTODATASEG_EXCEEDS_64k ";
		break;
	case 200:
		rep+=" The code segment cannot be greater than or equal to 64K.  ERROR_RING2SEG_MUST_BE_MOVABLE ";
		break;
	case 201:
		rep+=" The operating system cannot run %1.  ERROR_RELOC_CHAIN_XEEDS_SEGLIM ";
		break;
	case 202:
		rep+=" The operating system cannot run %1.  ERROR_INFLOOP_IN_RELOC_CHAIN ";
		break;
	case 203:
		rep+=" The system could not find the environment option that was entered.  ERROR_ENVVAR_NOT_FOUND ";
		break;
	case 205:
		rep+=" No process in the command subtree has a signal handler.  ERROR_NO_SIGNAL_SENT ";
		break;
	case 206:
		rep+=" The filename or extension is too long.  ERROR_FILENAME_EXCED_RANGE ";
		break;
	case 207:
		rep+=" The ring 2 stack is in use.  ERROR_RING2_STACK_IN_USE ";
		break;
	case 208:
		rep+=" The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified.  ERROR_META_EXPANSION_TOO_LONG ";
		break;
	case 209:
		rep+=" The signal being posted is not correct.  ERROR_INVALID_SIGNAL_NUMBER ";
		break;
	case 210:
		rep+=" The signal handler cannot be set.  ERROR_THREAD_1_INACTIVE ";
		break;
	case 212:
		rep+=" The segment is locked and cannot be reallocated.  ERROR_LOCKED ";
		break;
	case 214:
		rep+=" Too many dynamic-link modules are attached to this program or dynamic-link module.  ERROR_TOO_MANY_MODULES ";
		break;
	case 215:
		rep+=" Can't nest calls to LoadModule.  ERROR_NESTING_NOT_ALLOWED ";
		break;
	case 216:
		rep+=" The image file %1 is valid, but is for a machine type other than the current machine.  ERROR_EXE_MACHINE_TYPE_MISMATCH ";
		break;
	case 230:
		rep+=" The pipe state is invalid.  ERROR_BAD_PIPE ";
		break;
	case 231:
		rep+=" All pipe instances are busy.  ERROR_PIPE_BUSY ";
		break;
	case 232:
		rep+=" The pipe is being closed.  ERROR_NO_DATA ";
		break;
	case 233:
		rep+=" No process is on the other end of the pipe.  ERROR_PIPE_NOT_CONNECTED ";
		break;
	case 234:
		rep+=" More data is available.  ERROR_MORE_DATA ";
		break;
	case 240:
		rep+=" The session was canceled.  ERROR_VC_DISCONNECTED ";
		break;
	case 254:
		rep+=" The specified extended attribute name was invalid.  ERROR_INVALID_EA_NAME ";
		break;
	case 255:
		rep+=" The extended attributes are inconsistent.  ERROR_EA_LIST_INCONSISTENT ";
		break;
	case 259:
		rep+=" No more data is available.  ERROR_NO_MORE_ITEMS ";
		break;
	case 266:
		rep+=" The copy functions cannot be used.  ERROR_CANNOT_COPY ";
		break;
	case 267:
		rep+=" The directory name is invalid.  ERROR_DIRECTORY ";
		break;
	case 275:
		rep+=" The extended attributes did not fit in the buffer.  ERROR_EAS_DIDNT_FIT ";
		break;
	case 276:
		rep+=" The extended attribute file on the mounted file system is corrupt.  ERROR_EA_FILE_CORRUPT ";
		break;
	case 277:
		rep+=" The extended attribute table file is full.  ERROR_EA_TABLE_FULL ";
		break;
	case 278:
		rep+=" The specified extended attribute handle is invalid.  ERROR_INVALID_EA_HANDLE ";
		break;
	case 282:
		rep+=" The mounted file system does not support extended attributes.  ERROR_EAS_NOT_SUPPORTED ";
		break;
	case 288:
		rep+=" Attempt to release mutex not owned by caller.  ERROR_NOT_OWNER ";
		break;
	case 298:
		rep+=" Too many posts were made to a semaphore.  ERROR_TOO_MANY_POSTS ";
		break;
	case 299:
		rep+=" Only part of a ReadProcessMemoty or WriteProcessMemory request was completed.  ERROR_PARTIAL_COPY ";
		break;
	case 300:
		rep+=" The oplock request is denied.  ERROR_OPLOCK_NOT_GRANTED ";
		break;
	case 301:
		rep+=" An invalid oplock acknowledgment was received by the system.  ERROR_INVALID_OPLOCK_PROTOCOL ";
		break;
	case 317:
		rep+=" The system cannot find message text for message number 0x%1 in the message file for %2.  ERROR_MR_MID_NOT_FOUND ";
		break;
	case 487:
		rep+=" Attempt to access invalid address.  ERROR_INVALID_ADDRESS ";
		break;
	case 534:
		rep+=" Arithmetic result exceeded 32 bits.  ERROR_ARITHMETIC_OVERFLOW ";
		break;
	case 535:
		rep+=" There is a process on other end of the pipe.  ERROR_PIPE_CONNECTED ";
		break;
	case 536:
		rep+=" Waiting for a process to open the other end of the pipe.  ERROR_PIPE_LISTENING ";
		break;
	case 994:
		rep+=" Access to the extended attribute was denied.  ERROR_EA_ACCESS_DENIED ";
		break;
	case 995:
		rep+=" The I/O operation has been aborted because of either a thread exit or an application request.  ERROR_OPERATION_ABORTED ";
		break;
	case 996:
		rep+=" Overlapped I/O event is not in a signaled state.  ERROR_IO_INCOMPLETE ";
		break;
	case 997:
		rep+=" Overlapped I/O operation is in progress.  ERROR_IO_PENDING ";
		break;
	case 998:
		rep+=" Invalid access to memory location.  ERROR_NOACCESS ";
		break;
	case 999:
		rep+=" Error performing inpage operation.  ERROR_SWAPERROR ";
		break;
	case 1001:
		rep+=" Recursion too deep; the stack overflowed.  ERROR_STACK_OVERFLOW ";
		break;
	case 1002:
		rep+=" The window cannot act on the sent message.  ERROR_INVALID_MESSAGE ";
		break;
	case 1003:
		rep+=" Cannot complete this function.  ERROR_CAN_NOT_COMPLETE ";
		break;
	case 1004:
		rep+=" Invalid flags.  ERROR_INVALID_FLAGS ";
		break;
	case 1005:
		rep+=" The volume does not contain a recognized file system. Please make sure that all required file system drivers are loaded and that the volume is not corrupted.  ERROR_UNRECOGNIZED_VOLUME ";
		break;
	case 1006:
		rep+=" The volume for a file has been externally altered so that the opened file is no longer valid.  ERROR_FILE_INVALID ";
		break;
	case 1007:
		rep+=" The requested operation cannot be performed in full-screen mode.  ERROR_FULLSCREEN_MODE ";
		break;
	case 1008:
		rep+=" An attempt was made to reference a token that does not exist.  ERROR_NO_TOKEN ";
		break;
	case 1009:
		rep+=" The configuration registry database is corrupt.  ERROR_BADDB ";
		break;
	case 1010:
		rep+=" The configuration registry key is invalid.  ERROR_BADKEY ";
		break;
	case 1011:
		rep+=" The configuration registry key could not be opened.  ERROR_CANTOPEN ";
		break;
	case 1012:
		rep+=" The configuration registry key could not be read.  ERROR_CANTREAD ";
		break;
	case 1013:
		rep+=" The configuration registry key could not be written.  ERROR_CANTWRITE ";
		break;
	case 1014:
		rep+=" One of the files in the registry database had to be recovered by use of a log or alternate copy. The recovery was successful.  ERROR_REGISTRY_RECOVERED ";
		break;
	case 1015:
		rep+=" The registry is corrupted. The structure of one of the files that contains registry data is corrupted, or the system's image of the file in memory is corrupted, or the file could not be recovered because the alternate copy or log was absent or corrupted.  ERROR_REGISTRY_CORRUPT ";
		break;
	case 1016:
		rep+=" An I/O operation initiated by the registry failed unrecoverably. The registry could not read in, or write out, or flush, one of the files that contain the system's image of the registry.  ERROR_REGISTRY_IO_FAILED ";
		break;
	case 1017:
		rep+=" The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format.  ERROR_NOT_REGISTRY_FILE ";
		break;
	case 1018:
		rep+=" Illegal operation attempted on a registry key that has been marked for deletion.  ERROR_KEY_DELETED ";
		break;
	case 1019:
		rep+=" System could not allocate the required space in a registry log.  ERROR_NO_LOG_SPACE ";
		break;
	case 1020:
		rep+=" Cannot create a symbolic link in a registry key that already has subkeys or values.  ERROR_KEY_HAS_CHILDREN ";
		break;
	case 1021:
		rep+=" Cannot create a stable subkey under a volatile parent key.  ERROR_CHILD_MUST_BE_VOLATILE ";
		break;
	case 1022:
		rep+=" A notify change request is being completed and the information is not being returned in the caller's buffer. The caller now needs to enumerate the files to find the changes.  ERROR_NOTIFY_ENUM_DIR ";
		break;
	case 1051:
		rep+=" A stop control has been sent to a service that other running services are dependent on.  ERROR_DEPENDENT_SERVICES_RUNNING ";
		break;
	case 1052:
		rep+=" The requested control is not valid for this service.  ERROR_INVALID_SERVICE_CONTROL ";
		break;
	case 1053:
		rep+=" The service did not respond to the start or control request in a timely fashion.  ERROR_SERVICE_REQUEST_TIMEOUT ";
		break;
	case 1054:
		rep+=" A thread could not be created for the service.  ERROR_SERVICE_NO_THREAD ";
		break;
	case 1055:
		rep+=" The service database is locked.  ERROR_SERVICE_DATABASE_LOCKED ";
		break;
	case 1056:
		rep+=" An instance of the service is already running.  ERROR_SERVICE_ALREADY_RUNNING ";
		break;
	case 1057:
		rep+=" The account name is invalid or does not exist.  ERROR_INVALID_SERVICE_ACCOUNT ";
		break;
	case 1058:
		rep+=" The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.  ERROR_SERVICE_DISABLED ";
		break;
	case 1059:
		rep+=" Circular service dependency was specified.  ERROR_CIRCULAR_DEPENDENCY ";
		break;
	case 1060:
		rep+=" The specified service does not exist as an installed service.  ERROR_SERVICE_DOES_NOT_EXIST ";
		break;
	case 1061:
		rep+=" The service cannot accept control messages at this time.  ERROR_SERVICE_CANNOT_ACCEPT_CTRL ";
		break;
	case 1062:
		rep+=" The service has not been started.  ERROR_SERVICE_NOT_ACTIVE ";
		break;
	case 1063:
		rep+=" The service process could not connect to the service controller.  ERROR_FAILED_SERVICE_CONTROLLER_CONNECT ";
		break;
	case 1064:
		rep+=" An exception occurred in the service when handling the control request.  ERROR_EXCEPTION_IN_SERVICE ";
		break;
	case 1065:
		rep+=" The database specified does not exist.  ERROR_DATABASE_DOES_NOT_EXIST ";
		break;
	case 1066:
		rep+=" The service has returned a service-specific error code.  ERROR_SERVICE_SPECIFIC_ERROR ";
		break;
	case 1067:
		rep+=" The process terminated unexpectedly.  ERROR_PROCESS_ABORTED ";
		break;
	case 1068:
		rep+=" The dependency service or group failed to start.  ERROR_SERVICE_DEPENDENCY_FAIL ";
		break;
	case 1069:
		rep+=" The service did not start due to a logon failure.  ERROR_SERVICE_LOGON_FAILED ";
		break;
	case 1070:
		rep+=" After starting, the service hung in a start-pending state.  ERROR_SERVICE_START_HANG ";
		break;
	case 1071:
		rep+=" The specified service database lock is invalid.  ERROR_INVALID_SERVICE_LOCK ";
		break;
	case 1072:
		rep+=" The specified service has been marked for deletion.  ERROR_SERVICE_MARKED_FOR_DELETE ";
		break;
	case 1073:
		rep+=" The specified service already exists.  ERROR_SERVICE_EXISTS ";
		break;
	case 1074:
		rep+=" The system is currently running with the last-known-good configuration.  ERROR_ALREADY_RUNNING_LKG ";
		break;
	case 1075:
		rep+=" The dependency service does not exist or has been marked for deletion.  ERROR_SERVICE_DEPENDENCY_DELETED ";
		break;
	case 1076:
		rep+=" The current boot has already been accepted for use as the last-known-good control set.  ERROR_BOOT_ALREADY_ACCEPTED ";
		break;
	case 1077:
		rep+=" No attempts to start the service have been made since the last boot.  ERROR_SERVICE_NEVER_STARTED ";
		break;
	case 1078:
		rep+=" The name is already in use as either a service name or a service display name.  ERROR_DUPLICATE_SERVICE_NAME ";
		break;
	case 1079:
		rep+=" The account specified for this service is different from the account specified for other services running in the same process.  ERROR_DIFFERENT_SERVICE_ACCOUNT ";
		break;
	case 1080:
		rep+=" Failure actions can only be set for Win32 services, not for drivers.  ERROR_CANNOT_DETECT_DRIVER_FAILURE ";
		break;
	case 1081:
		rep+=" This service runs in the same process as the service control manager. Therefore, the service control manager cannot take action if this service's process terminates unexpectedly.  ERROR_CANNOT_DETECT_PROCESS_ABORT ";
		break;
	case 1082:
		rep+=" No recovery program has been configured for this service.  ERROR_NO_RECOVERY_PROGRAM ";
		break;
	case 1100:
		rep+=" The physical end of the tape has been reached.  ERROR_END_OF_MEDIA ";
		break;
	case 1101:
		rep+=" A tape access reached a filemark.  ERROR_FILEMARK_DETECTED ";
		break;
	case 1102:
		rep+=" The beginning of the tape or a partition was encountered.  ERROR_BEGINNING_OF_MEDIA ";
		break;
	case 1103:
		rep+=" A tape access reached the end of a set of files.  ERROR_SETMARK_DETECTED ";
		break;
	case 1104:
		rep+=" No more data is on the tape.  ERROR_NO_DATA_DETECTED ";
		break;
	case 1105:
		rep+=" Tape could not be partitioned.  ERROR_PARTITION_FAILURE ";
		break;
	case 1106:
		rep+=" When accessing a new tape of a multivolume partition, the current blocksize is incorrect.  ERROR_INVALID_BLOCK_LENGTH ";
		break;
	case 1107:
		rep+=" Tape partition information could not be found when loading a tape.  ERROR_DEVICE_NOT_PARTITIONED ";
		break;
	case 1108:
		rep+=" Unable to lock the media eject mechanism.  ERROR_UNABLE_TO_LOCK_MEDIA ";
		break;
	case 1109:
		rep+=" Unable to unload the media.  ERROR_UNABLE_TO_UNLOAD_MEDIA ";
		break;
	case 1110:
		rep+=" The media in the drive may have changed.  ERROR_MEDIA_CHANGED ";
		break;
	case 1111:
		rep+=" The I/O bus was reset.  ERROR_BUS_RESET ";
		break;
	case 1112:
		rep+=" No media in drive.  ERROR_NO_MEDIA_IN_DRIVE ";
		break;
	case 1113:
		rep+=" No mapping for the Unicode character exists in the target multi-byte code page.  ERROR_NO_UNICODE_TRANSLATION ";
		break;
	case 1114:
		rep+=" A dynamic link library (DLL) initialization routine failed.  ERROR_DLL_INIT_FAILED ";
		break;
	case 1115:
		rep+=" A system shutdown is in progress.  ERROR_SHUTDOWN_IN_PROGRESS ";
		break;
	case 1116:
		rep+=" Unable to abort the system shutdown because no shutdown was in progress.  ERROR_NO_SHUTDOWN_IN_PROGRESS ";
		break;
	case 1117:
		rep+=" The request could not be performed because of an I/O device error.  ERROR_IO_DEVICE ";
		break;
	case 1118:
		rep+=" No serial device was successfully initialized. The serial driver will unload.  ERROR_SERIAL_NO_DEVICE ";
		break;
	case 1119:
		rep+=" Unable to open a device that was sharing an interrupt request (IRQ) with other devices. At least one other device that uses that IRQ was already opened.  ERROR_IRQ_BUSY ";
		break;
	case 1120:
		rep+=" A serial I/O operation was completed by another write to the serial port. The IOCTL_SERIAL_XOFF_COUNTER reached zero.)  ERROR_MORE_WRITES ";
		break;
	case 1121:
		rep+=" A serial I/O operation completed because the timeout period expired. The IOCTL_SERIAL_XOFF_COUNTER did not reach zero.)  ERROR_COUNTER_TIMEOUT ";
		break;
	case 1122:
		rep+=" No ID address mark was found on the floppy disk.  ERROR_FLOPPY_ID_MARK_NOT_FOUND ";
		break;
	case 1123:
		rep+=" Mismatch between the floppy disk sector ID field and the floppy disk controller track address.  ERROR_FLOPPY_WRONG_CYLINDER ";
		break;
	case 1124:
		rep+=" The floppy disk controller reported an error that is not recognized by the floppy disk driver.  ERROR_FLOPPY_UNKNOWN_ERROR ";
		break;
	case 1125:
		rep+=" The floppy disk controller returned inconsistent results in its registers.  ERROR_FLOPPY_BAD_REGISTERS ";
		break;
	case 1126:
		rep+=" While accessing the hard disk, a recalibrate operation failed, even after retries.  ERROR_DISK_RECALIBRATE_FAILED ";
		break;
	case 1127:
		rep+=" While accessing the hard disk, a disk operation failed even after retries.  ERROR_DISK_OPERATION_FAILED ";
		break;
	case 1128:
		rep+=" While accessing the hard disk, a disk controller reset was needed, but even that failed.  ERROR_DISK_RESET_FAILED ";
		break;
	case 1129:
		rep+=" Physical end of tape encountered.  ERROR_EOM_OVERFLOW ";
		break;
	case 1130:
		rep+=" Not enough server storage is available to process this command.  ERROR_NOT_ENOUGH_SERVER_MEMORY ";
		break;
	case 1131:
		rep+=" A potential deadlock condition has been detected.  ERROR_POSSIBLE_DEADLOCK ";
		break;
	case 1132:
		rep+=" The base address or the file offset specified does not have the proper alignment.  ERROR_MAPPED_ALIGNMENT ";
		break;
	case 1140:
		rep+=" An attempt to change the system power state was vetoed by another application or driver.  ERROR_SET_POWER_STATE_VETOED ";
		break;
	case 1141:
		rep+=" The system BIOS failed an attempt to change the system power state.  ERROR_SET_POWER_STATE_FAILED ";
		break;
	case 1142:
		rep+=" An attempt was made to create more links on a file than the file system supports.  ERROR_TOO_MANY_LINKS ";
		break;
	case 1150:
		rep+=" The specified program requires a newer version of Windows.  ERROR_OLD_WIN_VERSION ";
		break;
	case 1151:
		rep+=" The specified program is not a Windows or MS-DOS program.  ERROR_APP_WRONG_OS ";
		break;
	case 1152:
		rep+=" Cannot start more than one instance of the specified program.  ERROR_SINGLE_INSTANCE_APP ";
		break;
	case 1153:
		rep+=" The specified program was written for an earlier version of Windows.  ERROR_RMODE_APP ";
		break;
	case 1154:
		rep+=" One of the library files needed to run this application is damaged.  ERROR_INVALID_DLL ";
		break;
	case 1155:
		rep+=" No application is associated with the specified file for this operation.  ERROR_NO_ASSOCIATION ";
		break;
	case 1156:
		rep+=" An error occurred in sending the command to the application.  ERROR_DDE_FAIL ";
		break;
	case 1157:
		rep+=" One of the library files needed to run this application cannot be found.  ERROR_DLL_NOT_FOUND ";
		break;
	case 1158:
		rep+=" The current process has used all of its system allowance of handles for Window Manager objects.  ERROR_NO_MORE_USER_HANDLES ";
		break;
	case 1159:
		rep+=" The message can be used only with synchronous operations.  ERROR_MESSAGE_SYNC_ONLY ";
		break;
	case 1160:
		rep+=" The indicated source element has no media.  ERROR_SOURCE_ELEMENT_EMPTY ";
		break;
	case 1161:
		rep+=" The indicated destination element already contains media.  ERROR_DESTINATION_ELEMENT_FULL ";
		break;
	case 1162:
		rep+=" The indicated element does not exist.  ERROR_ILLEGAL_ELEMENT_ADDRESS ";
		break;
	case 1163:
		rep+=" The indicated element is part of a magazine that is not present.  ERROR_MAGAZINE_NOT_PRESENT ";
		break;
	case 1164:
		rep+=" The indicated device requires reinitialization due to hardware errors.  ERROR_DEVICE_REINITIALIZATION_NEEDED ";
		break;
	case 1165:
		rep+=" The device has indicated that cleaning is required before further operations are attempted.  ERROR_DEVICE_REQUIRES_CLEANING ";
		break;
	case 1166:
		rep+=" The device has indicated that its door is open.  ERROR_DEVICE_DOOR_OPEN ";
		break;
	case 1167:
		rep+=" The device is not connected.  ERROR_DEVICE_NOT_CONNECTED ";
		break;
	case 1168:
		rep+=" Element not found.  ERROR_NOT_FOUND ";
		break;
	case 1169:
		rep+=" There was no match for the specified key in the index.  ERROR_NO_MATCH ";
		break;
	case 1170:
		rep+=" The property set specified does not exist on the object.  ERROR_SET_NOT_FOUND ";
		break;
	case 1171:
		rep+=" The point passed to GetMouseMovePoints is not in the buffer.  ERROR_POINT_NOT_FOUND ";
		break;
	case 1172:
		rep+=" The tracking (workstation) service is not running.  ERROR_NO_TRACKING_SERVICE ";
		break;
	case 1173:
		rep+=" The Volume ID could not be found.  ERROR_NO_VOLUME_ID ";
		break;
	case 1200:
		rep+=" The specified device name is invalid.  ERROR_BAD_DEVICE ";
		break;
	case 1201:
		rep+=" The device is not currently connected but it is a remembered connection.  ERROR_CONNECTION_UNAVAIL ";
		break;
	case 1202:
		rep+=" An attempt was made to remember a device that had previously been remembered.  ERROR_DEVICE_ALREADY_REMEMBERED ";
		break;
	case 1203:
		rep+=" No network provider accepted the given network path.  ERROR_NO_NET_OR_BAD_PATH ";
		break;
	case 1204:
		rep+=" The specified network provider name is invalid.  ERROR_BAD_PROVIDER ";
		break;
	case 1205:
		rep+=" Unable to open the network connection profile.  ERROR_CANNOT_OPEN_PROFILE ";
		break;
	case 1206:
		rep+=" The network connection profile is corrupted.  ERROR_BAD_PROFILE ";
		break;
	case 1207:
		rep+=" Cannot enumerate a noncontainer.  ERROR_NOT_CONTAINER ";
		break;
	case 1208:
		rep+=" An extended error has occurred.  ERROR_EXTENDED_ERROR ";
		break;
	case 1209:
		rep+=" The format of the specified group name is invalid.  ERROR_INVALID_GROUPNAME ";
		break;
	case 1210:
		rep+=" The format of the specified computer name is invalid.  ERROR_INVALID_COMPUTERNAME ";
		break;
	case 1211:
		rep+=" The format of the specified event name is invalid.  ERROR_INVALID_EVENTNAME ";
		break;
	case 1212:
		rep+=" The format of the specified domain name is invalid.  ERROR_INVALID_DOMAINNAME ";
		break;
	case 1213:
		rep+=" The format of the specified service name is invalid.  ERROR_INVALID_SERVICENAME ";
		break;
	case 1214:
		rep+=" The format of the specified network name is invalid.  ERROR_INVALID_NETNAME ";
		break;
	case 1215:
		rep+=" The format of the specified share name is invalid.  ERROR_INVALID_SHARENAME ";
		break;
	case 1216:
		rep+=" The format of the specified password is invalid.  ERROR_INVALID_PASSWORDNAME ";
		break;
	case 1217:
		rep+=" The format of the specified message name is invalid.  ERROR_INVALID_MESSAGENAME ";
		break;
	case 1218:
		rep+=" The format of the specified message destination is invalid.  ERROR_INVALID_MESSAGEDEST ";
		break;
	case 1219:
		rep+=" The credentials supplied conflict with an existing set of credentials.  ERROR_SESSION_CREDENTIAL_CONFLICT ";
		break;
	case 1220:
		rep+=" An attempt was made to establish a session to a network server, but there are already too many sessions established to that server.  ERROR_REMOTE_SESSION_LIMIT_EXCEEDED ";
		break;
	case 1221:
		rep+=" The workgroup or domain name is already in use by another computer on the network.  ERROR_DUP_DOMAINNAME ";
		break;
	case 1222:
		rep+=" The network is not present or not started.  ERROR_NO_NETWORK ";
		break;
	case 1223:
		rep+=" The operation was canceled by the user.  ERROR_CANCELLED ";
		break;
	case 1224:
		rep+=" The requested operation cannot be performed on a file with a user-mapped section open.  ERROR_USER_MAPPED_FILE ";
		break;
	case 1225:
		rep+=" The remote system refused the network connection.  ERROR_CONNECTION_REFUSED ";
		break;
	case 1226:
		rep+=" The network connection was gracefully closed.  ERROR_GRACEFUL_DISCONNECT ";
		break;
	case 1227:
		rep+=" The network transport endpoint already has an address associated with it.  ERROR_ADDRESS_ALREADY_ASSOCIATED ";
		break;
	case 1228:
		rep+=" An address has not yet been associated with the network endpoint.  ERROR_ADDRESS_NOT_ASSOCIATED ";
		break;
	case 1229:
		rep+=" An operation was attempted on a nonexistent network connection.  ERROR_CONNECTION_INVALID ";
		break;
	case 1230:
		rep+=" An invalid operation was attempted on an active network connection.  ERROR_CONNECTION_ACTIVE ";
		break;
	case 1231:
		rep+=" The remote network is not reachable by the transport.  ERROR_NETWORK_UNREACHABLE ";
		break;
	case 1232:
		rep+=" The remote system is not reachable by the transport.  ERROR_HOST_UNREACHABLE ";
		break;
	case 1233:
		rep+=" The remote system does not support the transport protocol.  ERROR_PROTOCOL_UNREACHABLE ";
		break;
	case 1234:
		rep+=" No service is operating at the destination network endpoint on the remote system.  ERROR_PORT_UNREACHABLE ";
		break;
	case 1235:
		rep+=" The request was aborted.  ERROR_REQUEST_ABORTED ";
		break;
	case 1236:
		rep+=" The network connection was aborted by the local system.  ERROR_CONNECTION_ABORTED ";
		break;
	case 1237:
		rep+=" The operation could not be completed. A retry should be performed.  ERROR_RETRY ";
		break;
	case 1238:
		rep+=" A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached.  ERROR_CONNECTION_COUNT_LIMIT ";
		break;
	case 1239:
		rep+=" Attempting to log in during an unauthorized time of day for this account.  ERROR_LOGIN_TIME_RESTRICTION ";
		break;
	case 1240:
		rep+=" The account is not authorized to log in from this station.  ERROR_LOGIN_WKSTA_RESTRICTION ";
		break;
	case 1241:
		rep+=" The network address could not be used for the operation requested.  ERROR_INCORRECT_ADDRESS ";
		break;
	case 1242:
		rep+=" The service is already registered.  ERROR_ALREADY_REGISTERED ";
		break;
	case 1243:
		rep+=" The specified service does not exist.  ERROR_SERVICE_NOT_FOUND ";
		break;
	case 1244:
		rep+=" The operation being requested was not performed because the user has not been authenticated.  ERROR_NOT_AUTHENTICATED ";
		break;
	case 1245:
		rep+=" The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist.  ERROR_NOT_LOGGED_ON ";
		break;
	case 1246:
		rep+=" Continue with work in progress.  ERROR_CONTINUE ";
		break;
	case 1247:
		rep+=" An attempt was made to perform an initialization operation when initialization has already been completed.  ERROR_ALREADY_INITIALIZED ";
		break;
	case 1248:
		rep+=" No more local devices.  ERROR_NO_MORE_DEVICES ";
		break;
	case 1249:
		rep+=" The specified site does not exist.  ERROR_NO_SUCH_SITE ";
		break;
	case 1250:
		rep+=" A domain controller with the specified name already exists.  ERROR_DOMAIN_CONTROLLER_EXISTS ";
		break;
	case 1251:
		rep+=" An error occurred while installing the Windows NT directory service. Please view the event log for more information.  ERROR_DS_NOT_INSTALLED ";
		break;
	case 1300:
		rep+=" Not all privileges referenced are assigned to the caller.  ERROR_NOT_ALL_ASSIGNED ";
		break;
	case 1301:
		rep+=" Some mapping between account names and security IDs was not done.  ERROR_SOME_NOT_MAPPED ";
		break;
	case 1302:
		rep+=" No system quota limits are specifically set for this account.  ERROR_NO_QUOTAS_FOR_ACCOUNT ";
		break;
	case 1303:
		rep+=" No encryption key is available. A well-known encryption key was returned.  ERROR_LOCAL_USER_SESSION_KEY ";
		break;
	case 1304:
		rep+=" The Windows NT password is too complex to be converted to a LAN Manager password. The LAN Manager password returned is a NULL string.  ERROR_NULL_LM_PASSWORD ";
		break;
	case 1305:
		rep+=" The revision level is unknown.  ERROR_UNKNOWN_REVISION ";
		break;
	case 1306:
		rep+=" Indicates two revision levels are incompatible.  ERROR_REVISION_MISMATCH ";
		break;
	case 1307:
		rep+=" This security ID may not be assigned as the owner of this object.  ERROR_INVALID_OWNER ";
		break;
	case 1308:
		rep+=" This security ID may not be assigned as the primary group of an object.  ERROR_INVALID_PRIMARY_GROUP ";
		break;
	case 1309:
		rep+=" An attempt has been made to operate on an impersonation token by a thread that is not currently impersonating a client.  ERROR_NO_IMPERSONATION_TOKEN ";
		break;
	case 1310:
		rep+=" The group may not be disabled.  ERROR_CANT_DISABLE_MANDATORY ";
		break;
	case 1311:
		rep+=" There are currently no logon servers available to service the logon request.  ERROR_NO_LOGON_SERVERS ";
		break;
	case 1312:
		rep+=" A specified logon session does not exist. It may already have been terminated.  ERROR_NO_SUCH_LOGON_SESSION ";
		break;
	case 1313:
		rep+=" A specified privilege does not exist.  ERROR_NO_SUCH_PRIVILEGE ";
		break;
	case 1314:
		rep+=" A required privilege is not held by the client.  ERROR_PRIVILEGE_NOT_HELD ";
		break;
	case 1315:
		rep+=" The name provided is not a properly formed account name.  ERROR_INVALID_ACCOUNT_NAME ";
		break;
	case 1316:
		rep+=" The specified user already exists.  ERROR_USER_EXISTS ";
		break;
	case 1317:
		rep+=" The specified user does not exist.  ERROR_NO_SUCH_USER ";
		break;
	case 1318:
		rep+=" The specified group already exists.  ERROR_GROUP_EXISTS ";
		break;
	case 1319:
		rep+=" The specified group does not exist.  ERROR_NO_SUCH_GROUP ";
		break;
	case 1320:
		rep+=" Either the specified user account is already a member of the specified group, or the specified group cannot be deleted because it contains a member.  ERROR_MEMBER_IN_GROUP ";
		break;
	case 1321:
		rep+=" The specified user account is not a member of the specified group account.  ERROR_MEMBER_NOT_IN_GROUP ";
		break;
	case 1322:
		rep+=" The last remaining administration account cannot be disabled or deleted.  ERROR_LAST_ADMIN ";
		break;
	case 1323:
		rep+=" Unable to update the password. The value provided as the current password is incorrect.  ERROR_WRONG_PASSWORD ";
		break;
	case 1324:
		rep+=" Unable to update the password. The value provided for the new password contains values that are not allowed in passwords.  ERROR_ILL_FORMED_PASSWORD ";
		break;
	case 1325:
		rep+=" Unable to update the password because a password update rule has been violated.  ERROR_PASSWORD_RESTRICTION ";
		break;
	case 1326:
		rep+=" Logon failure: unknown user name or bad password.  ERROR_LOGON_FAILURE ";
		break;
	case 1327:
		rep+=" Logon failure: user account restriction.  ERROR_ACCOUNT_RESTRICTION ";
		break;
	case 1328:
		rep+=" Logon failure: account logon time restriction violation.  ERROR_INVALID_LOGON_HOURS ";
		break;
	case 1329:
		rep+=" Logon failure: user not allowed to log on to this computer.  ERROR_INVALID_WORKSTATION ";
		break;
	case 1330:
		rep+=" Logon failure: the specified account password has expired.  ERROR_PASSWORD_EXPIRED ";
		break;
	case 1331:
		rep+=" Logon failure: account currently disabled.  ERROR_ACCOUNT_DISABLED ";
		break;
	case 1332:
		rep+=" No mapping between account names and security IDs was done.  ERROR_NONE_MAPPED ";
		break;
	case 1333:
		rep+=" Too many local user identifiers (LUIDs) were requested at one time.  ERROR_TOO_MANY_LUIDS_REQUESTED ";
		break;
	case 1334:
		rep+=" No more local user identifiers (LUIDs) are available.  ERROR_LUIDS_EXHAUSTED ";
		break;
	case 1335:
		rep+=" The subauthority part of a security ID is invalid for this particular use.  ERROR_INVALID_SUB_AUTHORITY ";
		break;
	case 1336:
		rep+=" The access control list (ACL) structure is invalid.  ERROR_INVALID_ACL ";
		break;
	case 1337:
		rep+=" The security ID structure is invalid.  ERROR_INVALID_SID ";
		break;
	case 1338:
		rep+=" The security descriptor structure is invalid.  ERROR_INVALID_SECURITY_DESCR ";
		break;
	case 1340:
		rep+=" The inherited access control list (ACL) or access control entry (ACE) could not be built.  ERROR_BAD_INHERITANCE_ACL ";
		break;
	case 1341:
		rep+=" The server is currently disabled.  ERROR_SERVER_DISABLED ";
		break;
	case 1342:
		rep+=" The server is currently enabled.  ERROR_SERVER_NOT_DISABLED ";
		break;
	case 1343:
		rep+=" The value provided was an invalid value for an identifier authority.  ERROR_INVALID_ID_AUTHORITY ";
		break;
	case 1344:
		rep+=" No more memory is available for security information updates.  ERROR_ALLOTTED_SPACE_EXCEEDED ";
		break;
	case 1345:
		rep+=" The specified attributes are invalid, or incompatible with the attributes for the group as a whole.  ERROR_INVALID_GROUP_ATTRIBUTES ";
		break;
	case 1346:
		rep+=" Either a required impersonation level was not provided, or the provided impersonation level is invalid.  ERROR_BAD_IMPERSONATION_LEVEL ";
		break;
	case 1347:
		rep+=" Cannot open an anonymous level security token.  ERROR_CANT_OPEN_ANONYMOUS ";
		break;
	case 1348:
		rep+=" The validation information class requested was invalid.  ERROR_BAD_VALIDATION_CLASS ";
		break;
	case 1349:
		rep+=" The type of the token is inappropriate for its attempted use.  ERROR_BAD_TOKEN_TYPE ";
		break;
	case 1350:
		rep+=" Unable to perform a security operation on an object that has no associated security.  ERROR_NO_SECURITY_ON_OBJECT ";
		break;
	case 1351:
		rep+=" Indicates a Windows NT Server could not be contacted or that objects within the domain are protected such that necessary information could not be retrieved.  ERROR_CANT_ACCESS_DOMAIN_INFO ";
		break;
	case 1352:
		rep+=" The security account manager (SAM) or local security authority (LSA) server was in the wrong state to perform the security operation.  ERROR_INVALID_SERVER_STATE ";
		break;
	case 1353:
		rep+=" The domain was in the wrong state to perform the security operation.  ERROR_INVALID_DOMAIN_STATE ";
		break;
	case 1354:
		rep+=" This operation is only allowed for the Primary Domain Controller of the domain.  ERROR_INVALID_DOMAIN_ROLE ";
		break;
	case 1355:
		rep+=" The specified domain did not exist.  ERROR_NO_SUCH_DOMAIN ";
		break;
	case 1356:
		rep+=" The specified domain already exists.  ERROR_DOMAIN_EXISTS ";
		break;
	case 1357:
		rep+=" An attempt was made to exceed the limit on the number of domains per server.  ERROR_DOMAIN_LIMIT_EXCEEDED ";
		break;
	case 1358:
		rep+=" Unable to complete the requested operation because of either a catastrophic media failure or a data structure corruption on the disk.  ERROR_INTERNAL_DB_CORRUPTION ";
		break;
	case 1359:
		rep+=" The security account database contains an internal inconsistency.  ERROR_INTERNAL_ERROR ";
		break;
	case 1360:
		rep+=" Generic access types were contained in an access mask which should already be mapped to nongeneric types.  ERROR_GENERIC_NOT_MAPPED ";
		break;
	case 1361:
		rep+=" A security descriptor is not in the right format (absolute or self-relative).  ERROR_BAD_DESCRIPTOR_FORMAT ";
		break;
	case 1362:
		rep+=" The requested action is restricted for use by logon processes only. The calling process has not registered as a logon process.  ERROR_NOT_LOGON_PROCESS ";
		break;
	case 1363:
		rep+=" Cannot start a new logon session with an ID that is already in use.  ERROR_LOGON_SESSION_EXISTS ";
		break;
	case 1364:
		rep+=" A specified authentication package is unknown.  ERROR_NO_SUCH_PACKAGE ";
		break;
	case 1365:
		rep+=" The logon session is not in a state that is consistent with the requested operation.  ERROR_BAD_LOGON_SESSION_STATE ";
		break;
	case 1366:
		rep+=" The logon session ID is already in use.  ERROR_LOGON_SESSION_COLLISION ";
		break;
	case 1367:
		rep+=" A logon request contained an invalid logon type value.  ERROR_INVALID_LOGON_TYPE ";
		break;
	case 1368:
		rep+=" Unable to impersonate using a named pipe until data has been read from that pipe.  ERROR_CANNOT_IMPERSONATE ";
		break;
	case 1369:
		rep+=" The transaction state of a registry subtree is incompatible with the requested operation.  ERROR_RXACT_INVALID_STATE ";
		break;
	case 1370:
		rep+=" An internal security database corruption has been encountered.  ERROR_RXACT_COMMIT_FAILURE ";
		break;
	case 1371:
		rep+=" Cannot perform this operation on built-in accounts.  ERROR_SPECIAL_ACCOUNT ";
		break;
	case 1372:
		rep+=" Cannot perform this operation on this built-in special group.  ERROR_SPECIAL_GROUP ";
		break;
	case 1373:
		rep+=" Cannot perform this operation on this built-in special user.  ERROR_SPECIAL_USER ";
		break;
	case 1374:
		rep+=" The user cannot be removed from a group because the group is currently the user's primary group.  ERROR_MEMBERS_PRIMARY_GROUP ";
		break;
	case 1375:
		rep+=" The token is already in use as a primary token.  ERROR_TOKEN_ALREADY_IN_USE ";
		break;
	case 1376:
		rep+=" The specified local group does not exist.  ERROR_NO_SUCH_ALIAS ";
		break;
	case 1377:
		rep+=" The specified account name is not a member of the local group.  ERROR_MEMBER_NOT_IN_ALIAS ";
		break;
	case 1378:
		rep+=" The specified account name is already a member of the local group.  ERROR_MEMBER_IN_ALIAS ";
		break;
	case 1379:
		rep+=" The specified local group already exists.  ERROR_ALIAS_EXISTS ";
		break;
	case 1380:
		rep+=" Logon failure: the user has not been granted the requested logon type at this computer.  ERROR_LOGON_NOT_GRANTED ";
		break;
	case 1381:
		rep+=" The maximum number of secrets that may be stored in a single system has been exceeded.  ERROR_TOO_MANY_SECRETS ";
		break;
	case 1382:
		rep+=" The length of a secret exceeds the maximum length allowed.  ERROR_SECRET_TOO_LONG ";
		break;
	case 1383:
		rep+=" The local security authority database contains an internal inconsistency.  ERROR_INTERNAL_DB_ERROR ";
		break;
	case 1384:
		rep+=" During a logon attempt, the user's security context accumulated too many security IDs.  ERROR_TOO_MANY_CONTEXT_IDS ";
		break;
	case 1385:
		rep+=" Logon failure: the user has not been granted the requested logon type at this computer.  ERROR_LOGON_TYPE_NOT_GRANTED ";
		break;
	case 1386:
		rep+=" A cross-encrypted password is necessary to change a user password.  ERROR_NT_CROSS_ENCRYPTION_REQUIRED ";
		break;
	case 1387:
		rep+=" A new member could not be added to a local group because the member does not exist.  ERROR_NO_SUCH_MEMBER ";
		break;
	case 1388:
		rep+=" A new member could not be added to a local group because the member has the wrong account type.  ERROR_INVALID_MEMBER ";
		break;
	case 1389:
		rep+=" Too many security IDs have been specified.  ERROR_TOO_MANY_SIDS ";
		break;
	case 1390:
		rep+=" A cross-encrypted password is necessary to change this user password.  ERROR_LM_CROSS_ENCRYPTION_REQUIRED ";
		break;
	case 1391:
		rep+=" Indicates an ACL contains no inheritable components.  ERROR_NO_INHERITANCE ";
		break;
	case 1392:
		rep+=" The file or directory is corrupted and unreadable.  ERROR_FILE_CORRUPT ";
		break;
	case 1393:
		rep+=" The disk structure is corrupted and unreadable.  ERROR_DISK_CORRUPT ";
		break;
	case 1394:
		rep+=" There is no user session key for the specified logon session.  ERROR_NO_USER_SESSION_KEY ";
		break;
	case 1395:
		rep+=" The service being accessed is licensed for a particular number of connections. No more connections can be made to the service at this time because there are already as many connections as the service can accept.  ERROR_LICENSE_QUOTA_EXCEEDED ";
		break;
	case 1400:
		rep+=" Invalid window handle.  ERROR_INVALID_WINDOW_HANDLE ";
		break;
	case 1401:
		rep+=" Invalid menu handle.  ERROR_INVALID_MENU_HANDLE ";
		break;
	case 1402:
		rep+=" Invalid cursor handle.  ERROR_INVALID_CURSOR_HANDLE ";
		break;
	case 1403:
		rep+=" Invalid accelerator table handle.  ERROR_INVALID_ACCEL_HANDLE ";
		break;
	case 1404:
		rep+=" Invalid hook handle.  ERROR_INVALID_HOOK_HANDLE ";
		break;
	case 1405:
		rep+=" Invalid handle to a multiple-window position structure.  ERROR_INVALID_DWP_HANDLE ";
		break;
	case 1406:
		rep+=" Cannot create a top-level child window.  ERROR_TLW_WITH_WSCHILD ";
		break;
	case 1407:
		rep+=" Cannot find window class.  ERROR_CANNOT_FIND_WND_CLASS ";
		break;
	case 1408:
		rep+=" Invalid window; it belongs to other thread.  ERROR_WINDOW_OF_OTHER_THREAD ";
		break;
	case 1409:
		rep+=" Hot key is already registered.  ERROR_HOTKEY_ALREADY_REGISTERED ";
		break;
	case 1410:
		rep+=" Class already exists.  ERROR_CLASS_ALREADY_EXISTS ";
		break;
	case 1411:
		rep+=" Class does not exist.  ERROR_CLASS_DOES_NOT_EXIST ";
		break;
	case 1412:
		rep+=" Class still has open windows.  ERROR_CLASS_HAS_WINDOWS ";
		break;
	case 1413:
		rep+=" Invalid index.  ERROR_INVALID_INDEX ";
		break;
	case 1414:
		rep+=" Invalid icon handle.  ERROR_INVALID_ICON_HANDLE ";
		break;
	case 1415:
		rep+=" Using private DIALOG window words.  ERROR_PRIVATE_DIALOG_INDEX ";
		break;
	case 1416:
		rep+=" The list box identifier was not found.  ERROR_LISTBOX_ID_NOT_FOUND ";
		break;
	case 1417:
		rep+=" No wildcards were found.  ERROR_NO_WILDCARD_CHARACTERS ";
		break;
	case 1418:
		rep+=" Thread does not have a clipboard open.  ERROR_CLIPBOARD_NOT_OPEN ";
		break;
	case 1419:
		rep+=" Hot key is not registered.  ERROR_HOTKEY_NOT_REGISTERED ";
		break;
	case 1420:
		rep+=" The window is not a valid dialog window.  ERROR_WINDOW_NOT_DIALOG ";
		break;
	case 1421:
		rep+=" Control ID not found.  ERROR_CONTROL_ID_NOT_FOUND ";
		break;
	case 1422:
		rep+=" Invalid message for a combo box because it does not have an edit control.  ERROR_INVALID_COMBOBOX_MESSAGE ";
		break;
	case 1423:
		rep+=" The window is not a combo box.  ERROR_WINDOW_NOT_COMBOBOX ";
		break;
	case 1424:
		rep+=" Height must be less than 256.  ERROR_INVALID_EDIT_HEIGHT ";
		break;
	case 1425:
		rep+=" Invalid device context (DC) handle.  ERROR_DC_NOT_FOUND ";
		break;
	case 1426:
		rep+=" Invalid hook procedure type.  ERROR_INVALID_HOOK_FILTER ";
		break;
	case 1427:
		rep+=" Invalid hook procedure.  ERROR_INVALID_FILTER_PROC ";
		break;
	case 1428:
		rep+=" Cannot set nonlocal hook without a module handle.  ERROR_HOOK_NEEDS_HMOD ";
		break;
	case 1429:
		rep+=" This hook procedure can only be set globally.  ERROR_GLOBAL_ONLY_HOOK ";
		break;
	case 1430:
		rep+=" The journal hook procedure is already installed.  ERROR_JOURNAL_HOOK_SET ";
		break;
	case 1431:
		rep+=" The hook procedure is not installed.  ERROR_HOOK_NOT_INSTALLED ";
		break;
	case 1432:
		rep+=" Invalid message for single-selection list box.  ERROR_INVALID_LB_MESSAGE ";
		break;
	case 1433:
		rep+=" LB_SETCOUNT sent to non-lazy list box.  ERROR_SETCOUNT_ON_BAD_LB ";
		break;
	case 1434:
		rep+=" This list box does not support tab stops.  ERROR_LB_WITHOUT_TABSTOPS ";
		break;
	case 1435:
		rep+=" Cannot destroy object created by another thread.  ERROR_DESTROY_OBJECT_OF_OTHER_THREAD ";
		break;
	case 1436:
		rep+=" Child windows cannot have menus.  ERROR_CHILD_WINDOW_MENU ";
		break;
	case 1437:
		rep+=" The window does not have a system menu.  ERROR_NO_SYSTEM_MENU ";
		break;
	case 1438:
		rep+=" Invalid message box style.  ERROR_INVALID_MSGBOX_STYLE ";
		break;
	case 1439:
		rep+=" Invalid system-wide (SPI_*) parameter.  ERROR_INVALID_SPI_VALUE ";
		break;
	case 1440:
		rep+=" Screen already locked.  ERROR_SCREEN_ALREADY_LOCKED ";
		break;
	case 1441:
		rep+=" All handles to windows in a multiple-window position structure must have the same parent.  ERROR_HWNDS_HAVE_DIFF_PARENT ";
		break;
	case 1442:
		rep+=" The window is not a child window.  ERROR_NOT_CHILD_WINDOW ";
		break;
	case 1443:
		rep+=" Invalid GW_* command.  ERROR_INVALID_GW_COMMAND ";
		break;
	case 1444:
		rep+=" Invalid thread identifier.  ERROR_INVALID_THREAD_ID ";
		break;
	case 1445:
		rep+=" Cannot process a message from a window that is not a multiple document interface (MDI) window.  ERROR_NON_MDICHILD_WINDOW ";
		break;
	case 1446:
		rep+=" Popup menu already active.  ERROR_POPUP_ALREADY_ACTIVE ";
		break;
	case 1447:
		rep+=" The window does not have scroll bars.  ERROR_NO_SCROLLBARS ";
		break;
	case 1448:
		rep+=" Scroll bar range cannot be greater than 0x7FFF.  ERROR_INVALID_SCROLLBAR_RANGE ";
		break;
	case 1449:
		rep+=" Cannot show or remove the window in the way specified.  ERROR_INVALID_SHOWWIN_COMMAND ";
		break;
	case 1450:
		rep+=" Insufficient system resources exist to complete the requested service.  ERROR_NO_SYSTEM_RESOURCES ";
		break;
	case 1451:
		rep+=" Insufficient system resources exist to complete the requested service.  ERROR_NONPAGED_SYSTEM_RESOURCES ";
		break;
	case 1452:
		rep+=" Insufficient system resources exist to complete the requested service.  ERROR_PAGED_SYSTEM_RESOURCES ";
		break;
	case 1453:
		rep+=" Insufficient quota to complete the requested service.  ERROR_WORKING_SET_QUOTA ";
		break;
	case 1454:
		rep+=" Insufficient quota to complete the requested service.  ERROR_PAGEFILE_QUOTA ";
		break;
	case 1455:
		rep+=" The paging file is too small for this operation to complete.  ERROR_COMMITMENT_LIMIT ";
		break;
	case 1456:
		rep+=" A menu item was not found.  ERROR_MENU_ITEM_NOT_FOUND ";
		break;
	case 1457:
		rep+=" Invalid keyboard layout handle.  ERROR_INVALID_KEYBOARD_HANDLE ";
		break;
	case 1458:
		rep+=" Hook type not allowed.  ERROR_HOOK_TYPE_NOT_ALLOWED ";
		break;
	case 1459:
		rep+=" This operation requires an interactive window station.  ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION ";
		break;
	case 1460:
		rep+=" This operation returned because the timeout period expired.  ERROR_TIMEOUT ";
		break;
	case 1461:
		rep+=" Invalid monitor handle.  ERROR_INVALID_MONITOR_HANDLE ";
		break;
	case 1500:
		rep+=" The event log file is corrupted.  ERROR_EVENTLOG_FILE_CORRUPT ";
		break;
	case 1501:
		rep+=" No event log file could be opened, so the event logging service did not start.  ERROR_EVENTLOG_CANT_START ";
		break;
	case 1502:
		rep+=" The event log file is full.  ERROR_LOG_FILE_FULL ";
		break;
	case 1503:
		rep+=" The event log file has changed between read operations.  ERROR_EVENTLOG_FILE_CHANGED ";
		break;
	case 1601:
		rep+=" Failure accessing install service.  ERROR_INSTALL_SERVICE ";
		break;
	case 1602:
		rep+=" The user canceled the installation.  ERROR_INSTALL_USEREXIT ";
		break;
	case 1603:
		rep+=" Fatal error during installation.  ERROR_INSTALL_FAILURE ";
		break;
	case 1604:
		rep+=" Installation suspended, incomplete.  ERROR_INSTALL_SUSPEND ";
		break;
	case 1605:
		rep+=" Product code not registered.  ERROR_UNKNOWN_PRODUCT ";
		break;
	case 1606:
		rep+=" Feature ID not registered.  ERROR_UNKNOWN_FEATURE ";
		break;
	case 1607:
		rep+=" Component ID not registered.  ERROR_UNKNOWN_COMPONENT ";
		break;
	case 1608:
		rep+=" Unknown property.  ERROR_UNKNOWN_PROPERTY ";
		break;
	case 1609:
		rep+=" Handle is in an invalid state.  ERROR_INVALID_HANDLE_STATE ";
		break;
	case 1610:
		rep+=" Configuration data corrupt.  ERROR_BAD_CONFIGURATION ";
		break;
	case 1611:
		rep+=" Language not available.  ERROR_INDEX_ABSENT ";
		break;
	case 1612:
		rep+=" Install source unavailable.  ERROR_INSTALL_SOURCE_ABSENT ";
		break;
	case 1613:
		rep+=" Database version unsupported.  ERROR_BAD_DATABASE_VERSION ";
		break;
	case 1614:
		rep+=" Product is uninstalled.  ERROR_PRODUCT_UNINSTALLED ";
		break;
	case 1615:
		rep+=" SQL query syntax invalid or unsupported.  ERROR_BAD_QUERY_SYNTAX ";
		break;
	case 1616:
		rep+=" Record field does not exist.  ERROR_INVALID_FIELD ";
		break;
	case 1700:
		rep+=" The string binding is invalid.  RPC_S_INVALID_STRING_BINDING ";
		break;
	case 1701:
		rep+=" The binding handle is not the correct type.  RPC_S_WRONG_KIND_OF_BINDING ";
		break;
	case 1702:
		rep+=" The binding handle is invalid.  RPC_S_INVALID_BINDING ";
		break;
	case 1703:
		rep+=" The RPC protocol sequence is not supported.  RPC_S_PROTSEQ_NOT_SUPPORTED ";
		break;
	case 1704:
		rep+=" The RPC protocol sequence is invalid.  RPC_S_INVALID_RPC_PROTSEQ ";
		break;
	case 1705:
		rep+=" The string universal unique identifier (UUID) is invalid.  RPC_S_INVALID_STRING_UUID ";
		break;
	case 1706:
		rep+=" The endpoint format is invalid.  RPC_S_INVALID_ENDPOINT_FORMAT ";
		break;
	case 1707:
		rep+=" The network address is invalid.  RPC_S_INVALID_NET_ADDR ";
		break;
	case 1708:
		rep+=" No endpoint was found.  RPC_S_NO_ENDPOINT_FOUND ";
		break;
	case 1709:
		rep+=" The timeout value is invalid.  RPC_S_INVALID_TIMEOUT ";
		break;
	case 1710:
		rep+=" The object universal unique identifier (UUID) was not found.  RPC_S_OBJECT_NOT_FOUND ";
		break;
	case 1711:
		rep+=" The object universal unique identifier (UUID) has already been registered.  RPC_S_ALREADY_REGISTERED ";
		break;
	case 1712:
		rep+=" The type universal unique identifier (UUID) has already been registered.  RPC_S_TYPE_ALREADY_REGISTERED ";
		break;
	case 1713:
		rep+=" The RPC server is already listening.  RPC_S_ALREADY_LISTENING ";
		break;
	case 1714:
		rep+=" No protocol sequences have been registered.  RPC_S_NO_PROTSEQS_REGISTERED ";
		break;
	case 1715:
		rep+=" The RPC server is not listening.  RPC_S_NOT_LISTENING ";
		break;
	case 1716:
		rep+=" The manager type is unknown.  RPC_S_UNKNOWN_MGR_TYPE ";
		break;
	case 1717:
		rep+=" The interface is unknown.  RPC_S_UNKNOWN_IF ";
		break;
	case 1718:
		rep+=" There are no bindings.  RPC_S_NO_BINDINGS ";
		break;
	case 1719:
		rep+=" There are no protocol sequences.  RPC_S_NO_PROTSEQS ";
		break;
	case 1720:
		rep+=" The endpoint cannot be created.  RPC_S_CANT_CREATE_ENDPOINT ";
		break;
	case 1721:
		rep+=" Not enough resources are available to complete this operation.  RPC_S_OUT_OF_RESOURCES ";
		break;
	case 1722:
		rep+=" The RPC server is unavailable.  RPC_S_SERVER_UNAVAILABLE ";
		break;
	case 1723:
		rep+=" The RPC server is too busy to complete this operation.  RPC_S_SERVER_TOO_BUSY ";
		break;
	case 1724:
		rep+=" The network options are invalid.  RPC_S_INVALID_NETWORK_OPTIONS ";
		break;
	case 1725:
		rep+=" There are no remote procedure calls active on this thread.  RPC_S_NO_CALL_ACTIVE ";
		break;
	case 1726:
		rep+=" The remote procedure call failed.  RPC_S_CALL_FAILED ";
		break;
	case 1727:
		rep+=" The remote procedure call failed and did not execute.  RPC_S_CALL_FAILED_DNE ";
		break;
	case 1728:
		rep+=" A remote procedure call (RPC) protocol error occurred.  RPC_S_PROTOCOL_ERROR ";
		break;
	case 1730:
		rep+=" The transfer syntax is not supported by the RPC server.  RPC_S_UNSUPPORTED_TRANS_SYN ";
		break;
	case 1732:
		rep+=" The universal unique identifier (UUID) type is not supported.  RPC_S_UNSUPPORTED_TYPE ";
		break;
	case 1733:
		rep+=" The tag is invalid.  RPC_S_INVALID_TAG ";
		break;
	case 1734:
		rep+=" The array bounds are invalid.  RPC_S_INVALID_BOUND ";
		break;
	case 1735:
		rep+=" The binding does not contain an entry name.  RPC_S_NO_ENTRY_NAME ";
		break;
	case 1736:
		rep+=" The name syntax is invalid.  RPC_S_INVALID_NAME_SYNTAX ";
		break;
	case 1737:
		rep+=" The name syntax is not supported.  RPC_S_UNSUPPORTED_NAME_SYNTAX ";
		break;
	case 1739:
		rep+=" No network address is available to use to construct a universal unique identifier (UUID).  RPC_S_UUID_NO_ADDRESS ";
		break;
	case 1740:
		rep+=" The endpoint is a duplicate.  RPC_S_DUPLICATE_ENDPOINT ";
		break;
	case 1741:
		rep+=" The authentication type is unknown.  RPC_S_UNKNOWN_AUTHN_TYPE ";
		break;
	case 1742:
		rep+=" The maximum number of calls is too small.  RPC_S_MAX_CALLS_TOO_SMALL ";
		break;
	case 1743:
		rep+=" The string is too long.  RPC_S_STRING_TOO_LONG ";
		break;
	case 1744:
		rep+=" The RPC protocol sequence was not found.  RPC_S_PROTSEQ_NOT_FOUND ";
		break;
	case 1745:
		rep+=" The procedure number is out of range.  RPC_S_PROCNUM_OUT_OF_RANGE ";
		break;
	case 1746:
		rep+=" The binding does not contain any authentication information.  RPC_S_BINDING_HAS_NO_AUTH ";
		break;
	case 1747:
		rep+=" The authentication service is unknown.  RPC_S_UNKNOWN_AUTHN_SERVICE ";
		break;
	case 1748:
		rep+=" The authentication level is unknown.  RPC_S_UNKNOWN_AUTHN_LEVEL ";
		break;
	case 1749:
		rep+=" The security context is invalid.  RPC_S_INVALID_AUTH_IDENTITY ";
		break;
	case 1750:
		rep+=" The authorization service is unknown.  RPC_S_UNKNOWN_AUTHZ_SERVICE ";
		break;
	case 1751:
		rep+=" The entry is invalid.  EPT_S_INVALID_ENTRY ";
		break;
	case 1752:
		rep+=" The server endpoint cannot perform the operation.  EPT_S_CANT_PERFORM_OP ";
		break;
	case 1753:
		rep+=" There are no more endpoints available from the endpoint mapper.  EPT_S_NOT_REGISTERED ";
		break;
	case 1754:
		rep+=" No interfaces have been exported.  RPC_S_NOTHING_TO_EXPORT ";
		break;
	case 1755:
		rep+=" The entry name is incomplete.  RPC_S_INCOMPLETE_NAME ";
		break;
	case 1756:
		rep+=" The version option is invalid.  RPC_S_INVALID_VERS_OPTION ";
		break;
	case 1757:
		rep+=" There are no more members.  RPC_S_NO_MORE_MEMBERS ";
		break;
	case 1758:
		rep+=" There is nothing to unexport.  RPC_S_NOT_ALL_OBJS_UNEXPORTED ";
		break;
	case 1759:
		rep+=" The interface was not found.  RPC_S_INTERFACE_NOT_FOUND ";
		break;
	case 1760:
		rep+=" The entry already exists.  RPC_S_ENTRY_ALREADY_EXISTS ";
		break;
	case 1761:
		rep+=" The entry is not found.  RPC_S_ENTRY_NOT_FOUND ";
		break;
	case 1762:
		rep+=" The name service is unavailable.  RPC_S_NAME_SERVICE_UNAVAILABLE ";
		break;
	case 1763:
		rep+=" The network address family is invalid.  RPC_S_INVALID_NAF_ID ";
		break;
	case 1764:
		rep+=" The requested operation is not supported.  RPC_S_CANNOT_SUPPORT ";
		break;
	case 1765:
		rep+=" No security context is available to allow impersonation.  RPC_S_NO_CONTEXT_AVAILABLE ";
		break;
	case 1766:
		rep+=" An internal error occurred in a remote procedure call (RPC).  RPC_S_INTERNAL_ERROR ";
		break;
	case 1767:
		rep+=" The RPC server attempted an integer division by zero.  RPC_S_ZERO_DIVIDE ";
		break;
	case 1768:
		rep+=" An addressing error occurred in the RPC server.  RPC_S_ADDRESS_ERROR ";
		break;
	case 1769:
		rep+=" A floating-point operation at the RPC server caused a division by zero.  RPC_S_FP_DIV_ZERO ";
		break;
	case 1770:
		rep+=" A floating-point underflow occurred at the RPC server.  RPC_S_FP_UNDERFLOW ";
		break;
	case 1771:
		rep+=" A floating-point overflow occurred at the RPC server.  RPC_S_FP_OVERFLOW ";
		break;
	case 1772:
		rep+=" The list of RPC servers available for the binding of auto handles has been exhausted.  RPC_X_NO_MORE_ENTRIES ";
		break;
	case 1773:
		rep+=" Unable to open the character translation table file.  RPC_X_SS_CHAR_TRANS_OPEN_FAIL ";
		break;
	case 1774:
		rep+=" The file containing the character translation table has fewer than bytes.  RPC_X_SS_CHAR_TRANS_SHORT_FILE ";
		break;
	case 1775:
		rep+=" A null context handle was passed from the client to the host during a remote procedure call.  RPC_X_SS_IN_NULL_CONTEXT ";
		break;
	case 1777:
		rep+=" The context handle changed during a remote procedure call.  RPC_X_SS_CONTEXT_DAMAGED ";
		break;
	case 1778:
		rep+=" The binding handles passed to a remote procedure call do not match.  RPC_X_SS_HANDLES_MISMATCH ";
		break;
	case 1779:
		rep+=" The stub is unable to get the remote procedure call handle.  RPC_X_SS_CANNOT_GET_CALL_HANDLE ";
		break;
	case 1780:
		rep+=" A null reference pointer was passed to the stub.  RPC_X_NULL_REF_POINTER ";
		break;
	case 1781:
		rep+=" The enumeration value is out of range.  RPC_X_ENUM_VALUE_OUT_OF_RANGE ";
		break;
	case 1782:
		rep+=" The byte count is too small.  RPC_X_BYTE_COUNT_TOO_SMALL ";
		break;
	case 1783:
		rep+=" The stub received bad data.  RPC_X_BAD_STUB_DATA ";
		break;
	case 1784:
		rep+=" The supplied user buffer is not valid for the requested operation.  ERROR_INVALID_USER_BUFFER ";
		break;
	case 1785:
		rep+=" The disk media is not recognized. It may not be formatted.  ERROR_UNRECOGNIZED_MEDIA ";
		break;
	case 1786:
		rep+=" The workstation does not have a trust secret.  ERROR_NO_TRUST_LSA_SECRET ";
		break;
	case 1787:
		rep+=" The SAM database on the Windows NT Server does not have a computer account for this workstation trust relationship.  ERROR_NO_TRUST_SAM_ACCOUNT ";
		break;
	case 1788:
		rep+=" The trust relationship between the primary domain and the trusted domain failed.  ERROR_TRUSTED_DOMAIN_FAILURE ";
		break;
	case 1789:
		rep+=" The trust relationship between this workstation and the primary domain failed.  ERROR_TRUSTED_RELATIONSHIP_FAILURE ";
		break;
	case 1790:
		rep+=" The network logon failed.  ERROR_TRUST_FAILURE ";
		break;
	case 1791:
		rep+=" A remote procedure call is already in progress for this thread.  RPC_S_CALL_IN_PROGRESS ";
		break;
	case 1792:
		rep+=" An attempt was made to logon, but the network logon service was not started.  ERROR_NETLOGON_NOT_STARTED ";
		break;
	case 1793:
		rep+=" The user's account has expired.  ERROR_ACCOUNT_EXPIRED ";
		break;
	case 1794:
		rep+=" The redirector is in use and cannot be unloaded.  ERROR_REDIRECTOR_HAS_OPEN_HANDLES ";
		break;
	case 1795:
		rep+=" The specified printer driver is already installed.  ERROR_PRINTER_DRIVER_ALREADY_INSTALLED ";
		break;
	case 1796:
		rep+=" The specified port is unknown.  ERROR_UNKNOWN_PORT ";
		break;
	case 1797:
		rep+=" The printer driver is unknown.  ERROR_UNKNOWN_PRINTER_DRIVER ";
		break;
	case 1798:
		rep+=" The print processor is unknown.  ERROR_UNKNOWN_PRINTPROCESSOR ";
		break;
	case 1799:
		rep+=" The specified separator file is invalid.  ERROR_INVALID_SEPARATOR_FILE ";
		break;
	case 1800:
		rep+=" The specified priority is invalid.  ERROR_INVALID_PRIORITY ";
		break;
	case 1801:
		rep+=" The printer name is invalid.  ERROR_INVALID_PRINTER_NAME ";
		break;
	case 1802:
		rep+=" The printer already exists.  ERROR_PRINTER_ALREADY_EXISTS ";
		break;
	case 1803:
		rep+=" The printer command is invalid.  ERROR_INVALID_PRINTER_COMMAND ";
		break;
	case 1804:
		rep+=" The specified datatype is invalid.  ERROR_INVALID_DATATYPE ";
		break;
	case 1805:
		rep+=" The environment specified is invalid.  ERROR_INVALID_ENVIRONMENT ";
		break;
	case 1806:
		rep+=" There are no more bindings.  RPC_S_NO_MORE_BINDINGS ";
		break;
	case 1807:
		rep+=" The account used is an interdomain trust account. Use your global user account or local user account to access this server.  ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT ";
		break;
	case 1808:
		rep+=" The account used is a computer account. Use your global user account or local user account to access this server.  ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT ";
		break;
	case 1809:
		rep+=" The account used is a server trust account. Use your global user account or local user account to access this server.  ERROR_NOLOGON_SERVER_TRUST_ACCOUNT ";
		break;
	case 1810:
		rep+=" The name or security ID (SID) of the domain specified is inconsistent with the trust information for that domain.  ERROR_DOMAIN_TRUST_INCONSISTENT ";
		break;
	case 1811:
		rep+=" The server is in use and cannot be unloaded.  ERROR_SERVER_HAS_OPEN_HANDLES ";
		break;
	case 1812:
		rep+=" The specified image file did not contain a resource section.  ERROR_RESOURCE_DATA_NOT_FOUND ";
		break;
	case 1813:
		rep+=" The specified resource type cannot be found in the image file.  ERROR_RESOURCE_TYPE_NOT_FOUND ";
		break;
	case 1814:
		rep+=" The specified resource name cannot be found in the image file.  ERROR_RESOURCE_NAME_NOT_FOUND ";
		break;
	case 1815:
		rep+=" The specified resource language ID cannot be found in the image file.  ERROR_RESOURCE_LANG_NOT_FOUND ";
		break;
	case 1816:
		rep+=" Not enough quota is available to process this command.  ERROR_NOT_ENOUGH_QUOTA ";
		break;
	case 1817:
		rep+=" No interfaces have been registered.  RPC_S_NO_INTERFACES ";
		break;
	case 1818:
		rep+=" The remote procedure call was cancelled.  RPC_S_CALL_CANCELLED ";
		break;
	case 1819:
		rep+=" The binding handle does not contain all required information.  RPC_S_BINDING_INCOMPLETE ";
		break;
	case 1820:
		rep+=" A communications failure occurred during a remote procedure call.  RPC_S_COMM_FAILURE ";
		break;
	case 1821:
		rep+=" The requested authentication level is not supported.  RPC_S_UNSUPPORTED_AUTHN_LEVEL ";
		break;
	case 1822:
		rep+=" No principal name registered.  RPC_S_NO_PRINC_NAME ";
		break;
	case 1823:
		rep+=" The error specified is not a valid Windows RPC error code.  RPC_S_NOT_RPC_ERROR ";
		break;
	case 1824:
		rep+=" A UUID that is valid only on this computer has been allocated.  RPC_S_UUID_LOCAL_ONLY ";
		break;
	case 1825:
		rep+=" A security package specific error occurred.  RPC_S_SEC_PKG_ERROR ";
		break;
	case 1826:
		rep+=" Thread is not canceled.  RPC_S_NOT_CANCELLED ";
		break;
	case 1827:
		rep+=" Invalid operation on the encoding/decoding handle.  RPC_X_INVALID_ES_ACTION ";
		break;
	case 1828:
		rep+=" Incompatible version of the serializing package.  RPC_X_WRONG_ES_VERSION ";
		break;
	case 1829:
		rep+=" Incompatible version of the RPC stub.  RPC_X_WRONG_STUB_VERSION ";
		break;
	case 1830:
		rep+=" The RPC pipe object is invalid or corrupted.  RPC_X_INVALID_PIPE_OBJECT ";
		break;
	case 1831:
		rep+=" An invalid operation was attempted on an RPC pipe object.  RPC_X_WRONG_PIPE_ORDER ";
		break;
	case 1832:
		rep+=" Unsupported RPC pipe version.  RPC_X_WRONG_PIPE_VERSION ";
		break;
	case 1898:
		rep+=" The group member was not found.  RPC_S_GROUP_MEMBER_NOT_FOUND ";
		break;
	case 1899:
		rep+=" The endpoint mapper database entry could not be created.  EPT_S_CANT_CREATE ";
		break;
	case 1900:
		rep+=" The object universal unique identifier (UUID) is the nil UUID.  RPC_S_INVALID_OBJECT ";
		break;
	case 1901:
		rep+=" The specified time is invalid.  ERROR_INVALID_TIME ";
		break;
	case 1902:
		rep+=" The specified form name is invalid.  ERROR_INVALID_FORM_NAME ";
		break;
	case 1903:
		rep+=" The specified form size is invalid.  ERROR_INVALID_FORM_SIZE ";
		break;
	case 1904:
		rep+=" The specified printer handle is already being waited on  ERROR_ALREADY_WAITING ";
		break;
	case 1905:
		rep+=" The specified printer has been deleted.  ERROR_PRINTER_DELETED ";
		break;
	case 1906:
		rep+=" The state of the printer is invalid.  ERROR_INVALID_PRINTER_STATE ";
		break;
	case 1907:
		rep+=" The user must change his password before he logs on the first time.  ERROR_PASSWORD_MUST_CHANGE ";
		break;
	case 1908:
		rep+=" Could not find the domain controller for this domain.  ERROR_DOMAIN_CONTROLLER_NOT_FOUND ";
		break;
	case 1909:
		rep+=" The referenced account is currently locked out and may not be logged on to.  ERROR_ACCOUNT_LOCKED_OUT ";
		break;
	case 1910:
		rep+=" The object exporter specified was not found.  OR_INVALID_OXID ";
		break;
	case 1911:
		rep+=" The object specified was not found.  OR_INVALID_OID ";
		break;
	case 1912:
		rep+=" The object resolver set specified was not found.  OR_INVALID_SET ";
		break;
	case 1913:
		rep+=" Some data remains to be sent in the request buffer.  RPC_S_SEND_INCOMPLETE ";
		break;
	case 1914:
		rep+=" Invalid asynchronous remote procedure call handle.  RPC_S_INVALID_ASYNC_HANDLE ";
		break;
	case 1915:
		rep+=" Invalid asynchronous RPC call handle for this operation.  RPC_S_INVALID_ASYNC_CALL ";
		break;
	case 1916:
		rep+=" The RPC pipe object has already been closed.  RPC_X_PIPE_CLOSED ";
		break;
	case 1917:
		rep+=" The RPC call completed before all pipes were processed.  RPC_X_PIPE_DISCIPLINE_ERROR ";
		break;
	case 1918:
		rep+=" No more data is available from the RPC pipe.  RPC_X_PIPE_EMPTY ";
		break;
	case 1919:
		rep+=" No site name is available for this machine.  ERROR_NO_SITENAME ";
		break;
	case 1920:
		rep+=" The file can not be accessed by the system.  ERROR_CANT_ACCESS_FILE ";
		break;
	case 1921:
		rep+=" The name of the file cannot be resolved by the system.  ERROR_CANT_RESOLVE_FILENAME ";
		break;
	case 1922:
		rep+=" The directory service evaluated group memberships locally.  ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY ";
		break;
	case 1923:
		rep+=" The specified directory service attribute or value does not exist.  ERROR_DS_NO_ATTRIBUTE_OR_VALUE ";
		break;
	case 1924:
		rep+=" The attribute syntax specified to the directory service is invalid.  ERROR_DS_INVALID_ATTRIBUTE_SYNTAX ";
		break;
	case 1925:
		rep+=" The attribute type specified to the directory service is not defined.  ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED ";
		break;
	case 1926:
		rep+=" The specified directory service attribute or value already exists.  ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS ";
		break;
	case 1927:
		rep+=" The directory service is busy.  ERROR_DS_BUSY ";
		break;
	case 1928:
		rep+=" The directory service is unavailable.  ERROR_DS_UNAVAILABLE ";
		break;
	case 1929:
		rep+=" The directory service was unable to allocate a relative identifier.  ERROR_DS_NO_RIDS_ALLOCATED ";
		break;
	case 1930:
		rep+=" The directory service has exhausted the pool of relative identifiers.  ERROR_DS_NO_MORE_RIDS ";
		break;
	case 1931:
		rep+=" The requested operation could not be performed because the directory service is not the master for that type of operation.  ERROR_DS_INCORRECT_ROLE_OWNER ";
		break;
	case 1932:
		rep+=" The directory service was unable to initialize the subsystem that allocates relative identifiers.  ERROR_DS_RIDMGR_INIT_ERROR ";
		break;
	case 1933:
		rep+=" The requested operation did not satisfy one or more constraints associated with the class of the object.  ERROR_DS_OBJ_CLASS_VIOLATION ";
		break;
	case 1934:
		rep+=" The directory service can perform the requested operation only on a leaf object.  ERROR_DS_CANT_ON_NON_LEAF ";
		break;
	case 1935:
		rep+=" The directory service cannot perform the requested operation on the RDN attribute of an object.  ERROR_DS_CANT_ON_RDN ";
		break;
	case 1936:
		rep+=" The directory service detected an attempt to modify the object class of an object.  ERROR_DS_CANT_MOD_OBJ_CLASS ";
		break;
	case 1937:
		rep+=" The requested cross domain move operation could not be performed.  ERROR_DS_CROSS_DOM_MOVE_ERROR ";
		break;
	case 1938:
		rep+=" Unable to contact the global catalog server.  ERROR_DS_GC_NOT_AVAILABLE ";
		break;
	case 2000:
		rep+=" The pixel format is invalid.  ERROR_INVALID_PIXEL_FORMAT ";
		break;
	case 2001:
		rep+=" The specified driver is invalid.  ERROR_BAD_DRIVER ";
		break;
	case 2002:
		rep+=" The window style or class attribute is invalid for this operation.  ERROR_INVALID_WINDOW_STYLE ";
		break;
	case 2003:
		rep+=" The requested metafile operation is not supported.  ERROR_METAFILE_NOT_SUPPORTED ";
		break;
	case 2004:
		rep+=" The requested transformation operation is not supported.  ERROR_TRANSFORM_NOT_SUPPORTED ";
		break;
	case 2005:
		rep+=" The requested clipping operation is not supported.  ERROR_CLIPPING_NOT_SUPPORTED ";
		break;
	case 2108:
		rep+=" The network connection was made successfully, but the user had to be prompted for a password other than the one originally specified.  ERROR_CONNECTED_OTHER_PASSWORD ";
		break;
	case 2202:
		rep+=" The specified username is invalid.  ERROR_BAD_USERNAME ";
		break;
	case 2250:
		rep+=" This network connection does not exist.  ERROR_NOT_CONNECTED ";
		break;
	case 2300:
		rep+=" The specified color management module is invalid.  ERROR_INVALID_CMM ";
		break;
	case 2301:
		rep+=" The specified color profile is invalid.  ERROR_INVALID_PROFILE ";
		break;
	case 2302:
		rep+=" The specified tag was not found.  ERROR_TAG_NOT_FOUND ";
		break;
	case 2303:
		rep+=" A required tag is not present.  ERROR_TAG_NOT_PRESENT ";
		break;
	case 2304:
		rep+=" The specified tag is already present.  ERROR_DUPLICATE_TAG ";
		break;
	case 2305:
		rep+=" The specified color profile is not associated with any device.  ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE ";
		break;
	case 2306:
		rep+=" The specified color profile was not found.  ERROR_PROFILE_NOT_FOUND ";
		break;
	case 2307:
		rep+=" The specified color space is invalid.  ERROR_INVALID_COLORSPACE ";
		break;
	case 2308:
		rep+=" Image Color Management is not enabled.  ERROR_ICM_NOT_ENABLED ";
		break;
	case 2309:
		rep+=" There was an error while deleting the color transform.  ERROR_DELETING_ICM_XFORM ";
		break;
	case 2310:
		rep+=" The specified color transform is invalid.  ERROR_INVALID_TRANSFORM ";
		break;
	case 2401:
		rep+=" This network connection has files open or requests pending.  ERROR_OPEN_FILES ";
		break;
	case 2402:
		rep+=" Active connections still exist.  ERROR_ACTIVE_CONNECTIONS ";
		break;
	case 2404:
		rep+=" The device is in use by an active process and cannot be disconnected.  ERROR_DEVICE_IN_USE ";
		break;
	case 3000:
		rep+=" The specified print monitor is unknown.  ERROR_UNKNOWN_PRINT_MONITOR ";
		break;
	case 3001:
		rep+=" The specified printer driver is currently in use.  ERROR_PRINTER_DRIVER_IN_USE ";
		break;
	case 3002:
		rep+=" The spool file was not found.  ERROR_SPOOL_FILE_NOT_FOUND ";
		break;
	case 3003:
		rep+=" A StartDocPrinter call was not issued.  ERROR_SPL_NO_STARTDOC ";
		break;
	case 3004:
		rep+=" An AddJob call was not issued.  ERROR_SPL_NO_ADDJOB ";
		break;
	case 3005:
		rep+=" The specified print processor has already been installed.  ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED ";
		break;
	case 3006:
		rep+=" The specified print monitor has already been installed.  ERROR_PRINT_MONITOR_ALREADY_INSTALLED ";
		break;
	case 3007:
		rep+=" The specified print monitor does not have the required functions.  ERROR_INVALID_PRINT_MONITOR ";
		break;
	case 3008:
		rep+=" The specified print monitor is currently in use.  ERROR_PRINT_MONITOR_IN_USE ";
		break;
	case 3009:
		rep+=" The requested operation is not allowed when there are jobs queued to the printer.  ERROR_PRINTER_HAS_JOBS_QUEUED ";
		break;
	case 3010:
		rep+=" The requested operation is successful. Changes will not be effective until the system is rebooted.  ERROR_SUCCESS_REBOOT_REQUIRED ";
		break;
	case 3011:
		rep+=" The requested operation is successful. Changes will not be effective until the service is restarted.  ERROR_SUCCESS_RESTART_REQUIRED ";
		break;
	case 4000:
		rep+=" WINS encountered an error while processing the command.  ERROR_WINS_INTERNAL ";
		break;
	case 4001:
		rep+=" The local WINS can not be deleted.  ERROR_CAN_NOT_DEL_LOCAL_WINS ";
		break;
	case 4002:
		rep+=" The importation from the file failed.  ERROR_STATIC_INIT ";
		break;
	case 4003:
		rep+=" The backup failed. Was a full backup done before?  ERROR_INC_BACKUP ";
		break;
	case 4004:
		rep+=" The backup failed. Check the directory to which you are backing the database.  ERROR_FULL_BACKUP ";
		break;
	case 4005:
		rep+=" The name does not exist in the WINS database.  ERROR_REC_NON_EXISTENT ";
		break;
	case 4006:
		rep+=" Replication with a nonconfigured partner is not allowed.  ERROR_RPL_NOT_ALLOWED ";
		break;
	case 4100:
		rep+=" The DHCP client has obtained an IP address that is already in use on the network. The local interface will be disabled until the DHCP client can obtain a new address.  ERROR_DHCP_ADDRESS_CONFLICT ";
		break;
	case 4200:
		rep+=" The GUID passed was not recognized as valid by a WMI data provider.  ERROR_WMI_GUID_NOT_FOUND ";
		break;
	case 4201:
		rep+=" The instance name passed was not recognized as valid by a WMI data provider.  ERROR_WMI_INSTANCE_NOT_FOUND ";
		break;
	case 4202:
		rep+=" The data item ID passed was not recognized as valid by a WMI data provider.  ERROR_WMI_ITEMID_NOT_FOUND ";
		break;
	case 4203:
		rep+=" The WMI request could not be completed and should be retried.  ERROR_WMI_TRY_AGAIN ";
		break;
	case 4204:
		rep+=" The WMI data provider could not be located.  ERROR_WMI_DP_NOT_FOUND ";
		break;
	case 4205:
		rep+=" The WMI data provider references an instance set that has not been registered.  ERROR_WMI_UNRESOLVED_INSTANCE_REF ";
		break;
	case 4206:
		rep+=" The WMI data block or event notification has already been enabled.  ERROR_WMI_ALREADY_ENABLED ";
		break;
	case 4207:
		rep+=" The WMI data block is no longer available.  ERROR_WMI_GUID_DISCONNECTED ";
		break;
	case 4208:
		rep+=" The WMI data service is not available.  ERROR_WMI_SERVER_UNAVAILABLE ";
		break;
	case 4209:
		rep+=" The WMI data provider failed to carry out the request.  ERROR_WMI_DP_FAILED ";
		break;
	case 4210:
		rep+=" The WMI MOF information is not valid.  ERROR_WMI_INVALID_MOF ";
		break;
	case 4211:
		rep+=" The WMI registration information is not valid.  ERROR_WMI_INVALID_REGINFO ";
		break;
	case 4300:
		rep+=" The media identifier does not represent a valid medium.  ERROR_INVALID_MEDIA ";
		break;
	case 4301:
		rep+=" The library identifier does not represent a valid library.  ERROR_INVALID_LIBRARY ";
		break;
	case 4302:
		rep+=" The media pool identifier does not represent a valid media pool.  ERROR_INVALID_MEDIA_POOL ";
		break;
	case 4303:
		rep+=" The drive and medium are not compatible or exist in different libraries.  ERROR_DRIVE_MEDIA_MISMATCH ";
		break;
	case 4304:
		rep+=" The medium currently exists in an offline library and must be online to perform this operation.  ERROR_MEDIA_OFFLINE ";
		break;
	case 4305:
		rep+=" The operation cannot be performed on an offline library.  ERROR_LIBRARY_OFFLINE ";
		break;
	case 4306:
		rep+=" The library, drive, or media pool is empty.  ERROR_EMPTY ";
		break;
	case 4307:
		rep+=" The library, drive, or media pool must be empty to perform this operation.  ERROR_NOT_EMPTY ";
		break;
	case 4308:
		rep+=" No media is currently available in this media pool or library.  ERROR_MEDIA_UNAVAILABLE ";
		break;
	case 4309:
		rep+=" A resource required for this operation is disabled.  ERROR_RESOURCE_DISABLED ";
		break;
	case 4310:
		rep+=" The media identifier does not represent a valid cleaner.  ERROR_INVALID_CLEANER ";
		break;
	case 4311:
		rep+=" The drive cannot be cleaned or does not support cleaning.  ERROR_UNABLE_TO_CLEAN ";
		break;
	case 4312:
		rep+=" The object identifier does not represent a valid object.  ERROR_OBJECT_NOT_FOUND ";
		break;
	case 4313:
		rep+=" Unable to read from or write to the database.  ERROR_DATABASE_FAILURE ";
		break;
	case 4314:
		rep+=" The database is full.  ERROR_DATABASE_FULL ";
		break;
	case 4315:
		rep+=" The medium is not compatible with the device or media pool.  ERROR_MEDIA_INCOMPATIBLE ";
		break;
	case 4316:
		rep+=" The resource required for this operation does not exist.  ERROR_RESOURCE_NOT_PRESENT ";
		break;
	case 4317:
		rep+=" The operation identifier is not valid.  ERROR_INVALID_OPERATION ";
		break;
	case 4318:
		rep+=" The media is not mounted or ready for use.  ERROR_MEDIA_NOT_AVAILABLE ";
		break;
	case 4319:
		rep+=" The device is not ready for use.  ERROR_DEVICE_NOT_AVAILABLE ";
		break;
	case 4320:
		rep+=" The operator or administrator has refused the request.  ERROR_REQUEST_REFUSED ";
		break;
	case 4350:
		rep+=" The remote storage service was not able to recall the file.  ERROR_FILE_OFFLINE ";
		break;
	case 4351:
		rep+=" The remote storage service is not operational at this time.  ERROR_REMOTE_STORAGE_NOT_ACTIVE ";
		break;
	case 4352:
		rep+=" The remote storage service encountered a media error.  ERROR_REMOTE_STORAGE_MEDIA_ERROR ";
		break;
	case 4390:
		rep+=" The file or directory is not a reparse point.  ERROR_NOT_A_REPARSE_POINT ";
		break;
	case 4391:
		rep+=" The reparse point attribute cannot be set because it conflicts with an existing attribute.  ERROR_REPARSE_ATTRIBUTE_CONFLICT ";
		break;
	case 5001:
		rep+=" The cluster resource cannot be moved to another group because other resources are dependent on it.  ERROR_DEPENDENT_RESOURCE_EXISTS ";
		break;
	case 5002:
		rep+=" The cluster resource dependency cannot be found.  ERROR_DEPENDENCY_NOT_FOUND ";
		break;
	case 5003:
		rep+=" The cluster resource cannot be made dependent on the specified resource because it is already dependent.  ERROR_DEPENDENCY_ALREADY_EXISTS ";
		break;
	case 5004:
		rep+=" The cluster resource is not online.  ERROR_RESOURCE_NOT_ONLINE ";
		break;
	case 5005:
		rep+=" A cluster node is not available for this operation.  ERROR_HOST_NODE_NOT_AVAILABLE ";
		break;
	case 5006:
		rep+=" The cluster resource is not available.  ERROR_RESOURCE_NOT_AVAILABLE ";
		break;
	case 5007:
		rep+=" The cluster resource could not be found.  ERROR_RESOURCE_NOT_FOUND ";
		break;
	case 5008:
		rep+=" The cluster is being shut down.  ERROR_SHUTDOWN_CLUSTER ";
		break;
	case 5009:
		rep+=" A cluster node cannot be evicted from the cluster while it is online.  ERROR_CANT_EVICT_ACTIVE_NODE ";
		break;
	case 5010:
		rep+=" The object already exists.  ERROR_OBJECT_ALREADY_EXISTS ";
		break;
	case 5011:
		rep+=" The object is already in the list.  ERROR_OBJECT_IN_LIST ";
		break;
	case 5012:
		rep+=" The cluster group is not available for any new requests.  ERROR_GROUP_NOT_AVAILABLE ";
		break;
	case 5013:
		rep+=" The cluster group could not be found.  ERROR_GROUP_NOT_FOUND ";
		break;
	case 5014:
		rep+=" The operation could not be completed because the cluster group is not online.  ERROR_GROUP_NOT_ONLINE ";
		break;
	case 5015:
		rep+=" The cluster node is not the owner of the resource.  ERROR_HOST_NODE_NOT_RESOURCE_OWNER ";
		break;
	case 5016:
		rep+=" The cluster node is not the owner of the group.  ERROR_HOST_NODE_NOT_GROUP_OWNER ";
		break;
	case 5017:
		rep+=" The cluster resource could not be created in the specified resource monitor.  ERROR_RESMON_CREATE_FAILED ";
		break;
	case 5018:
		rep+=" The cluster resource could not be brought online by the resource monitor.  ERROR_RESMON_ONLINE_FAILED ";
		break;
	case 5019:
		rep+=" The operation could not be completed because the cluster resource is online.  ERROR_RESOURCE_ONLINE ";
		break;
	case 5020:
		rep+=" The cluster resource could not be deleted or brought offline because it is the quorum resource.  ERROR_QUORUM_RESOURCE ";
		break;
	case 5021:
		rep+=" The cluster could not make the specified resource a quorum resource because it is not capable of being a quorum resource.  ERROR_NOT_QUORUM_CAPABLE ";
		break;
	case 5022:
		rep+=" The cluster software is shutting down.  ERROR_CLUSTER_SHUTTING_DOWN ";
		break;
	case 5023:
		rep+=" The group or resource is not in the correct state to perform the requested operation.  ERROR_INVALID_STATE ";
		break;
	case 5024:
		rep+=" The properties were stored but not all changes will take effect until the next time the resource is brought online.  ERROR_RESOURCE_PROPERTIES_STORED ";
		break;
	case 5025:
		rep+=" The cluster could not make the specified resource a quorum resource because it does not belong to a shared storage class.  ERROR_NOT_QUORUM_CLASS ";
		break;
	case 5026:
		rep+=" The cluster resource could not be deleted since it is a core resource.  ERROR_CORE_RESOURCE ";
		break;
	case 5027:
		rep+=" The quorum resource failed to come online.  ERROR_QUORUM_RESOURCE_ONLINE_FAILED ";
		break;
	case 5028:
		rep+=" The quorum log could not be created or mounted successfully.  ERROR_QUORUMLOG_OPEN_FAILED ";
		break;
	case 5029:
		rep+=" The cluster log is corrupt.  ERROR_CLUSTERLOG_CORRUPT ";
		break;
	case 5030:
		rep+=" The record could not be written to the cluster log since it exceeds the maximum size.  ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE ";
		break;
	case 5031:
		rep+=" The cluster log exceeds its maximum size.  ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE ";
		break;
	case 5032:
		rep+=" No checkpoint record was found in the cluster log.  ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND ";
		break;
	case 5033:
		rep+=" The minimum required disk space needed for logging is not available.  ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE ";
		break;
	case 6000:
		rep+=" The specified file could not be encrypted.  ERROR_ENCRYPTION_FAILED ";
		break;
	case 6001:
		rep+=" The specified file could not be decrypted.  ERROR_DECRYPTION_FAILED ";
		break;
	case 6002:
		rep+=" The specified file is encrypted and the user does not have the ability to decrypt it.  ERROR_FILE_ENCRYPTED ";
		break;
	case 6003:
		rep+=" There is no encryption recovery policy configured for this system.  ERROR_NO_RECOVERY_POLICY ";
		break;
	case 6004:
		rep+=" The required encryption driver is not loaded for this system.  ERROR_NO_EFS ";
		break;
	case 6005:
		rep+=" The file was encrypted with a different encryption driver than is currently loaded.  ERROR_WRONG_EFS ";
		break;
	case 6006:
		rep+=" There are no EFS keys defined for the user.  ERROR_NO_USER_KEYS ";
		break;
	case 6007:
		rep+=" The specified file is not encrypted.  ERROR_FILE_NOT_ENCRYPTED ";
		break;
	case 6008:
		rep+=" The specified file is not in the defined EFS export format.  ERROR_NOT_EXPORT_FORMAT ";
		break;
	case 6118:
		rep+=" The list of servers for this workgroup is not currently available  ERROR_NO_BROWSER_SERVERS_FOUND ";
		break;
	default:
		rep+="inconnu";
	}
	return rep;
}

Conclusion :


Si quelqu'un veut s'amuser à traduire toutes les chaines en français, ça pourrait être sympa.

Bonne Prog

Nono

Rq pour les programmeurs avancés : je ne dispose pas encore des MSDN 7.0 => ici ne sont prises en cpte que les erreurs documentées dans les MSDN 6.0

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.