Conexion sql server 7.0 y visual basic 6.0

Jorge Armando
07 de Febrero del 2005
Amigos Expertos. Por favor ayudenme con la conexion de estoas dos aplicaciones ya que no me queda muy claro como es la conexion. Es mi primera vez con el sql server. Gracias

MALU
07 de Febrero del 2005
'con este codigo puedes conectar tu base esto va en un modulo que puedes llamar conexion
' tienes que agregar el modulo modConexion

Public Base As ADODB.Connection
Public Tabla As ADODB.Recordset
Public spSql As String
Public bpVacia As Boolean
Public bpError As Boolean
Public Sub pConexion(spSql)

'Por si esta abierta
Set Base = Nothing
Set Tabla = Nothing

'Crear los objetos
Set Base = New ADODB.Connection
Set Tabla = New ADODB.Recordset

'Abrir la base
Base.Open "Provider = SQLOLEDB; " & _
"Data Source = NOMBRE DEL SERVIDOR SQL; " & _'EL GUION BAJO TAMBIEN VA!!!!
"Initial Catalog = COLCHONES PRO; " & _
"User Id =sa; " & _
"Password =;"

'Abrir el recordset
Tabla.Open spSql, Base, adOpenDynamic, adLockOptimistic
End Sub

' en otro modulo que llamaras de modErrores agragras esto copialo no tienes que modificar nada
Option Explicit

Private Const ERROR_SUCCESS = 0
Private Const ERROR_INVALID_FUNCTION = 1
Private Const ERROR_FILE_NOT_FOUND = 2
Private Const ERROR_PATH_NOT_FOUND = 3
Private Const ERROR_TOO_MANY_OPEN_FILES = 4
Private Const ERROR_ACCESS_DENIED = 5
Private Const ERROR_INVALID_HANDLE = 6
Private Const ERROR_ARENA_TRASHED = 7
Private Const ERROR_NOT_ENOUGH_MEMORY = 8
Private Const ERROR_INVALID_BLOCK = 9
Private Const ERROR_BAD_ENVIRONMENT = 10
Private Const ERROR_BAD_FORMAT = 11
Private Const ERROR_INVALID_ACCESS = 12
Private Const ERROR_INVALID_DATA = 13
Private Const ERROR_OUTOFMEMORY = 14
Private Const ERROR_INVALID_DRIVE = 15
Private Const ERROR_CURRENT_DIRECTORY = 16
Private Const ERROR_NOT_SAME_DEVICE = 17
Private Const ERROR_NO_MORE_FILES = 18
Private Const ERROR_WRITE_PROTECT = 19
Private Const ERROR_BAD_UNIT = 20
Private Const ERROR_NOT_READY = 21
Private Const ERROR_BAD_COMMAND = 22
Private Const ERROR_CRC = 23
Private Const ERROR_BAD_LENGTH = 24
Private Const ERROR_SEEK = 25
Private Const ERROR_NOT_DOS_DISK = 26
Private Const ERROR_SECTOR_NOT_FOUND = 27
Private Const ERROR_OUT_OF_PAPER = 28
Private Const ERROR_WRITE_FAULT = 29
Private Const ERROR_READ_FAULT = 30
Private Const ERROR_GEN_FAILURE = 31
Private Const ERROR_SHARING_VIOLATION = 32
Private Const ERROR_LOCK_VIOLATION = 33
Private Const ERROR_WRONG_DISK = 34
Private Const ERROR_SHARING_BUFFER_EXCEEDED = 36
Private Const ERROR_HANDLE_EOF = 38
Private Const ERROR_HANDLE_DISK_FULL = 39
Private Const ERROR_NOT_SUPPORTED = 50
Private Const ERROR_REM_NOT_LIST = 51
Private Const ERROR_DUP_NAME = 52
Private Const ERROR_BAD_NETPATH = 53
Private Const ERROR_NETWORK_BUSY = 54
Private Const ERROR_DEV_NOT_EXIST = 55
Private Const ERROR_TOO_MANY_CMDS = 56
Private Const ERROR_ADAP_HDW_ERR = 57
Private Const ERROR_BAD_NET_RESP = 58
Private Const ERROR_UNEXP_NET_ERR = 59
Private Const ERROR_BAD_REM_ADAP = 60
Private Const ERROR_PRINTQ_FULL = 61
Private Const ERROR_NO_SPOOL_SPACE = 62
Private Const ERROR_PRINT_CANCELLED = 63
Private Const ERROR_NETNAME_DELETED = 64
Private Const ERROR_NETWORK_ACCESS_DENIED = 65
Private Const ERROR_BAD_DEV_TYPE = 66
Private Const ERROR_BAD_NET_NAME = 67
Private Const ERROR_TOO_MANY_NAMES = 68
Private Const ERROR_TOO_MANY_SESS = 69
Private Const ERROR_SHARING_PAUSED = 70
Private Const ERROR_REQ_NOT_ACCEP = 71
Private Const ERROR_REDIR_PAUSED = 72
Private Const ERROR_FILE_EXISTS = 80
Private Const ERROR_CANNOT_MAKE = 82
Private Const ERROR_FAIL_I24 = 83
Private Const ERROR_OUT_OF_STRUCTURES = 84
Private Const ERROR_ALREADY_ASSIGNED = 85
Private Const ERROR_INVALID_PASSWORD = 86
Private Const ERROR_INVALID_PARAMETER = 87
Private Const ERROR_NET_WRITE_FAULT = 88
Private Const ERROR_NO_PROC_SLOTS = 89
Private Const ERROR_TOO_MANY_SEMAPHORES = 100
Private Const ERROR_EXCL_SEM_ALREADY_OWNED = 101
Private Const ERROR_SEM_IS_SET = 102
Private Const ERROR_TOO_MANY_SEM_REQUESTS = 103
Private Const ERROR_INVALID_AT_INTERRUPT_TIME = 104
Private Const ERROR_SEM_OWNER_DIED = 105
Private Const ERROR_SEM_USER_LIMIT = 106
Private Const ERROR_DISK_CHANGE = 107
Private Const ERROR_DRIVE_LOCKED = 108
Private Const ERROR_BROKEN_PIPE = 109
Private Const ERROR_OPEN_FAILED = 110
Private Const ERROR_BUFFER_OVERFLOW = 111
Private Const ERROR_DISK_FULL = 112
Private Const ERROR_NO_MORE_SEARCH_HANDLES = 113
Private Const ERROR_INVALID_TARGET_HANDLE = 114
Private Const ERROR_INVALID_CATEGORY = 117
Private Const ERROR_INVALID_VERIFY_SWITCH = 118
Private Const ERROR_BAD_DRIVER_LEVEL = 119
Private Const ERROR_CALL_NOT_IMPLEMENTED = 120
Private Const ERROR_SEM_TIMEOUT = 121
Private Const ERROR_INSUFFICIENT_BUFFER = 122
Private Const ERROR_INVALID_NAME = 123
Private Const ERROR_INVALID_LEVEL = 124
Private Const ERROR_NO_VOLUME_LABEL = 125
Private Const ERROR_MOD_NOT_FOUND = 126
Private Const ERROR_PROC_NOT_FOUND = 127
Private Const ERROR_WAIT_NO_CHILDREN = 128
Private Const ERROR_CHILD_NOT_COMPLETE = 129
Private Const ERROR_DIRECT_ACCESS_HANDLE = 130
Private Const ERROR_NEGATIVE_SEEK = 131
Private Const ERROR_SEEK_ON_DEVICE = 132
Private Const ERROR_IS_JOIN_TARGET = 133
Private Const ERROR_IS_JOINED = 134
Private Const ERROR_IS_SUBSTED = 135
Private Const ERROR_NOT_JOINED = 136
Private Const ERROR_NOT_SUBSTED = 137
Private Const ERROR_JOIN_TO_JOIN = 138
Private Const ERROR_SUBST_TO_SUBST = 139
Private Const ERROR_JOIN_TO_SUBST = 140
Private Const ERROR_SUBST_TO_JOIN = 141
Private Const ERROR_BUSY_DRIVE = 142
Private Const ERROR_SAME_DRIVE = 143
Private Const ERROR_DIR_NOT_ROOT = 144
Private Const ERROR_DIR_NOT_EMPTY = 145
Private Const ERROR_IS_SUBST_PATH = 146
Private Const ERROR_IS_JOIN_PATH = 147
Private Const ERROR_PATH_BUSY = 148
Private Const ERROR_IS_SUBST_TARGET = 149
Private Const ERROR_SYSTEM_TRACE = 150
Private Const ERROR_INVALID_EVENT_COUNT = 151
Private Const ERROR_TOO_MANY_MUXWAITERS = 152
Private Const ERROR_INVALID_LIST_FORMAT = 153
Private Const ERROR_LABEL_TOO_LONG = 154
Private Const ERROR_TOO_MANY_TCBS = 155
Private Const ERROR_SIGNAL_REFUSED = 156
Private Const ERROR_DISCARDED = 157
Private Const ERROR_NOT_LOCKED = 158
Private Const ERROR_BAD_THREADID_ADDR = 159
Private Const ERROR_BAD_ARGUMENTS = 160
Private Const ERROR_BAD_PATHNAME = 161
Private Const ERROR_SIGNAL_PENDING = 162
Private Const ERROR_MAX_THRDS_REACHED = 164
Private Const ERROR_LOCK_FAILED = 167
Private Const ERROR_BUSY = 170
Private Const ERROR_CANCEL_VIOLATION = 173
Private Const ERROR_ATOMIC_LOCKS_NOT_SUPPORTED = 174
Private Const ERROR_INVALID_SEGMENT_NUMBER = 180
Private Const ERROR_INVALID_ORDINAL = 182
Private Const ERROR_ALREADY_EXISTS = 183
Private Const ERROR_INVALID_FLAG_NUMBER = 186
Private Const ERROR_SEM_NOT_FOUND = 187
Private Const ERROR_INVALID_STARTING_CODESEG = 188
Private Const ERROR_INVALID_STACKSEG = 189
Private Const ERROR_INVALID_MODULETYPE = 190
Private Const ERROR_INVALID_EXE_SIGNATURE = 191
Private Const ERROR_EXE_MARKED_INVALID = 192
Private Const ERROR_BAD_EXE_FORMAT = 193
Private Const ERROR_ITERATED_DATA_EXCEEDS_64k = 194
Private Const ERROR_INVALID_MINALLOCSIZE = 195
Private Const ERROR_DYNLINK_FROM_INVALID_RING = 196
Private Const ERROR_IOPL_NOT_ENABLED = 197
Private Const ERROR_INVALID_SEGDPL = 198
Private Const ERROR_AUTODATASEG_EXCEEDS_64k = 199
Private Const ERROR_RING2SEG_MUST_BE_MOVABLE = 200
Private Const ERROR_RELOC_CHAIN_XEEDS_SEGLIM = 201
Private Const ERROR_INFLOOP_IN_RELOC_CHAIN = 202
Private Const ERROR_ENVVAR_NOT_FOUND = 203
Private Const ERROR_NO_SIGNAL_SENT = 205
Private Const ERROR_FILENAME_EXCED_RANGE = 206
Private Const ERROR_RING2_STACK_IN_USE = 207
Private Const ERROR_META_EXPANSION_TOO_LONG = 208
Private Const ERROR_INVALID_SIGNAL_NUMBER = 209
Private Const ERROR_THREAD_1_INACTIVE = 210
Private Const ERROR_LOCKED = 212
Private Const ERROR_TOO_MANY_MODULES = 214
Private Const ERROR_NESTING_NOT_ALLOWED = 215
Private Const ERROR_EXE_MACHINE_TYPE_MISMATCH = 216
Private Const ERROR_BAD_PIPE = 230
Private Const ERROR_PIPE_BUSY = 231
Private Const ERROR_NO_DATA = 232
Private Const ERROR_PIPE_NOT_CONNECTED = 233
Private Const ERROR_MORE_DATA = 234
Private Const ERROR_VC_DISCONNECTED = 240
Private Const ERROR_INVALID_EA_NAME = 254
Private Const ERROR_EA_LIST_INCONSISTENT = 255
Private Const WAIT_TIMEOUT = 258
Private Const ERROR_NO_MORE_ITEMS = 259
Private Const ERROR_CANNOT_COPY = 266
Private Const ERROR_DIRECTORY = 267
Private Const ERROR_EAS_DIDNT_FIT = 275
Private Const ERROR_EA_FILE_CORRUPT = 276
Private Const ERROR_EA_TABLE_FULL = 277
Private Const ERROR_INVALID_EA_HANDLE = 278
Private Const ERROR_EAS_NOT_SUPPORTED = 282
Private Const ERROR_NOT_OWNER = 288
Private Const ERROR_TOO_MANY_POSTS = 298
Private Const ERROR_PARTIAL_COPY = 299
Private Const ERROR_OPLOCK_NOT_GRANTED = 300
Private Const ERROR_INVALID_OPLOCK_PROTOCOL = 301
Private Const ERROR_MR_MID_NOT_FOUND = 317
Private Const ERROR_INVALID_ADDRESS = 487
Private Const ERROR_ARITHMETIC_OVERFLOW = 534
Private Const ERROR_PIPE_CONNECTED = 535
Private Const ERROR_PIPE_LISTENING = 536
Private Const ERROR_EA_ACCESS_DENIED = 994
Private Const ERROR_OPERATION_ABORTED = 995
Private Const ERROR_IO_INCOMPLETE = 996
Private Const ERROR_IO_PENDING = 997
Private Const ERROR_NOACCESS = 998
Private Const ERROR_SWAPERROR = 999
Private Const ERROR_STACK_OVERFLOW = 1001
Private Const ERROR_INVALID_MESSAGE = 1002
Private Const ERROR_CAN_NOT_COMPLETE = 1003
Private Const ERROR_INVALID_FLAGS = 1004
Private Const ERROR_UNRECOGNIZED_VOLUME = 1005
Private Const ERROR_FILE_INVALID = 1006
Private Const ERROR_FULLSCREEN_MODE = 1007
Private Const ERROR_NO_TOKEN = 1008
Private Const ERROR_BADDB = 1009
Private Const ERROR_BADKEY = 1010
Private Const ERROR_CANTOPEN = 1011
Private Const ERROR_CANTREAD = 1012
Private Const ERROR_CANTWRITE = 1013
Private Const ERROR_REGISTRY_RECOVERED = 1014
Private Const ERROR_REGISTRY_CORRUPT = 1015
Private Const ERROR_REGISTRY_IO_FAILED = 1016
Private Const ERROR_NOT_REGISTRY_FILE = 1017
Private Const ERROR_KEY_DELETED = 1018
Private Const ERROR_NO_LOG_SPACE = 1019
Private Const ERROR_KEY_HAS_CHILDREN = 1020
Private Const ERROR_CHILD_MUST_BE_VOLATILE = 1021
Private Const ERROR_NOTIFY_ENUM_DIR = 1022
Private Const ERROR_DEPENDENT_SERVICES_RUNNING = 1051
Private Const ERROR_INVALID_SERVICE_CONTROL = 1052
Private Const ERROR_SERVICE_REQUEST_TIMEOUT = 1053
Private Const ERROR_SERVICE_NO_THREAD = 1054
Private Const ERROR_SERVICE_DATABASE_LOCKED = 1055
Private Const ERROR_SERVICE_ALREADY_RUNNING = 1056
Private Const ERROR_INVALID_SERVICE_ACCOUNT = 1057
Private Const ERROR_SERVICE_DISABLED = 1058
Private Const ERROR_CIRCULAR_DEPENDENCY = 1059
Private Const ERROR_SERVICE_DOES_NOT_EXIST = 1060
Private Const ERROR_SERVICE_CANNOT_ACCEPT_CTRL = 1061
Private Const ERROR_SERVICE_NOT_ACTIVE = 1062
Private Const ERROR_FAILED_SERVICE_CONTROLLER_CONNECT = 1063
Private Const ERROR_EXCEPTION_IN_SERVICE = 1064
Private Const ERROR_DATABASE_DOES_NOT_EXIST = 1065
Private Const ERROR_SERVICE_SPECIFIC_ERROR = 1066
Private Const ERROR_PROCESS_ABORTED = 1067
Private Const ERROR_SERVICE_DEPENDENCY_FAIL = 1068
Private Const ERROR_SERVICE_LOGON_FAILED = 1069
Private Const ERROR_SERVICE_START_HANG = 1070
Private Const ERROR_INVALID_SERVICE_LOCK = 1071
Private Const ERROR_SERVICE_MARKED_FOR_DELETE = 1072
Private Const ERROR_SERVICE_EXISTS = 1073
Private Const ERROR_ALREADY_RUNNING_LKG = 1074
Private Const ERROR_SERVICE_DEPENDENCY_DELETED = 1075
Private Const ERROR_BOOT_ALREADY_ACCEPTED = 1076
Private Const ERROR_SERVICE_NEVER_STARTED = 1077
Private Const ERROR_DUPLICATE_SERVICE_NAME = 1078
Private Const ERROR_DIFFERENT_SERVICE_ACCOUNT = 1079
Private Const ERROR_CANNOT_DETECT_DRIVER_FAILURE = 1080
Private Const ERROR_CANNOT_DETECT_PROCESS_ABORT = 1081
Private Const ERROR_NO_RECOVERY_PROGRAM = 1082
Private Const ERROR_SERVICE_NOT_IN_EXE = 1083
Private Const ERROR_END_OF_MEDIA = 1100
Private Const ERROR_FILEMARK_DETECTED = 1101
Private Const ERROR_BEGINNING_OF_MEDIA = 1102
Private Const ERROR_SETMARK_DETECTED = 1103
Private Const ERROR_NO_DATA_DETECTED = 1104
Private Const ERROR_PARTITION_FAILURE = 1105
Private Const ERROR_INVALID_BLOCK_LENGTH = 1106
Private Const ERROR_DEVICE_NOT_PARTITIONED = 1107
Private Const ERROR_UNABLE_TO_LOCK_MEDIA = 1108
Private Const ERROR_UNABLE_TO_UNLOAD_MEDIA = 1109
Private Const ERROR_MEDIA_CHANGED = 1110
Private Const ERROR_BUS_RESET = 1111
Private Const ERROR_NO_MEDIA_IN_DRIVE = 1112
Private Const ERROR_NO_UNICODE_TRANSLATION = 1113
Private Const ERROR_DLL_INIT_FAILED = 1114
Private Const ERROR_SHUTDOWN_IN_PROGRESS = 1115
Private Const ERROR_NO_SHUTDOWN_IN_PROGRESS = 1116
Private Const ERROR_IO_DEVICE = 1117
Private Const ERROR_SERIAL_NO_DEVICE = 1118
Private Const ERROR_IRQ_BUSY = 1119
Private Const ERROR_MORE_WRITES = 1120
Private Const ERROR_COUNTER_TIMEOUT = 1121
Private Const ERROR_FLOPPY_ID_MARK_NOT_FOUND = 1122
Private Const ERROR_FLOPPY_WRONG_CYLINDER = 1123
Private Const ERROR_FLOPPY_UNKNOWN_ERROR = 1124
Private Const ERROR_FLOPPY_BAD_REGISTERS = 1125
Private Const ERROR_DISK_RECALIBRATE_FAILED = 1126
Private Const ERROR_DISK_OPERATION_FAILED = 1127
Private Const ERROR_DISK_RESET_FAILED = 1128
Private Const ERROR_EOM_OVERFLOW = 1129
Private Const ERROR_NOT_ENOUGH_SERVER_MEMORY = 1130
Private Const ERROR_POSSIBLE_DEADLOCK = 1131
Private Const ERROR_MAPPED_ALIGNMENT = 1132
Private Const ERROR_SET_POWER_STATE_VETOED = 1140
Private Const ERROR_SET_POWER_STATE_FAILED = 1141
Private Const ERROR_TOO_MANY_LINKS = 1142
Private Const ERROR_OLD_WIN_VERSION = 1150
Private Const ERROR_APP_WRONG_OS = 1151
Private Const ERROR_SINGLE_INSTANCE_APP = 1152
Private Const ERROR_RMODE_APP = 1153
Private Const ERROR_INVALID_DLL = 1154
Private Const ERROR_NO_ASSOCIATION = 1155
Private Const ERROR_DDE_FAIL = 1156
Private Const ERROR_DLL_NOT_FOUND = 1157
Private Const ERROR_NO_MORE_USER_HANDLES = 1158
Private Const ERROR_MESSAGE_SYNC_ONLY = 1159
Private Const ERROR_SOURCE_ELEMENT_EMPTY = 1160
Private Const ERROR_DESTINATION_ELEMENT_FULL = 1161
Private Const ERROR_ILLEGAL_ELEMENT_ADDRESS = 1162
Private Const ERROR_MAGAZINE_NOT_PRESENT = 1163
Private Const ERROR_DEVICE_REINITIALIZATION_NEEDED = 1164
Private Const ERROR_DEVICE_REQUIRES_CLEANING = 1165
Private Const ERROR_DEVICE_DOOR_OPEN = 1166
Private Const ERROR_DEVICE_NOT_CONNECTED = 1167
Private Const ERROR_NOT_FOUND = 1168
Private Const ERROR_NO_MATCH = 1169
Private Const ERROR_SET_NOT_FOUND = 1170
Private Const ERROR_POINT_NOT_FOUND = 1171
Private Const ERROR_NO_TRACKING_SERVICE = 1172
Private Const ERROR_NO_VOLUME_ID = 1173
Private Const ERROR_UNABLE_TO_REMOVE_REPLACED = 1175
Private Const ERROR_UNABLE_TO_MOVE_REPLACEMENT = 1176
Private Const ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 = 1177
Private Const ERROR_JOURNAL_DELETE_IN_PROGRESS = 1178
Private Const ERROR_JOURNAL_NOT_ACTIVE = 1179
Private Const ERROR_POTENTIAL_FILE_FOUND = 1180
Private Const ERROR_JOURNAL_ENTRY_DELETED = 1181
Private Const ERROR_BAD_DEVICE = 1200
Private Const ERROR_CONNECTION_UNAVAIL = 1201
Private Const ERROR_DEVICE_ALREADY_REMEMBERED = 1202
Private Const ERROR_NO_NET_OR_BAD_PATH = 1203
Private Const ERROR_BAD_PROVIDER = 1204
Private Const ERROR_CANNOT_OPEN_PROFILE = 1205
Private Const ERROR_BAD_PROFILE = 1206
Private Const ERROR_NOT_CONTAINER = 1207
Private Const ERROR_EXTENDED_ERROR = 1208
Private Const ERROR_INVALID_GROUPNAME = 1209
Private Const ERROR_INVALID_COMPUTERNAME = 1210
Private Const ERROR_INVALID_EVENTNAME = 1211
Private Const ERROR_INVALID_DOMAINNAME = 1212
Private Const ERROR_INVALID_SERVICENAME = 1213
Private Const ERROR_INVALID_NETNAME = 1214
Private Const ERROR_INVALID_SHARENAME = 1215
Private Const ERROR_INVALID_PASSWORDNAME = 1216
Private Const ERROR_INVALID_MESSAGENAME = 1217
Private Const ERROR_INVALID_MESSAGEDEST = 1218
Private Const ERROR_SESSION_CREDENTIAL_CONFLICT = 1219
Private Const ERROR_REMOTE_SESSION_LIMIT_EXCEEDED = 1220
Private Const ERROR_DUP_DOMAINNAME = 1221
Private Const ERROR_NO_NETWORK = 1222
Private Const ERROR_CANCELLED = 1223
Private Const ERROR_USER_MAPPED_FILE = 1224
Private Const ERROR_CONNECTION_REFUSED = 1225
Private Const ERROR_GRACEFUL_DISCONNECT = 1226
Private Const ERROR_ADDRESS_ALREADY_ASSOCIATED = 1227
Private Const ERROR_ADDRESS_NOT_ASSOCIATED = 1228
Private Const ERROR_CONNECTION_INVALID = 1229
Private Const ERROR_CONNECTION_ACTIVE = 1230
Private Const ERROR_NETWORK_UNREACHABLE = 1231
Private Const ERROR_HOST_UNREACHABLE = 1232
Private Const ERROR_PROTOCOL_UNREACHABLE = 1233
Private Const ERROR_PORT_UNREACHABLE = 1234
Private Const ERROR_REQUEST_ABORTED = 1235
Private Const ERROR_CONNECTION_ABORTED = 1236
Private Const ERROR_RETRY = 1237
Private Const ERROR_CONNECTION_COUNT_LIMIT = 1238
Private Const ERROR_LOGIN_TIME_RESTRICTION = 1239
Private Const ERROR_LOGIN_WKSTA_RESTRICTION = 1240
Private Const ERROR_INCORRECT_ADDRESS = 1241
Private Const ERROR_ALREADY_REGISTERED = 1242
Private Const ERROR_SERVICE_NOT_FOUND = 1243
Private Const ERROR_NOT_AUTHENTICATED = 1244
Private Const ERROR_NOT_LOGGED_ON = 1245
Private Const ERROR_CONTINUE = 1246
Private Const ERROR_ALREADY_INITIALIZED = 1247
Private Const ERROR_NO_MORE_DEVICES = 1248
Private Const ERROR_NO_SUCH_SITE = 1249
Private Const ERROR_DOMAIN_CONTROLLER_EXISTS = 1250
Private Const ERROR_ONLY_IF_CONNECTED = 1251
Private Const ERROR_OVERRIDE_NOCHANGES = 1252
Private Const ERROR_BAD_USER_PROFILE = 1253
Private Const ERROR_NOT_SUPPORTED_ON_SBS = 1254
Private Const ERROR_NOT_ALL_ASSIGNED = 1300
Private Const ERROR_SOME_NOT_MAPPED = 1301
Private Const ERROR_NO_QUOTAS_FOR_ACCOUNT = 1302
Private Const ERROR_LOCAL_USER_SESSION_KEY = 1303
Private Const ERROR_NULL_LM_PASSWORD = 1304
Private Const ERROR_UNKNOWN_REVISION = 1305
Private Const ERROR_REVISION_MISMATCH = 1306
Private Const ERROR_INVALID_OWNER = 1307
Private Const ERROR_INVALID_PRIMARY_GROUP = 1308
Private Const ERROR_NO_IMPERSONATION_TOKEN = 1309
Private Const ERROR_CANT_DISABLE_MANDATORY = 1310
Private Const ERROR_NO_LOGON_SERVERS = 1311
Private Const ERROR_NO_SUCH_LOGON_SESSION = 1312
Private Const ERROR_NO_SUCH_PRIVILEGE = 1313
Private Const ERROR_PRIVILEGE_NOT_HELD = 1314
Private Const ERROR_INVALID_ACCOUNT_NAME = 1315
Private Const ERROR_USER_EXISTS = 1316
Private Const ERROR_NO_SUCH_USER = 1317
Private Const ERROR_GROUP_EXISTS = 1318
Private Const ERROR_NO_SUCH_GROUP = 1319
Private Const ERROR_MEMBER_IN_GROUP = 1320
Private Const ERROR_MEMBER_NOT_IN_GROUP = 1321
Private Const ERROR_LAST_ADMIN = 1322
Private Const ERROR_WRONG_PASSWORD = 1323
Private Const ERROR_ILL_FORMED_PASSWORD = 1324
Private Const ERROR_PASSWORD_RESTRICTION = 1325
Private Const ERROR_LOGON_FAILURE = 1326
Private Const ERROR_ACCOUNT_RESTRICTION = 1327
Private Const ERROR_INVALID_LOGON_HOURS = 1328
Private Const ERROR_INVALID_WORKSTATION = 1329
Private Const ERROR_PASSWORD_EXPIRED = 1330
Private Const ERROR_ACCOUNT_DISABLED = 1331
Private Const ERROR_NONE_MAPPED = 1332
Private Const ERROR_TOO_MANY_LUIDS_REQUESTED = 1333
Private Const ERROR_LUIDS_EXHAUSTED = 1334
Private Const ERROR_INVALID_SUB_AUTHORITY = 1335
Private Const ERROR_INVALID_ACL = 1336
Private Const ERROR_INVALID_SID = 1337
Private Const ERROR_INVALID_SECURITY_DESCR = 1338
Private Const ERROR_BAD_INHERITANCE_ACL = 1340
Private Const ERROR_SERVER_DISABLED = 1341
Private Const ERROR_SERVER_NOT_DISABLED = 1342
Private Const ERROR_INVALID_ID_AUTHORITY = 1343
Private Const ERROR_ALLOTTED_SPACE_EXCEEDED = 1344
Private Const ERROR_INVALID_GROUP_ATTRIBUTES = 1345
Private Const ERROR_BAD_IMPERSONATION_LEVEL = 1346
Private Const ERROR_CANT_OPEN_ANONYMOUS = 1347
Private Const ERROR_BAD_VALIDATION_CLASS = 1348
Private Const ERROR_BAD_TOKEN_TYPE = 1349
Private Const ERROR_NO_SECURITY_ON_OBJECT = 1350
Private Const ERROR_CANT_ACCESS_DOMAIN_INFO = 1351
Private Const ERROR_INVALID_SERVER_STATE = 1352
Private Const ERROR_INVALID_DOMAIN_STATE = 1353
Private Const ERROR_INVALID_DOMAIN_ROLE = 1354
Private Const ERROR_NO_SUCH_DOMAIN = 1355
Private Const ERROR_DOMAIN_EXISTS = 1356
Private Const ERROR_DOMAIN_LIMIT_EXCEEDED = 1357
Private Const ERROR_INTERNAL_DB_CORRUPTION = 1358
Private Const ERROR_INTERNAL_ERROR = 1359
Private Const ERROR_GENERIC_NOT_MAPPED = 1360
Private Const ERROR_BAD_DESCRIPTOR_FORMAT = 1361
Private Const ERROR_NOT_LOGON_PROCESS = 1362
Private Const ERROR_LOGON_SESSION_EXISTS = 1363
Private Const ERROR_NO_SUCH_PACKAGE = 1364
Private Const ERROR_BAD_LOGON_SESSION_STATE = 1365
Private Const ERROR_LOGON_SESSION_COLLISION = 1366
Private Const ERROR_INVALID_LOGON_TYPE = 1367
Private Const ERROR_CANNOT_IMPERSONATE = 1368
Private Const ERROR_RXACT_INVALID_STATE = 1369
Private Const ERROR_RXACT_COMMIT_FAILURE = 1370
Private Const ERROR_SPECIAL_ACCOUNT = 1371
Private Const ERROR_SPECIAL_GROUP = 1372
Private Const ERROR_SPECIAL_USER = 1373
Private Const ERROR_MEMBERS_PRIMARY_GROUP = 1374
Private Const ERROR_TOKEN_ALREADY_IN_USE = 1375
Private Const ERROR_NO_SUCH_ALIAS = 1376
Private Const ERROR_MEMBER_NOT_IN_ALIAS = 1377
Private Const ERROR_MEMBER_IN_ALIAS = 1378
Private Const ERROR_ALIAS_EXISTS = 1379
Private Const ERROR_LOGON_NOT_GRANTED = 1380
Private Const ERROR_TOO_MANY_SECRETS = 1381
Private Const ERROR_SECRET_TOO_LONG = 1382
Private Const ERROR_INTERNAL_DB_ERROR = 1383
Private Const ERROR_TOO_MANY_CONTEXT_IDS = 1384
Private Const ERROR_LOGON_TYPE_NOT_GRANTED = 1385
Private Const ERROR_NT_CROSS_ENCRYPTION_REQUIRED = 1386
Private Const ERROR_NO_SUCH_MEMBER = 1387
Private Const ERROR_INVALID_MEMBER = 1388
Private Const ERROR_TOO_MANY_SIDS = 1389
Private Const ERROR_LM_CROSS_ENCRYPTION_REQUIRED = 1390
Private Const ERROR_NO_INHERITANCE = 1391
Private Const ERROR_FILE_CORRUPT = 1392
Private Const ERROR_DISK_CORRUPT = 1393
Private Const ERROR_NO_USER_SESSION_KEY = 1394
Private Const ERROR_LICENSE_QUOTA_EXCEEDED = 1395
Private Const ERROR_WRONG_TARGET_NAME = 1396
Private Const ERROR_MUTUAL_AUTH_FAILED = 1397
Private Const ERROR_TIME_SKEW = 1398
Private Const ERROR_INVALID_WINDOW_HANDLE = 1400
Private Const ERROR_INVALID_MENU_HANDLE = 1401
Private Const ERROR_INVALID_CURSOR_HANDLE = 1402
Private Const ERROR_INVALID_ACCEL_HANDLE = 1403
Private Const ERROR_INVALID_HOOK_HANDLE = 1404
Private Const ERROR_INVALID_DWP_HANDLE = 1405
Private Const ERROR_TLW_WITH_WSCHILD = 1406
Private Const ERROR_CANNOT_FIND_WND_CLASS = 1407
Private Const ERROR_WINDOW_OF_OTHER_THREAD = 1408
Private Const ERROR_HOTKEY_ALREADY_REGISTERED = 1409
Private Const ERROR_CLASS_ALREADY_EXISTS = 1410
Private Const ERROR_CLASS_DOES_NOT_EXIST = 1411
Private Const ERROR_CLASS_HAS_WINDOWS = 1412
Private Const ERROR_INVALID_INDEX = 1413
Private Const ERROR_INVALID_ICON_HANDLE = 1414
Private Const ERROR_PRIVATE_DIALOG_INDEX = 1415
Private Const ERROR_LISTBOX_ID_NOT_FOUND = 1416
Private Const ERROR_NO_WILDCARD_CHARACTERS = 1417
Private Const ERROR_CLIPBOARD_NOT_OPEN = 1418
Private Const ERROR_HOTKEY_NOT_REGISTERED = 1419
Private Const ERROR_WINDOW_NOT_DIALOG = 1420
Private Const ERROR_CONTROL_ID_NOT_FOUND = 1421
Private Const ERROR_INVALID_COMBOBOX_MESSAGE = 1422
Private Const ERROR_WINDOW_NOT_COMBOBOX = 1423
Private Const ERROR_INVALID_EDIT_HEIGHT = 1424
Private Const ERROR_DC_NOT_FOUND = 1425
Private Const ERROR_INVALID_HOOK_FILTER = 1426
Private Const ERROR_INVALID_FILTER_PROC = 1427
Private Const ERROR_HOOK_NEEDS_HMOD = 1428
Private Const ERROR_GLOBAL_ONLY_HOOK = 1429
Private Const ERROR_JOURNAL_HOOK_SET = 1430
Private Const ERROR_HOOK_NOT_INSTALLED = 1431
Private Const ERROR_INVALID_LB_MESSAGE = 1432
Private Const ERROR_SETCOUNT_ON_BAD_LB = 1433
Private Const ERROR_LB_WITHOUT_TABSTOPS = 1434
Private Const ERROR_DESTROY_OBJECT_OF_OTHER_THREAD = 1435
Private Const ERROR_CHILD_WINDOW_MENU = 1436
Private Const ERROR_NO_SYSTEM_MENU = 1437
Private Const ERROR_INVALID_MSGBOX_STYLE = 1438
Private Const ERROR_INVALID_SPI_VALUE = 1439
Private Const ERROR_SCREEN_ALREADY_LOCKED = 1440
Private Const ERROR_HWNDS_HAVE_DIFF_PARENT = 1441
Private Const ERROR_NOT_CHILD_WINDOW = 1442
Private Const ERROR_INVALID_GW_COMMAND = 1443
Private Const ERROR_INVALID_THREAD_ID = 1444
Private Const ERROR_NON_MDICHILD_WINDOW = 1445
Private Const ERROR_POPUP_ALREADY_ACTIVE = 1446
Private Const ERROR_NO_SCROLLBARS = 1447
Private Const ERROR_INVALID_SCROLLBAR_RANGE = 1448
Private Const ERROR_INVALID_SHOWWIN_COMMAND = 1449
Private Const ERROR_NO_SYSTEM_RESOURCES = 1450
Private Const ERROR_NONPAGED_SYSTEM_RESOURCES = 1451
Private Const ERROR_PAGED_SYSTEM_RESOURCES = 1452
Private Const ERROR_WORKING_SET_QUOTA = 1453
Private Const ERROR_PAGEFILE_QUOTA = 1454
Private Const ERROR_COMMITMENT_LIMIT = 1455
Private Const ERROR_MENU_ITEM_NOT_FOUND = 1456
Private Const ERROR_INVALID_KEYBOARD_HANDLE = 1457
Private Const ERROR_HOOK_TYPE_NOT_ALLOWED = 1458
Private Const ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION = 1459
Private Const ERROR_TIMEOUT = 1460
Private Const ERROR_INVALID_MONITOR_HANDLE = 1461
Private Const ERROR_EVENTLOG_FILE_CORRUPT = 1500
Private Const ERROR_EVENTLOG_CANT_START = 1501
Private Const ERROR_LOG_FILE_FULL = 1502
Private Const ERROR_EVENTLOG_FILE_CHANGED = 1503
Private Const ERROR_INSTALL_SERVICE_FAILURE = 1601
Private Const ERROR_INSTALL_USEREXIT = 1602
Private Const ERROR_INSTALL_FAILURE = 1603
Private Const ERROR_INSTALL_SUSPEND = 1604
Private Const ERROR_UNKNOWN_PRODUCT = 1605
Private Const ERROR_UNKNOWN_FEATURE = 1606
Private Const ERROR_UNKNOWN_COMPONENT = 1607
Private Const ERROR_UNKNOWN_PROPERTY = 1608
Private Const ERROR_INVALID_HANDLE_STATE = 1609
Private Const ERROR_BAD_CONFIGURATION = 1610
Private Const ERROR_INDEX_ABSENT = 1611
Private Const ERROR_INSTALL_SOURCE_ABSENT = 1612
Private Const ERROR_INSTALL_PACKAGE_VERSION = 1613
Private Const ERROR_PRODUCT_UNINSTALLED = 1614
Private Const ERROR_BAD_QUERY_SYNTAX = 1615
Private Const ERROR_INVALID_FIELD = 1616
Private Const ERROR_DEVICE_REMOVED = 1617
Private Const ERROR_INSTALL_ALREADY_RUNNING = 1618
Private Const ERROR_INSTALL_PACKAGE_OPEN_FAILED = 1619
Private Const ERROR_INSTALL_PACKAGE_INVALID = 1620
Private Const ERROR_INSTALL_UI_FAILURE = 1621
Private Const ERROR_INSTALL_LOG_FAILURE = 1622
Private Const ERROR_INSTALL_LANGUAGE_UNSUPPORTED = 1623
Private Const ERROR_INSTALL_TRANSFORM_FAILURE = 1624
Private Const ERROR_INSTALL_PACKAGE_REJECTED = 1625
Private Const ERROR_FUNCTION_NOT_CALLED = 1626
Private Const ERROR_FUNCTION_FAILED = 1627
Private Const ERROR_INVALID_TABLE = 1628
Private Const ERROR_DATATYPE_MISMATCH = 1629
Private Const ERROR_UNSUPPORTED_TYPE = 1630
Private Const ERROR_CREATE_FAILED = 1631
Private Const ERROR_INSTALL_TEMP_UNWRITABLE = 1632
Private Const ERROR_INSTALL_PLATFORM_UNSUPPORTED = 1633
Private Const ERROR_INSTALL_NOTUSED = 1634
Private Const ERROR_PATCH_PACKAGE_OPEN_FAILED = 1635
Private Const ERROR_PATCH_PACKAGE_INVALID = 1636
Private Const ERROR_PATCH_PACKAGE_UNSUPPORTED = 1637
Private Const ERROR_PRODUCT_VERSION = 1638
Private Const ERROR_INVALID_COMMAND_LINE = 1639
Private Const ERROR_INSTALL_REMOTE_DISALLOWED = 1640
Private Const ERROR_SUCCESS_REBOOT_INITIATED = 1641
Private Const RPC_S_INVALID_STRING_BINDING = 1700
Private Const RPC_S_WRONG_KIND_OF_BINDING = 1701
Private Const RPC_S_INVALID_BINDING = 1702
Private Const RPC_S_PROTSEQ_NOT_SUPPORTED = 1703
Private Const RPC_S_INVALID_RPC_PROTSEQ = 1704
Private Const RPC_S_INVALID_STRING_UUID = 1705
Private Const RPC_S_INVALID_ENDPOINT_FORMAT = 1706
Private Const RPC_S_INVALID_NET_ADDR = 1707
Private Const RPC_S_NO_ENDPOINT_FOUND = 1708
Private Const RPC_S_INVALID_TIMEOUT = 1709
Private Const RPC_S_OBJECT_NOT_FOUND = 1710
Private Const RPC_S_ALREADY_REGISTERED = 1711
Private Const RPC_S_TYPE_ALREADY_REGISTERED = 1712
Private Const RPC_S_ALREADY_LISTENING = 1713
Private Const RPC_S_NO_PROTSEQS_REGISTERED = 1714
Private Const RPC_S_NOT_LISTENING = 1715
Private Const RPC_S_UNKNOWN_MGR_TYPE = 1716
Private Const RPC_S_UNKNOWN_IF = 1717
Private Const RPC_S_NO_BINDINGS = 1718
Private Const RPC_S_NO_PROTSEQS = 1719
Private Const RPC_S_CANT_CREATE_ENDPOINT = 1720
Private Const RPC_S_OUT_OF_RESOURCES = 1721
Private Const RPC_S_SERVER_UNAVAILABLE = 1722
Private Const RPC_S_SERVER_TOO_BUSY = 1723
Private Const RPC_S_INVALID_NETWORK_OPTIONS = 1724
Private Const RPC_S_NO_CALL_ACTIVE = 1725
Private Const RPC_S_CALL_FAILED = 1726
Private Const RPC_S_CALL_FAILED_DNE = 1727
Private Const RPC_S_PROTOCOL_ERROR = 1728
Private Const RPC_S_UNSUPPORTED_TRANS_SYN = 1730
Private Const RPC_S_UNSUPPORTED_TYPE = 1732
Private Const RPC_S_INVALID_TAG = 1733
Private Const RPC_S_INVALID_BOUND = 1734
Private Const RPC_S_NO_ENTRY_NAME = 1735
Private Const RPC_S_INVALID_NAME_SYNTAX = 1736
Private Const RPC_S_UNSUPPORTED_NAME_SYNTAX = 1737
Private Const RPC_S_UUID_NO_ADDRESS = 1739
Private Const RPC_S_DUPLICATE_ENDPOINT = 1740
Private Const RPC_S_UNKNOWN_AUTHN_TYPE = 1741
Private Const RPC_S_MAX_CALLS_TOO_SMALL = 1742
Private Const RPC_S_STRING_TOO_LONG = 1743
Private Const RPC_S_PROTSEQ_NOT_FOUND = 1744
Private Const RPC_S_PROCNUM_OUT_OF_RANGE = 1745
Private Const RPC_S_BINDING_HAS_NO_AUTH = 1746
Private Const RPC_S_UNKNOWN_AUTHN_SERVICE = 1747
Private Const RPC_S_UNKNOWN_AUTHN_LEVEL = 1748
Private Const RPC_S_INVALID_AUTH_IDENTITY = 1749
Private Const RPC_S_UNKNOWN_AUTHZ_SERVICE = 1750
Private Const EPT_S_INVALID_ENTRY = 1751
Private Const EPT_S_CANT_PERFORM_OP = 1752
Private Const EPT_S_NOT_REGISTERED = 1753
Private Const RPC_S_NOTHING_TO_EXPORT = 1754
Private Const RPC_S_INCOMPLETE_NAME = 1755
Private Const RPC_S_INVALID_VERS_OPTION = 1756
Private Const RPC_S_NO_MORE_MEMBERS = 1757
Private Const RPC_S_NOT_ALL_OBJS_UNEXPORTED = 1758
Private Const RPC_S_INTERFACE_NOT_FOUND = 1759
Private Const RPC_S_ENTRY_ALREADY_EXISTS = 1760
Private Const RPC_S_ENTRY_NOT_FOUND = 1761
Private Const RPC_S_NAME_SERVICE_UNAVAILABLE = 1762
Private Const RPC_S_INVALID_NAF_ID = 1763
Private Const RPC_S_CANNOT_SUPPORT = 1764
Private Const RPC_S_NO_CONTEXT_AVAILABLE = 1765
Private Const RPC_S_INTERNAL_ERROR = 1766
Private Const RPC_S_ZERO_DIVIDE = 1767
Private Const RPC_S_ADDRESS_ERROR = 1768
Private Const RPC_S_FP_DIV_ZERO = 1769
Private Const RPC_S_FP_UNDERFLOW = 1770
Private Const RPC_S_FP_OVERFLOW = 1771
Private Const RPC_X_NO_MORE_ENTRIES = 1772
Private Const RPC_X_SS_CHAR_TRANS_OPEN_FAIL = 1773
Private Const RPC_X_SS_CHAR_TRANS_SHORT_FILE = 1774
Private Const RPC_X_SS_IN_NULL_CONTEXT = 1775
Private Const RPC_X_SS_CONTEXT_DAMAGED = 1777
Private Const RPC_X_SS_HANDLES_MISMATCH = 1778
Private Const RPC_X_SS_CANNOT_GET_CALL_HANDLE = 1779
Private Const RPC_X_NULL_REF_POINTER = 1780
Private Const RPC_X_ENUM_VALUE_OUT_OF_RANGE = 1781
Private Const RPC_X_BYTE_COUNT_TOO_SMALL = 1782
Private Const RPC_X_BAD_STUB_DATA = 1783
Private Const ERROR_INVALID_USER_BUFFER = 1784
Private Const ERROR_UNRECOGNIZED_MEDIA = 1785
Private Const ERROR_NO_TRUST_LSA_SECRET = 1786
Private Const ERROR_NO_TRUST_SAM_ACCOUNT = 1787
Private Const ERROR_TRUSTED_DOMAIN_FAILURE = 1788
Private Const ERROR_TRUSTED_RELATIONSHIP_FAILURE = 1789
Private Const ERROR_TRUST_FAILURE = 1790
Private Const RPC_S_CALL_IN_PROGRESS = 1791
Private Const ERROR_NETLOGON_NOT_STARTED = 1792
Private Const ERROR_ACCOUNT_EXPIRED = 1793
Private Const ERROR_REDIRECTOR_HAS_OPEN_HANDLES = 1794
Private Const ERROR_PRINTER_DRIVER_ALREADY_INSTALLED = 1795
Private Const ERROR_UNKNOWN_PORT = 1796
Private Const ERROR_UNKNOWN_PRINTER_DRIVER = 1797
Private Const ERROR_UNKNOWN_PRINTPROCESSOR = 1798
Private Const ERROR_INVALID_SEPARATOR_FILE = 1799
Private Const ERROR_INVALID_PRIORITY = 1800
Private Const ERROR_INVALID_PRINTER_NAME = 1801
Private Const ERROR_PRINTER_ALREADY_EXISTS = 1802
Private Const ERROR_INVALID_PRINTER_COMMAND = 1803
Private Const ERROR_INVALID_DATATYPE = 1804
Private Const ERROR_INVALID_ENVIRONMENT = 1805
Private Const RPC_S_NO_MORE_BINDINGS = 1806
Private Const ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT = 1807
Private Const ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT = 1808
Private Const ERROR_NOLOGON_SERVER_TRUST_ACCOUNT = 1809
Private Const ERROR_DOMAIN_TRUST_INCONSISTENT = 1810
Private Const ERROR_SERVER_HAS_OPEN_HANDLES = 1811
Private Const ERROR_RESOURCE_DATA_NOT_FOUND = 1812
Private Const ERROR_RESOURCE_TYPE_NOT_FOUND = 1813
Private Const ERROR_RESOURCE_NAME_NOT_FOUND = 1814
Private Const ERROR_RESOURCE_LANG_NOT_FOUND = 1815
Private Const ERROR_NOT_ENOUGH_QUOTA = 1816
Private Const RPC_S_NO_INTERFACES = 1817
Private Const RPC_S_CALL_CANCELLED = 1818
Private Const RPC_S_BINDING_INCOMPLETE = 1819
Private Const RPC_S_COMM_FAILURE = 1820
Private Const RPC_S_UNSUPPORTED_AUTHN_LEVEL = 1821
Private Const RPC_S_NO_PRINC_NAME = 1822
Private Const RPC_S_NOT_RPC_ERROR = 1823
Private Const RPC_S_UUID_LOCAL_ONLY = 1824
Private Const RPC_S_SEC_PKG_ERROR = 1825
Private Const RPC_S_NOT_CANCELLED = 1826
Private Const RPC_X_INVALID_ES_ACTION = 1827
Private Const RPC_X_WRONG_ES_VERSION = 1828
Private Const RPC_X_WRONG_STUB_VERSION = 1829
Private Const RPC_X_INVALID_PIPE_OBJECT = 1830
Private Const RPC_X_WRONG_PIPE_ORDER = 1831
Private Const RPC_X_WRONG_PIPE_VERSION = 1832
Private Const RPC_S_GROUP_MEMBER_NOT_FOUND = 1898
Private Const EPT_S_CANT_CREATE = 1899
Private Const RPC_S_INVALID_OBJECT = 1900
Private Const ERROR_INVALID_TIME = 1901
Private Const ERROR_INVALID_FORM_NAME = 1902
Private Const ERROR_INVALID_FORM_SIZE = 1903
Private Const ERROR_ALREADY_WAITING = 1904
Private Const ERROR_PRINTER_DELETED = 1905
Private Const ERROR_INVALID_PRINTER_STATE = 1906
Private Const ERROR_PASSWORD_MUST_CHANGE = 1907
Private Const ERROR_DOMAIN_CONTROLLER_NOT_FOUND = 1908
Private Const ERROR_ACCOUNT_LOCKED_OUT = 1909
Private Const OR_INVALID_OXID = 1910
Private Const OR_INVALID_OID = 1911
Private Const OR_INVALID_SET = 1912
Private Const RPC_S_SEND_INCOMPLETE = 1913
Private Const RPC_S_INVALID_ASYNC_HANDLE = 1914
Private Const RPC_S_INVALID_ASYNC_CALL = 1915
Private Const RPC_X_PIPE_CLOSED = 1916
Private Const RPC_X_PIPE_DISCIPLINE_ERROR = 1917
Private Const RPC_X_PIPE_EMPTY = 1918
Private Const ERROR_NO_SITENAME = 1919
Private Const ERROR_CANT_ACCESS_FILE = 1920
Private Const ERROR_CANT_RESOLVE_FILENAME = 1921
Private Const RPC_S_ENTRY_TYPE_MISMATCH = 1922
Private Const RPC_S_NOT_ALL_OBJS_EXPORTED = 1923
Private Const RPC_S_INTERFACE_NOT_EXPORTED = 1924
Private Const RPC_S_PROFILE_NOT_ADDED = 1925
Private Const RPC_S_PRF_ELT_NOT_ADDED = 1926
Private Const RPC_S_PRF_ELT_NOT_REMOVED = 1927
Private Const RPC_S_GRP_ELT_NOT_ADDED = 1928
Private Const RPC_S_GRP_ELT_NOT_REMOVED = 1929
Private Const ERROR_INVALID_PIXEL_FORMAT = 2000
Private Const ERROR_BAD_DRIVER = 2001
Private Const ERROR_INVALID_WINDOW_STYLE = 2002
Private Const ERROR_METAFILE_NOT_SUPPORTED = 2003
Private Const ERROR_TRANSFORM_NOT_SUPPORTED = 2004
Private Const ERROR_CLIPPING_NOT_SUPPORTED = 2005
Private Const ERROR_INVALID_CMM = 2010
Private Const ERROR_INVALID_PROFILE = 2011
Private Const ERROR_TAG_NOT_FOUND = 2012
Private Const ERROR_TAG_NOT_PRESENT = 2013
Private Const ERROR_DUPLICATE_TAG = 2014
Private Const ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE = 2015
Private Const ERROR_PROFILE_NOT_FOUND = 2016
Private Const ERROR_INVALID_COLORSPACE = 2017
Private Const ERROR_ICM_NOT_ENABLED = 2018
Private Const ERROR_DELETING_ICM_XFORM = 2019
Private Const ERROR_INVALID_TRANSFORM = 2020
Private Const ERROR_COLORSPACE_MISMATCH = 2021
Private Const ERROR_INVALID_COLORINDEX = 2022
Private Const ERROR_CONNECTED_OTHER_PASSWORD = 2108
Private Const ERROR_BAD_USERNAME = 2202
Private Const ERROR_NOT_CONNECTED = 2250
Private Const ERROR_OPEN_FILES = 2401
Private Const ERROR_ACTIVE_CONNECTIONS = 2402
Private Const ERROR_DEVICE_IN_USE = 2404
Private Const ERROR_UNKNOWN_PRINT_MONITOR = 3000
Private Const ERROR_PRINTER_DRIVER_IN_USE = 3001
Private Const ERROR_SPOOL_FILE_NOT_FOUND = 3002
Private Const ERROR_SPL_NO_STARTDOC = 3003
Private Const ERROR_SPL_NO_ADDJOB = 3004
Private Const ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED = 3005
Private Const ERROR_PRINT_MONITOR_ALREADY_INSTALLED = 3006
Private Const ERROR_INVALID_PRINT_MONITOR = 3007
Private Const ERROR_PRINT_MONITOR_IN_USE = 3008
Private Const ERROR_PRINTER_HAS_JOBS_QUEUED = 3009
Private Const ERROR_SUCCESS_REBOOT_REQUIRED = 3010
Private Const ERROR_SUCCESS_RESTART_REQUIRED = 3011
Private Const ERROR_PRINTER_NOT_FOUND = 3012
Private Const ERROR_WINS_INTERNAL = 4000
Private Const ERROR_CAN_NOT_DEL_LOCAL_WINS = 4001
Private Const ERROR_STATIC_INIT = 4002
Private Const ERROR_INC_BACKUP = 4003
Private Const ERROR_FULL_BACKUP = 4004
Private Const ERROR_REC_NON_EXISTENT = 4005
Private Const ERROR_RPL_NOT_ALLOWED = 4006
Private Const ERROR_DHCP_ADDRESS_CONFLICT = 4100
Private Const ERROR_WMI_GUID_NOT_FOUND = 4200
Private Const ERROR_WMI_INSTANCE_NOT_FOUND = 4201
Private Const ERROR_WMI_ITEMID_NOT_FOUND = 4202
Private Const ERROR_WMI_TRY_AGAIN = 4203
Private Const ERROR_WMI_DP_NOT_FOUND = 4204
Private Const ERROR_WMI_UNRESOLVED_INSTANCE_REF = 4205
Private Const ERROR_WMI_ALREADY_ENABLED = 4206
Private Const ERROR_WMI_GUID_DISCONNECTED = 4207
Private Const ERROR_WMI_SERVER_UNAVAILABLE = 4208
Private Const ERROR_WMI_DP_FAILED = 4209
Private Const ERROR_WMI_INVALID_MOF = 4210
Private Const ERROR_WMI_INVALID_REGINFO = 4211
Private Const ERROR_WMI_ALREADY_DISABLED = 4212
Private Const ERROR_WMI_READ_ONLY = 4213
Private Const ERROR_WMI_SET_FAILURE = 4214
Private Const ERROR_INVALID_MEDIA = 4300
Private Const ERROR_INVALID_LIBRARY = 4301
Private Const ERROR_INVALID_MEDIA_POOL = 4302
Private Const ERROR_DRIVE_MEDIA_MISMATCH = 4303
Private Const ERROR_MEDIA_OFFLINE = 4304
Private Const ERROR_LIBRARY_OFFLINE = 4305
Private Const ERROR_EMPTY = 4306
Private Const ERROR_NOT_EMPTY = 4307
Private Const ERROR_MEDIA_UNAVAILABLE = 4308
Private Const ERROR_RESOURCE_DISABLED = 4309
Private Const ERROR_INVALID_CLEANER = 4310
Private Const ERROR_UNABLE_TO_CLEAN = 4311
Private Const ERROR_OBJECT_NOT_FOUND = 4312
Private Const ERROR_DATABASE_FAILURE = 4313
Private Const ERROR_DATABASE_FULL = 4314
Private Const ERROR_MEDIA_INCOMPATIBLE = 4315
Private Const ERROR_RESOURCE_NOT_PRESENT = 4316
Private Const ERROR_INVALID_OPERATION = 4317
Private Const ERROR_MEDIA_NOT_AVAILABLE = 4318
Private Const ERROR_DEVICE_NOT_AVAILABLE = 4319
Private Const ERROR_REQUEST_REFUSED = 4320
Private Const ERROR_INVALID_DRIVE_OBJECT = 4321
Private Const ERROR_LIBRARY_FULL = 4322
Private Const ERROR_MEDIUM_NOT_ACCESSIBLE = 4323
Private Const ERROR_UNABLE_TO_LOAD_MEDIUM = 4324
Private Const ERROR_UNABLE_TO_INVENTORY_DRIVE = 4325
Private Const ERROR_UNABLE_TO_INVENTORY_SLOT = 4326
Private Const ERROR_UNABLE_TO_INVENTORY_TRANSPORT = 4327
Private Const ERROR_TRANSPORT_FULL = 4328
Private Const ERROR_CONTROLLING_IEPORT = 4329
Private Const ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA = 4330
Private Const ERROR_CLEANER_SLOT_SET = 4331
Private Const ERROR_CLEANER_SLOT_NOT_SET = 4332
Private Const ERROR_CLEANER_CARTRIDGE_SPENT = 4333
Private Const ERROR_UNEXPECTED_OMID = 4334
Private Const ERROR_CANT_DELETE_LAST_ITEM = 4335
Private Const ERROR_MESSAGE_EXCEEDS_MAX_SIZE = 4336
Private Const ERROR_VOLUME_CONTAINS_SYS_FILES = 4337
Private Const ERROR_INDIGENOUS_TYPE = 4338
Private Const ERROR_NO_SUPPORTING_DRIVES = 4339
Private Const ERROR_FILE_OFFLINE = 4350
Private Const ERROR_REMOTE_STORAGE_NOT_ACTIVE = 4351
Private Const ERROR_REMOTE_STORAGE_MEDIA_ERROR = 4352
Private Const ERROR_NOT_A_REPARSE_POINT = 4390
Private Const ERROR_REPARSE_ATTRIBUTE_CONFLICT = 4391
Private Const ERROR_INVALID_REPARSE_DATA = 4392
Private Const ERROR_REPARSE_TAG_INVALID = 4393
Private Const ERROR_REPARSE_TAG_MISMATCH = 4394
Private Const ERROR_VOLUME_NOT_SIS_ENABLED = 4500
Private Const ERROR_DEPENDENT_RESOURCE_EXISTS = 5001
Private Const ERROR_DEPENDENCY_NOT_FOUND = 5002
Private Const ERROR_DEPENDENCY_ALREADY_EXISTS = 5003
Private Const ERROR_RESOURCE_NOT_ONLINE = 5004
Private Const ERROR_HOST_NODE_NOT_AVAILABLE = 5005
Private Const ERROR_RESOURCE_NOT_AVAILABLE = 5006
Private Const ERROR_RESOURCE_NOT_FOUND = 5007
Private Const ERROR_SHUTDOWN_CLUSTER = 5008
Private Const ERROR_CANT_EVICT_ACTIVE_NODE = 5009
Private Const ERROR_OBJECT_ALREADY_EXISTS = 5010
Private Const ERROR_OBJECT_IN_LIST = 5011
Private Const ERROR_GROUP_NOT_AVAILABLE = 5012
Private Const ERROR_GROUP_NOT_FOUND = 5013
Private Const ERROR_GROUP_NOT_ONLINE = 5014
Private Const ERROR_HOST_NODE_NOT_RESOURCE_OWNER = 5015
Private Const ERROR_HOST_NODE_NOT_GROUP_OWNER = 5016
Private Const ERROR_RESMON_CREATE_FAILED = 5017
Private Const ERROR_RESMON_ONLINE_FAILED = 5018
Private Const ERROR_RESOURCE_ONLINE = 5019
Private Const ERROR_QUORUM_RESOURCE = 5020
Private Const ERROR_NOT_QUORUM_CAPABLE = 5021
Private Const ERROR_CLUSTER_SHUTTING_DOWN = 5022
Private Const ERROR_INVALID_STATE = 5023
Private Const ERROR_RESOURCE_PROPERTIES_STORED = 5024
Private Const ERROR_NOT_QUORUM_CLASS = 5025
Private Const ERROR_CORE_RESOURCE = 5026
Private Const ERROR_QUORUM_RESOURCE_ONLINE_FAILED = 5027
Private Const ERROR_QUORUMLOG_OPEN_FAILED = 5028
Private Const ERROR_CLUSTERLOG_CORRUPT = 5029
Private Const ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE = 5030
Private Const ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE = 5031
Private Const ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND = 5032
Private Const ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE = 5033
Private Const ERROR_QUORUM_OWNER_ALIVE = 5034
Private Const ERROR_NETWORK_NOT_AVAILABLE = 5035
Private Const ERROR_NODE_NOT_AVAILABLE = 5036
Private Const ERROR_ALL_NODES_NOT_AVAILABLE = 5037
Private Const ERROR_RESOURCE_FAILED = 5038
Private Const ERROR_CLUSTER_INVALID_NODE = 5039
Private Const ERROR_CLUSTER_NODE_EXISTS = 5040
Private Const ERROR_CLUSTER_JOIN_IN_PROGRESS = 5041
Private Const ERROR_CLUSTER_NODE_NOT_FOUND = 5042
Private Const ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND = 5043
Private Const ERROR_CLUSTER_NETWORK_EXISTS = 5044
Private Const ERROR_CLUSTER_NETWORK_NOT_FOUND = 5045
Private Const ERROR_CLUSTER_NETINTERFACE_EXISTS = 5046
Private Const ERROR_CLUSTER_NETINTERFACE_NOT_FOUND = 5047
Private Const ERROR_CLUSTER_INVALID_REQUEST = 5048
Private Const ERROR_CLUSTER_INVALID_NETWORK_PROVIDER = 5049
Private Const ERROR_CLUSTER_NODE_DOWN = 5050
Private Const ERROR_CLUSTER_NODE_UNREACHABLE = 5051
Private Const ERROR_CLUSTER_NODE_NOT_MEMBER = 5052
Private Const ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS = 5053
Private Const ERROR_CLUSTER_INVALID_NETWORK = 5054
Private Const ERROR_CLUSTER_NODE_UP = 5056
Private Const ERROR_CLUSTER_IPADDR_IN_USE = 5057
Private Const ERROR_CLUSTER_NODE_NOT_PAUSED = 5058
Private Const ERROR_CLUSTER_NO_SECURITY_CONTEXT = 5059
Private Const ERROR_CLUSTER_NETWORK_NOT_INTERNAL = 5060
Private Const ERROR_CLUSTER_NODE_ALREADY_UP = 5061
Private Const ERROR_CLUSTER_NODE_ALREADY_DOWN = 5062
Private Const ERROR_CLUSTER_NETWORK_ALREADY_ONLINE = 5063
Private Const ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE = 5064
Private Const ERROR_CLUSTER_NODE_ALREADY_MEMBER = 5065
Private Const ERROR_CLUSTER_LAST_INTERNAL_NETWORK = 5066
Private Const ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS = 5067
Private Const ERROR_INVALID_OPERATION_ON_QUORUM = 5068
Private Const ERROR_DEPENDENCY_NOT_ALLOWED = 5069
Private Const ERROR_CLUSTER_NODE_PAUSED = 5070
Private Const ERROR_NODE_CANT_HOST_RESOURCE = 5071
Private Const ERROR_CLUSTER_NODE_NOT_READY = 5072
Private Const ERROR_CLUSTER_NODE_SHUTTING_DOWN = 5073
Private Const ERROR_CLUSTER_JOIN_ABORTED = 5074
Private Const ERROR_CLUSTER_INCOMPATIBLE_VERSIONS = 5075
Private Const ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED = 5076
Private Const ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED = 5077
Private Const ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND = 5078
Private Const ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED = 5079
Private Const ERROR_CLUSTER_RESNAME_NOT_FOUND = 5080
Private Const ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED = 5081
Private Const ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST = 5082
Private Const ERROR_CLUSTER_DATABASE_SEQMISMATCH = 5083
Private Const ERROR_RESMON_INVALID_STATE = 5084
Private Const ERROR_CLUSTER_GUM_NOT_LOCKER = 5085
Private Const ERROR_QUORUM_DISK_NOT_FOUND = 5086
Private Const ERROR_DATABASE_BACKUP_CORRUPT = 5087
Private Const ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT = 5088
Private Const ERROR_RESOURCE_PROPERTY_UNCHANGEABLE = 5089
Private Const ERROR_ENCRYPTION_FAILED = 6000
Private Const ERROR_DECRYPTION_FAILED = 6001
Private Const ERROR_FILE_ENCRYPTED = 6002
Private Const ERROR_NO_RECOVERY_POLICY = 6003
Private Const ERROR_NO_EFS = 6004
Private Const ERROR_WRONG_EFS = 6005
Private Const ERROR_NO_USER_KEYS = 6006
Private Const ERROR_FILE_NOT_ENCRYPTED = 6007
Private Const ERROR_NOT_EXPORT_FORMAT = 6008
Private Const ERROR_FILE_READ_ONLY = 6009
Private Const ERROR_DIR_EFS_DISALLOWED = 6010
Private Const ERROR_EFS_SERVER_NOT_TRUSTED = 6011
Private Const ERROR_NO_BROWSER_SERVERS_FOUND = 6118
Private Const SCHED_E_SERVICE_NOT_LOCALSYSTEM = 6200
Private Const ERROR_CTX_WINSTATION_NAME_INVALID = 7001
Private Const ERROR_CTX_INVALID_PD = 7002
Private Const ERROR_CTX_PD_NOT_FOUND = 7003
Private Const ERROR_CTX_WD_NOT_FOUND = 7004
Private Const ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY = 7005
Private Const ERROR_CTX_SERVICE_NAME_COLLISION = 7006
Private Const ERROR_CTX_CLOSE_PENDING = 7007
Private Const ERROR_CTX_NO_OUTBUF = 7008
Private Const ERROR_CTX_MODEM_INF_NOT_FOUND = 7009
Private Const ERROR_CTX_INVALID_MODEMNAME = 7010
Private Const ERROR_CTX_MODEM_RESPONSE_ERROR = 7011
Private Const ERROR_CTX_MODEM_RESPONSE_TIMEOUT = 7012
Private Const ERROR_CTX_MODEM_RESPONSE_NO_CARRIER = 7013
Private Const ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE = 7014
Private Const ERROR_CTX_MODEM_RESPONSE_BUSY = 7015
Private Const ERROR_CTX_MODEM_RESPONSE_VOICE = 7016
Private Const ERROR_CTX_TD_ERROR = 7017
Private Const ERROR_CTX_WINSTATION_NOT_FOUND = 7022
Private Const ERROR_CTX_WINSTATION_ALREADY_EXISTS = 7023
Private Const ERROR_CTX_WINSTATION_BUSY = 7024
Private Const ERROR_CTX_BAD_VIDEO_MODE = 7025
Private Const ERROR_CTX_GRAPHICS_INVALID = 7035
Private Const ERROR_CTX_LOGON_DISABLED = 7037
Private Const ERROR_CTX_NOT_CONSOLE = 7038
Private Const ERROR_CTX_CLIENT_QUERY_TIMEOUT = 7040
Private Const ERROR_CTX_CONSOLE_DISCONNECT = 7041
Private Const ERROR_CTX_CONSOLE_CONNECT = 7042
Private Const ERROR_CTX_SHADOW_DENIED = 7044
Private Const ERROR_CTX_WINSTATION_ACCESS_DENIED = 7045
Private Const ERROR_CTX_INVALID_WD = 7049
Private Const ERROR_CTX_SHADOW_INVALID = 7050
Private Const ERROR_CTX_SHADOW_DISABLED = 7051
Private Const ERROR_CTX_CLIENT_LICENSE_IN_USE = 7052
Private Const ERROR_CTX_CLIENT_LICENSE_NOT_SET = 7053
Private Const ERROR_CTX_LICENSE_NOT_AVAILABLE = 7054
Private Const ERROR_CTX_LICENSE_CLIENT_INVALID = 7055
Private Const ERROR_CTX_LICENSE_EXPIRED = 7056
Private Const FRS_ERR_INVALID_API_SEQUENCE = 8001
Private Const FRS_ERR_STARTING_SERVICE = 8002
Private Const FRS_ERR_STOPPING_SERVICE = 8003
Private Const FRS_ERR_INTERNAL_API = 8004
Private Const FRS_ERR_INTERNAL = 8005
Private Const FRS_ERR_SERVICE_COMM = 8006
Private Const FRS_ERR_INSUFFICIENT_PRIV = 8007
Private Const FRS_ERR_AUTHENTICATION = 8008
Private Const FRS_ERR_PARENT_INSUFFICIENT_PRIV = 8009
Private Const FRS_ERR_PARENT_AUTHENTICATION = 8010
Private Const FRS_ERR_CHILD_TO_PARENT_COMM = 8011
Private Const FRS_ERR_PARENT_TO_CHILD_COMM = 8012
Private Const FRS_ERR_SYSVOL_POPULATE = 8013
Private Const FRS_ERR_SYSVOL_POPULATE_TIMEOUT = 8014
Private Const FRS_ERR_SYSVOL_IS_BUSY = 8015
Private Const FRS_ERR_SYSVOL_DEMOTE = 8016
Private Const FRS_ERR_INVALID_SERVICE_PARAMETER = 8017
Private Const ERROR_DS_NOT_INSTALLED = 8200
Private Const ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY = 8201
Private Const ERROR_DS_NO_ATTRIBUTE_OR_VALUE = 8202
Private Const ERROR_DS_INVALID_ATTRIBUTE_SYNTAX = 8203
Private Const ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED = 8204
Private Const ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS = 8205
Private Const ERROR_DS_BUSY = 8206
Private Const ERROR_DS_UNAVAILABLE = 8207
Private Const ERROR_DS_NO_RIDS_ALLOCATED = 8208
Private Const ERROR_DS_NO_MORE_RIDS = 8209
Private Const ERROR_DS_INCORRECT_ROLE_OWNER = 8210
Private Const ERROR_DS_RIDMGR_INIT_ERROR = 8211
Private Const ERROR_DS_OBJ_CLASS_VIOLATION = 8212
Private Const ERROR_DS_CANT_ON_NON_LEAF = 8213
Private Const ERROR_DS_CANT_ON_RDN = 8214
Private Const ERROR_DS_CANT_MOD_OBJ_CLASS = 8215
Private Const ERROR_DS_CROSS_DOM_MOVE_ERROR = 8216
Private Const ERROR_DS_GC_NOT_AVAILABLE = 8217
Private Const ERROR_SHARED_POLICY = 8218
Private Const ERROR_POLICY_OBJECT_NOT_FOUND = 8219
Private Const ERROR_POLICY_ONLY_IN_DS = 8220
Private Const ERROR_PROMOTION_ACTIVE = 8221
Private Const ERROR_NO_PROMOTION_ACTIVE = 8222
Private Const ERROR_DS_OPERATIONS_ERROR = 8224
Private Const ERROR_DS_PROTOCOL_ERROR = 8225
Private Const ERROR_DS_TIMELIMIT_EXCEEDED = 8226
Private Const ERROR_DS_SIZELIMIT_EXCEEDED = 8227
Private Const ERROR_DS_ADMIN_LIMIT_EXCEEDED = 8228
Private Const ERROR_DS_COMPARE_FALSE = 8229
Private Const ERROR_DS_COMPARE_TRUE = 8230
Private Const ERROR_DS_AUTH_METHOD_NOT_SUPPORTED = 8231
Private Const ERROR_DS_STRONG_AUTH_REQUIRED = 8232
Private Const ERROR_DS_INAPPROPRIATE_AUTH = 8233
Private Const ERROR_DS_AUTH_UNKNOWN = 8234
Private Const ERROR_DS_REFERRAL = 8235
Private Const ERROR_DS_UNAVAILABLE_CRIT_EXTENSION = 8236
Private Const ERROR_DS_CONFIDENTIALITY_REQUIRED = 8237
Private Const ERROR_DS_INAPPROPRIATE_MATCHING = 8238
Private Const ERROR_DS_CONSTRAINT_VIOLATION = 8239
Private Const ERROR_DS_NO_SUCH_OBJECT = 8240
Private Const ERROR_DS_ALIAS_PROBLEM = 8241
Private Const ERROR_DS_INVALID_DN_SYNTAX = 8242
Private Const ERROR_DS_IS_LEAF = 8243
Private Const ERROR_DS_ALIAS_DEREF_PROBLEM = 8244
Private Const ERROR_DS_UNWILLING_TO_PERFORM = 8245
Private Const ERROR_DS_LOOP_DETECT = 8246
Private Const ERROR_DS_NAMING_VIOLATION = 8247
Private Const ERROR_DS_OBJECT_RESULTS_TOO_LARGE = 8248
Private Const ERROR_DS_AFFECTS_MULTIPLE_DSAS = 8249
Private Const ERROR_DS_SERVER_DOWN = 8250
Private Const ERROR_DS_LOCAL_ERROR = 8251
Private Const ERROR_DS_ENCODING_ERROR = 8252
Private Const ERROR_DS_DECODING_ERROR = 8253
Private Const ERROR_DS_FILTER_UNKNOWN = 8254
Private Const ERROR_DS_PARAM_ERROR = 8255
Private Const ERROR_DS_NOT_SUPPORTED = 8256
Private Const ERROR_DS_NO_RESULTS_RETURNED = 8257
Private Const ERROR_DS_CONTROL_NOT_FOUND = 8258
Private Const ERROR_DS_CLIENT_LOOP = 8259
Private Const ERROR_DS_REFERRAL_LIMIT_EXCEEDED = 8260
Private Const ERROR_DS_ROOT_MUST_BE_NC = 8301
Private Const ERROR_DS_ADD_REPLICA_INHIBITED = 8302
Private Const ERROR_DS_ATT_NOT_DEF_IN_SCHEMA = 8303
Private Const ERROR_DS_MAX_OBJ_SIZE_EXCEEDED = 8304
Private Const ERROR_DS_OBJ_STRING_NAME_EXISTS = 8305
Private Const ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA = 8306
Private Const ERROR_DS_RDN_DOESNT_MATCH_SCHEMA = 8307
Private Const ERROR_DS_NO_REQUESTED_ATTS_FOUND = 8308
Private Const ERROR_DS_USER_BUFFER_TO_SMALL = 8309
Private Const ERROR_DS_ATT_IS_NOT_ON_OBJ = 8310
Private Const ERROR_DS_ILLEGAL_MOD_OPERATION = 8311
Private Const ERROR_DS_OBJ_TOO_LARGE = 8312
Private Const ERROR_DS_BAD_INSTANCE_TYPE = 8313
Private Const ERROR_DS_MASTERDSA_REQUIRED = 8314
Private Const ERROR_DS_OBJECT_CLASS_REQUIRED = 8315
Private Const ERROR_DS_MISSING_REQUIRED_ATT = 8316
Private Const ERROR_DS_ATT_NOT_DEF_FOR_CLASS = 8317
Private Const ERROR_DS_ATT_ALREADY_EXISTS = 8318
Private Const ERROR_DS_CANT_ADD_ATT_VALUES = 8320
Private Const ERROR_DS_SINGLE_VALUE_CONSTRAINT = 8321
Private Const ERROR_DS_RANGE_CONSTRAINT = 8322
Private Const ERROR_DS_ATT_VAL_ALREADY_EXISTS = 8323
Private Const ERROR_DS_CANT_REM_MISSING_ATT = 8324
Private Const ERROR_DS_CANT_REM_MISSING_ATT_VAL = 8325
Private Const ERROR_DS_ROOT_CANT_BE_SUBREF = 8326
Private Const ERROR_DS_NO_CHAINING = 8327
Private Const ERROR_DS_NO_CHAINED_EVAL = 8328
Private Const ERROR_DS_NO_PARENT_OBJECT = 8329
Private Const ERROR_DS_PARENT_IS_AN_ALIAS = 8330
Private Const ERROR_DS_CANT_MIX_MASTER_AND_REPS = 8331
Private Const ERROR_DS_CHILDREN_EXIST = 8332
Private Const ERROR_DS_OBJ_NOT_FOUND = 8333
Private Const ERROR_DS_ALIASED_OBJ_MISSING = 8334
Private Const ERROR_DS_BAD_NAME_SYNTAX = 8335
Private Const ERROR_DS_ALIAS_POINTS_TO_ALIAS = 8336
Private Const ERROR_DS_CANT_DEREF_ALIAS = 8337
Private Const ERROR_DS_OUT_OF_SCOPE = 8338
Private Const ERROR_DS_CANT_DELETE_DSA_OBJ = 8340
Private Const ERROR_DS_GENERIC_ERROR = 8341
Private Const ERROR_DS_DSA_MUST_BE_INT_MASTER = 8342
Private Const ERROR_DS_CLASS_NOT_DSA = 8343
Private Const ERROR_DS_INSUFF_ACCESS_RIGHTS = 8344
Private Const ERROR_DS_ILLEGAL_SUPERIOR = 8345
Private Const ERROR_DS_ATTRIBUTE_OWNED_BY_SAM = 8346
Private Const ERROR_DS_NAME_TOO_MANY_PARTS = 8347
Private Const ERROR_DS_NAME_TOO_LONG = 8348
Private Const ERROR_DS_NAME_VALUE_TOO_LONG = 8349
Private Const ERROR_DS_NAME_UNPARSEABLE = 8350
Private Const ERROR_DS_NAME_TYPE_UNKNOWN = 8351
Private Const ERROR_DS_NOT_AN_OBJECT = 8352
Private Const ERROR_DS_SEC_DESC_TOO_SHORT = 8353
Private Const ERROR_DS_SEC_DESC_INVALID = 8354
Private Const ERROR_DS_NO_DELETED_NAME = 8355
Private Const ERROR_DS_SUBREF_MUST_HAVE_PARENT = 8356
Private Const ERROR_DS_NCNAME_MUST_BE_NC = 8357
Private Const ERROR_DS_CANT_ADD_SYSTEM_ONLY = 8358
Private Const ERROR_DS_CLASS_MUST_BE_CONCRETE = 8359
Private Const ERROR_DS_INVALID_DMD = 8360
Private Const ERROR_DS_OBJ_GUID_EXISTS = 8361
Private Const ERROR_DS_NOT_ON_BACKLINK = 8362
Private Const E