{***************************************************************************}
{ This source code was generated automatically by                           }
{ Pas file import tool for Scripter Studio (Pro)                            }
{                                                                           }
{ Scripter Studio and Pas file import tool for Scripter Studio              }
{ written by TMS Software                                                   }
{            copyright © 1997 - 2010                                        }
{            Email : info@tmssoftware.com                                   }
{            Web : http://www.tmssoftware.com                               }
{***************************************************************************}
unit ap_CorError;

interface

uses
  Windows,
  CorError,
  Variants,
  atScript;

{$WARNINGS OFF}

type
  TatCorErrorLibrary = class(TatScripterLibrary)
    procedure Init; override;
    class function LibraryName: string; override;
  end;




implementation



procedure TatCorErrorLibrary.Init;
  procedure AddConsts1;
  begin
    With Scripter.DefineClass(ClassType) do
    begin
      AddConstant('FACILITY_URT',FACILITY_URT);
      AddConstant('CEE_E_ENTRYPOINT',CEE_E_ENTRYPOINT);
      AddConstant('CEE_E_CVTRES_NOT_FOUND',CEE_E_CVTRES_NOT_FOUND);
      AddConstant('MSEE_E_LOADLIBFAILED',MSEE_E_LOADLIBFAILED);
      AddConstant('MSEE_E_GETPROCFAILED',MSEE_E_GETPROCFAILED);
      AddConstant('MSEE_E_MULTCOPIESLOADED',MSEE_E_MULTCOPIESLOADED);
      AddConstant('COR_E_APPDOMAINUNLOADED',COR_E_APPDOMAINUNLOADED);
      AddConstant('COR_E_CANNOTUNLOADAPPDOMAIN',COR_E_CANNOTUNLOADAPPDOMAIN);
      AddConstant('MSEE_E_ASSEMBLYLOADINPROGRESS',MSEE_E_ASSEMBLYLOADINPROGRESS);
      AddConstant('MSEE_E_CANNOTCREATEAPPDOMAIN',MSEE_E_CANNOTCREATEAPPDOMAIN);
      AddConstant('COR_E_FIXUPSINEXE',COR_E_FIXUPSINEXE);
      AddConstant('COR_E_NO_LOADLIBRARY_ALLOWED',COR_E_NO_LOADLIBRARY_ALLOWED);
      AddConstant('COR_E_NEWER_RUNTIME',COR_E_NEWER_RUNTIME);
      AddConstant('COR_E_CANNOT_SET_POLICY',COR_E_CANNOT_SET_POLICY);
      AddConstant('COR_E_CANNOT_SPECIFY_EVIDENCE',COR_E_CANNOT_SPECIFY_EVIDENCE);
      AddConstant('HOST_E_DEADLOCK',HOST_E_DEADLOCK);
      AddConstant('HOST_E_INTERRUPTED',HOST_E_INTERRUPTED);
      AddConstant('HOST_E_INVALIDOPERATION',HOST_E_INVALIDOPERATION);
      AddConstant('HOST_E_CLRNOTAVAILABLE',HOST_E_CLRNOTAVAILABLE);
      AddConstant('HOST_E_TIMEOUT',HOST_E_TIMEOUT);
      AddConstant('HOST_E_NOT_OWNER',HOST_E_NOT_OWNER);
      AddConstant('HOST_E_ABANDONED',HOST_E_ABANDONED);
      AddConstant('HOST_E_EXITPROCESS_THREADABORT',HOST_E_EXITPROCESS_THREADABORT);
      AddConstant('HOST_E_EXITPROCESS_ADUNLOAD',HOST_E_EXITPROCESS_ADUNLOAD);
      AddConstant('HOST_E_EXITPROCESS_TIMEOUT',HOST_E_EXITPROCESS_TIMEOUT);
      AddConstant('HOST_E_EXITPROCESS_OUTOFMEMORY',HOST_E_EXITPROCESS_OUTOFMEMORY);
      AddConstant('HOST_E_EXITPROCESS_STACKOVERFLOW',HOST_E_EXITPROCESS_STACKOVERFLOW);
      AddConstant('COR_E_MODULE_HASH_CHECK_FAILED',COR_E_MODULE_HASH_CHECK_FAILED);
      AddConstant('FUSION_E_REF_DEF_MISMATCH',FUSION_E_REF_DEF_MISMATCH);
      AddConstant('FUSION_E_INVALID_PRIVATE_ASM_LOCATION',FUSION_E_INVALID_PRIVATE_ASM_LOCATION);
      AddConstant('FUSION_E_ASM_MODULE_MISSING',FUSION_E_ASM_MODULE_MISSING);
      AddConstant('FUSION_E_UNEXPECTED_MODULE_FOUND',FUSION_E_UNEXPECTED_MODULE_FOUND);
      AddConstant('FUSION_E_PRIVATE_ASM_DISALLOWED',FUSION_E_PRIVATE_ASM_DISALLOWED);
      AddConstant('FUSION_E_SIGNATURE_CHECK_FAILED',FUSION_E_SIGNATURE_CHECK_FAILED);
      AddConstant('FUSION_E_DATABASE_ERROR',FUSION_E_DATABASE_ERROR);
      AddConstant('FUSION_E_INVALID_NAME',FUSION_E_INVALID_NAME);
      AddConstant('FUSION_E_CODE_DOWNLOAD_DISABLED',FUSION_E_CODE_DOWNLOAD_DISABLED);
      AddConstant('FUSION_E_UNINSTALL_DISALLOWED',FUSION_E_UNINSTALL_DISALLOWED);
      AddConstant('FUSION_E_HOST_GAC_ASM_MISMATCH',FUSION_E_HOST_GAC_ASM_MISMATCH);
      AddConstant('FUSION_E_LOADFROM_BLOCKED',FUSION_E_LOADFROM_BLOCKED);
      AddConstant('FUSION_E_CACHEFILE_FAILED',FUSION_E_CACHEFILE_FAILED);
      AddConstant('CLDB_E_FILE_BADREAD',CLDB_E_FILE_BADREAD);
      AddConstant('CLDB_E_FILE_BADWRITE',CLDB_E_FILE_BADWRITE);
      AddConstant('CLDB_E_FILE_READONLY',CLDB_E_FILE_READONLY);
      AddConstant('CLDB_E_NAME_ERROR',CLDB_E_NAME_ERROR);
      AddConstant('CLDB_S_TRUNCATION',CLDB_S_TRUNCATION);
      AddConstant('CLDB_E_TRUNCATION',CLDB_E_TRUNCATION);
      AddConstant('CLDB_E_FILE_OLDVER',CLDB_E_FILE_OLDVER);
      AddConstant('CLDB_E_RELOCATED',CLDB_E_RELOCATED);
      AddConstant('CLDB_S_NULL',CLDB_S_NULL);
      AddConstant('CLDB_E_SMDUPLICATE',CLDB_E_SMDUPLICATE);
      AddConstant('CLDB_E_NO_DATA',CLDB_E_NO_DATA);
      AddConstant('CLDB_E_READONLY',CLDB_E_READONLY);
      AddConstant('CLDB_E_INCOMPATIBLE',CLDB_E_INCOMPATIBLE);
      AddConstant('CLDB_E_FILE_CORRUPT',CLDB_E_FILE_CORRUPT);
      AddConstant('CLDB_E_SCHEMA_VERNOTFOUND',CLDB_E_SCHEMA_VERNOTFOUND);
      AddConstant('CLDB_E_BADUPDATEMODE',CLDB_E_BADUPDATEMODE);
      AddConstant('CLDB_E_INDEX_NONULLKEYS',CLDB_E_INDEX_NONULLKEYS);
      AddConstant('CLDB_E_INDEX_DUPLICATE',CLDB_E_INDEX_DUPLICATE);
      AddConstant('CLDB_E_INDEX_BADTYPE',CLDB_E_INDEX_BADTYPE);
      AddConstant('CLDB_E_INDEX_NOTFOUND',CLDB_E_INDEX_NOTFOUND);
      AddConstant('CLDB_S_INDEX_TABLESCANREQUIRED',CLDB_S_INDEX_TABLESCANREQUIRED);
      AddConstant('CLDB_E_RECORD_NOTFOUND',CLDB_E_RECORD_NOTFOUND);
      AddConstant('CLDB_E_RECORD_OVERFLOW',CLDB_E_RECORD_OVERFLOW);
      AddConstant('CLDB_E_RECORD_DUPLICATE',CLDB_E_RECORD_DUPLICATE);
      AddConstant('CLDB_E_RECORD_PKREQUIRED',CLDB_E_RECORD_PKREQUIRED);
      AddConstant('CLDB_E_RECORD_DELETED',CLDB_E_RECORD_DELETED);
      AddConstant('CLDB_E_RECORD_OUTOFORDER',CLDB_E_RECORD_OUTOFORDER);
      AddConstant('CLDB_E_COLUMN_OVERFLOW',CLDB_E_COLUMN_OVERFLOW);
      AddConstant('CLDB_E_COLUMN_READONLY',CLDB_E_COLUMN_READONLY);
      AddConstant('CLDB_E_COLUMN_SPECIALCOL',CLDB_E_COLUMN_SPECIALCOL);
      AddConstant('CLDB_E_COLUMN_PKNONULLS',CLDB_E_COLUMN_PKNONULLS);
      AddConstant('CLDB_E_TABLE_CANTDROP',CLDB_E_TABLE_CANTDROP);
      AddConstant('CLDB_E_OBJECT_NOTFOUND',CLDB_E_OBJECT_NOTFOUND);
      AddConstant('CLDB_E_OBJECT_COLNOTFOUND',CLDB_E_OBJECT_COLNOTFOUND);
      AddConstant('CLDB_E_VECTOR_BADINDEX',CLDB_E_VECTOR_BADINDEX);
      AddConstant('CLDB_E_TOO_BIG',CLDB_E_TOO_BIG);
      AddConstant('META_E_INVALID_TOKEN_TYPE',META_E_INVALID_TOKEN_TYPE);
      AddConstant('TLBX_E_INVALID_TYPEINFO',TLBX_E_INVALID_TYPEINFO);
      AddConstant('TLBX_E_INVALID_TYPEINFO_UNNAMED',TLBX_E_INVALID_TYPEINFO_UNNAMED);
      AddConstant('TLBX_E_CTX_NESTED',TLBX_E_CTX_NESTED);
      AddConstant('TLBX_E_ERROR_MESSAGE',TLBX_E_ERROR_MESSAGE);
      AddConstant('TLBX_E_CANT_SAVE',TLBX_E_CANT_SAVE);
      AddConstant('TLBX_W_LIBNOTREGISTERED',TLBX_W_LIBNOTREGISTERED);
      AddConstant('TLBX_E_CANTLOADLIBRARY',TLBX_E_CANTLOADLIBRARY);
      AddConstant('TLBX_E_BAD_VT_TYPE',TLBX_E_BAD_VT_TYPE);
      AddConstant('TLBX_E_NO_MSCOREE_TLB',TLBX_E_NO_MSCOREE_TLB);
      AddConstant('TLBX_E_BAD_MSCOREE_TLB',TLBX_E_BAD_MSCOREE_TLB);
      AddConstant('TLBX_E_TLB_EXCEPTION',TLBX_E_TLB_EXCEPTION);
      AddConstant('TLBX_E_MULTIPLE_LCIDS',TLBX_E_MULTIPLE_LCIDS);
      AddConstant('TLBX_I_TYPEINFO_IMPORTED',TLBX_I_TYPEINFO_IMPORTED);
      AddConstant('TLBX_E_AMBIGUOUS_RETURN',TLBX_E_AMBIGUOUS_RETURN);
      AddConstant('TLBX_E_DUPLICATE_TYPE_NAME',TLBX_E_DUPLICATE_TYPE_NAME);
      AddConstant('TLBX_I_USEIUNKNOWN',TLBX_I_USEIUNKNOWN);
      AddConstant('TLBX_I_UNCONVERTABLE_ARGS',TLBX_I_UNCONVERTABLE_ARGS);
      AddConstant('TLBX_I_UNCONVERTABLE_FIELD',TLBX_I_UNCONVERTABLE_FIELD);
      AddConstant('TLBX_I_NONSEQUENTIALSTRUCT',TLBX_I_NONSEQUENTIALSTRUCT);
      AddConstant('TLBX_W_WARNING_MESSAGE',TLBX_W_WARNING_MESSAGE);
      AddConstant('TLBX_I_RESOLVEREFFAILED',TLBX_I_RESOLVEREFFAILED);
      AddConstant('TLBX_E_ASANY',TLBX_E_ASANY);
      AddConstant('TLBX_E_INVALIDLCIDPARAM',TLBX_E_INVALIDLCIDPARAM);
      AddConstant('TLBX_E_LCIDONDISPONLYITF',TLBX_E_LCIDONDISPONLYITF);
      AddConstant('TLBX_E_NONPUBLIC_FIELD',TLBX_E_NONPUBLIC_FIELD);
      AddConstant('TLBX_I_TYPE_EXPORTED',TLBX_I_TYPE_EXPORTED);
      AddConstant('TLBX_I_DUPLICATE_DISPID',TLBX_I_DUPLICATE_DISPID);
      AddConstant('TLBX_E_BAD_NAMES',TLBX_E_BAD_NAMES);
      AddConstant('TLBX_I_REF_TYPE_AS_STRUCT',TLBX_I_REF_TYPE_AS_STRUCT);
      AddConstant('TLBX_E_GENERICINST_SIGNATURE',TLBX_E_GENERICINST_SIGNATURE);
      AddConstant('TLBX_E_GENERICPAR_SIGNATURE',TLBX_E_GENERICPAR_SIGNATURE);
      AddConstant('TLBX_I_GENERIC_TYPE',TLBX_I_GENERIC_TYPE);
      AddConstant('META_E_DUPLICATE',META_E_DUPLICATE);
      AddConstant('META_E_GUID_REQUIRED',META_E_GUID_REQUIRED);
      AddConstant('META_E_TYPEDEF_MISMATCH',META_E_TYPEDEF_MISMATCH);
      AddConstant('META_E_MERGE_COLLISION',META_E_MERGE_COLLISION);
      AddConstant('TLBX_W_NON_INTEGRAL_CA_TYPE',TLBX_W_NON_INTEGRAL_CA_TYPE);
      AddConstant('TLBX_W_IENUM_CA_ON_IUNK',TLBX_W_IENUM_CA_ON_IUNK);
      AddConstant('TLBX_E_NO_SAFEHANDLE_ARRAYS',TLBX_E_NO_SAFEHANDLE_ARRAYS);
      AddConstant('META_E_METHD_NOT_FOUND',META_E_METHD_NOT_FOUND);
      AddConstant('META_E_FIELD_NOT_FOUND',META_E_FIELD_NOT_FOUND);
      AddConstant('META_S_PARAM_MISMATCH',META_S_PARAM_MISMATCH);
      AddConstant('META_E_PARAM_MISMATCH',META_E_PARAM_MISMATCH);
      AddConstant('META_E_BADMETADATA',META_E_BADMETADATA);
      AddConstant('META_E_INTFCEIMPL_NOT_FOUND',META_E_INTFCEIMPL_NOT_FOUND);
      AddConstant('TLBX_E_NO_CRITICALHANDLE_ARRAYS',TLBX_E_NO_CRITICALHANDLE_ARRAYS);
      AddConstant('META_E_CLASS_LAYOUT_INCONSISTENT',META_E_CLASS_LAYOUT_INCONSISTENT);
      AddConstant('META_E_FIELD_MARSHAL_NOT_FOUND',META_E_FIELD_MARSHAL_NOT_FOUND);
      AddConstant('META_E_METHODSEM_NOT_FOUND',META_E_METHODSEM_NOT_FOUND);
      AddConstant('META_E_EVENT_NOT_FOUND',META_E_EVENT_NOT_FOUND);
      AddConstant('META_E_PROP_NOT_FOUND',META_E_PROP_NOT_FOUND);
      AddConstant('META_E_BAD_SIGNATURE',META_E_BAD_SIGNATURE);
      AddConstant('META_E_BAD_INPUT_PARAMETER',META_E_BAD_INPUT_PARAMETER);
      AddConstant('META_E_METHDIMPL_INCONSISTENT',META_E_METHDIMPL_INCONSISTENT);
      AddConstant('META_E_MD_INCONSISTENCY',META_E_MD_INCONSISTENCY);
      AddConstant('META_E_CANNOTRESOLVETYPEREF',META_E_CANNOTRESOLVETYPEREF);
      AddConstant('META_S_DUPLICATE',META_S_DUPLICATE);
      AddConstant('META_E_STRINGSPACE_FULL',META_E_STRINGSPACE_FULL);
      AddConstant('META_E_UNEXPECTED_REMAP',META_E_UNEXPECTED_REMAP);
      AddConstant('META_E_HAS_UNMARKALL',META_E_HAS_UNMARKALL);
      AddConstant('META_E_MUST_CALL_UNMARKALL',META_E_MUST_CALL_UNMARKALL);
      AddConstant('META_E_GENERICPARAM_INCONSISTENT',META_E_GENERICPARAM_INCONSISTENT);
      AddConstant('META_E_EVENT_COUNTS',META_E_EVENT_COUNTS);
      AddConstant('META_E_PROPERTY_COUNTS',META_E_PROPERTY_COUNTS);
      AddConstant('META_E_TYPEDEF_MISSING',META_E_TYPEDEF_MISSING);
      AddConstant('TLBX_E_CANT_LOAD_MODULE',TLBX_E_CANT_LOAD_MODULE);
      AddConstant('TLBX_E_CANT_LOAD_CLASS',TLBX_E_CANT_LOAD_CLASS);
      AddConstant('TLBX_E_NULL_MODULE',TLBX_E_NULL_MODULE);
      AddConstant('TLBX_E_NO_CLSID_KEY',TLBX_E_NO_CLSID_KEY);
      AddConstant('TLBX_E_CIRCULAR_EXPORT',TLBX_E_CIRCULAR_EXPORT);
      AddConstant('TLBX_E_CIRCULAR_EXPORT2',TLBX_E_CIRCULAR_EXPORT2);
      AddConstant('TLBX_E_CIRCULAR_IMPORT',TLBX_E_CIRCULAR_IMPORT);
      AddConstant('TLBX_E_BAD_NATIVETYPE',TLBX_E_BAD_NATIVETYPE);
      AddConstant('TLBX_E_BAD_VTABLE',TLBX_E_BAD_VTABLE);
      AddConstant('TLBX_E_CRM_NON_STATIC',TLBX_E_CRM_NON_STATIC);
      AddConstant('TLBX_E_CRM_INVALID_SIG',TLBX_E_CRM_INVALID_SIG);
      AddConstant('TLBX_E_CLASS_LOAD_EXCEPTION',TLBX_E_CLASS_LOAD_EXCEPTION);
      AddConstant('TLBX_E_UNKNOWN_SIGNATURE',TLBX_E_UNKNOWN_SIGNATURE);
      AddConstant('TLBX_E_REFERENCED_TYPELIB',TLBX_E_REFERENCED_TYPELIB);
      AddConstant('TLBX_S_REFERENCED_TYPELIB',TLBX_S_REFERENCED_TYPELIB);
      AddConstant('TLBX_E_INVALID_NAMESPACE',TLBX_E_INVALID_NAMESPACE);
      AddConstant('TLBX_E_LAYOUT_ERROR',TLBX_E_LAYOUT_ERROR);
      AddConstant('TLBX_E_NOTIUNKNOWN',TLBX_E_NOTIUNKNOWN);
      AddConstant('TLBX_E_NONVISIBLEVALUECLASS',TLBX_E_NONVISIBLEVALUECLASS);
      AddConstant('TLBX_E_LPTSTR_NOT_ALLOWED',TLBX_E_LPTSTR_NOT_ALLOWED);
      AddConstant('TLBX_E_AUTO_CS_NOT_ALLOWED',TLBX_E_AUTO_CS_NOT_ALLOWED);
      AddConstant('TLBX_S_NOSTDINTERFACE',TLBX_S_NOSTDINTERFACE);
      AddConstant('TLBX_S_DUPLICATE_DISPID',TLBX_S_DUPLICATE_DISPID);
      AddConstant('TLBX_E_ENUM_VALUE_INVALID',TLBX_E_ENUM_VALUE_INVALID);
      AddConstant('TLBX_E_DUPLICATE_IID',TLBX_E_DUPLICATE_IID);
      AddConstant('TLBX_E_NO_NESTED_ARRAYS',TLBX_E_NO_NESTED_ARRAYS);
      AddConstant('TLBX_E_PARAM_ERROR_NAMED',TLBX_E_PARAM_ERROR_NAMED);
      AddConstant('TLBX_E_PARAM_ERROR_UNNAMED',TLBX_E_PARAM_ERROR_UNNAMED);
      AddConstant('TLBX_E_AGNOST_SIGNATURE',TLBX_E_AGNOST_SIGNATURE);
      AddConstant('TLBX_E_CONVERT_FAIL',TLBX_E_CONVERT_FAIL);
      AddConstant('TLBX_W_DUAL_NOT_DISPATCH',TLBX_W_DUAL_NOT_DISPATCH);
      AddConstant('TLBX_E_BAD_SIGNATURE',TLBX_E_BAD_SIGNATURE);
      AddConstant('TLBX_E_ARRAY_NEEDS_NT_FIXED',TLBX_E_ARRAY_NEEDS_NT_FIXED);
      AddConstant('TLBX_E_CLASS_NEEDS_NT_INTF',TLBX_E_CLASS_NEEDS_NT_INTF);
      AddConstant('META_E_CA_INVALID_TARGET',META_E_CA_INVALID_TARGET);
      AddConstant('META_E_CA_INVALID_VALUE',META_E_CA_INVALID_VALUE);
      AddConstant('META_E_CA_INVALID_BLOB',META_E_CA_INVALID_BLOB);
      AddConstant('META_E_CA_REPEATED_ARG',META_E_CA_REPEATED_ARG);
      AddConstant('META_E_CA_UNKNOWN_ARGUMENT',META_E_CA_UNKNOWN_ARGUMENT);
      AddConstant('META_E_CA_VARIANT_NYI',META_E_CA_VARIANT_NYI);
      AddConstant('META_E_CA_ARRAY_NYI',META_E_CA_ARRAY_NYI);
      AddConstant('META_E_CA_UNEXPECTED_TYPE',META_E_CA_UNEXPECTED_TYPE);
      AddConstant('META_E_CA_INVALID_ARGTYPE',META_E_CA_INVALID_ARGTYPE);
      AddConstant('META_E_CA_INVALID_ARG_FOR_TYPE',META_E_CA_INVALID_ARG_FOR_TYPE);
      AddConstant('META_E_CA_INVALID_UUID',META_E_CA_INVALID_UUID);
      AddConstant('META_E_CA_INVALID_MARSHALAS_FIELDS',META_E_CA_INVALID_MARSHALAS_FIELDS);
      AddConstant('META_E_CA_NT_FIELDONLY',META_E_CA_NT_FIELDONLY);
      AddConstant('META_E_CA_NEGATIVE_PARAMINDEX',META_E_CA_NEGATIVE_PARAMINDEX);
      AddConstant('META_E_CA_NEGATIVE_MULTIPLIER',META_E_CA_NEGATIVE_MULTIPLIER);
      AddConstant('META_E_CA_NEGATIVE_CONSTSIZE',META_E_CA_NEGATIVE_CONSTSIZE);
      AddConstant('META_E_CA_FIXEDSTR_SIZE_REQUIRED',META_E_CA_FIXEDSTR_SIZE_REQUIRED);
      AddConstant('META_E_CA_CUSTMARSH_TYPE_REQUIRED',META_E_CA_CUSTMARSH_TYPE_REQUIRED);
      AddConstant('META_E_CA_FILENAME_REQUIRED',META_E_CA_FILENAME_REQUIRED);
      AddConstant('TLBX_W_NO_PROPS_IN_EVENTS',TLBX_W_NO_PROPS_IN_EVENTS);
      AddConstant('META_E_NOT_IN_ENC_MODE',META_E_NOT_IN_ENC_MODE);
      AddConstant('TLBX_W_ENUM_VALUE_TOOBIG',TLBX_W_ENUM_VALUE_TOOBIG);
      AddConstant('META_E_METHOD_COUNTS',META_E_METHOD_COUNTS);
      AddConstant('META_E_FIELD_COUNTS',META_E_FIELD_COUNTS);
      AddConstant('META_E_PARAM_COUNTS',META_E_PARAM_COUNTS);
      AddConstant('TLBX_W_EXPORTING_AUTO_LAYOUT',TLBX_W_EXPORTING_AUTO_LAYOUT);
      AddConstant('TLBX_E_TYPED_REF',TLBX_E_TYPED_REF);
      AddConstant('TLBX_W_DEFAULT_INTF_NOT_VISIBLE',TLBX_W_DEFAULT_INTF_NOT_VISIBLE);
      AddConstant('TLBX_W_BAD_SAFEARRAYFIELD_NO_ELEMENTVT',TLBX_W_BAD_SAFEARRAYFIELD_NO_ELEMENTVT);
      AddConstant('TLBX_W_LAYOUTCLASS_AS_INTERFACE',TLBX_W_LAYOUTCLASS_AS_INTERFACE);
      AddConstant('TLBX_I_GENERIC_BASE_TYPE',TLBX_I_GENERIC_BASE_TYPE);
      AddConstant('TLBX_E_BITNESS_MISMATCH',TLBX_E_BITNESS_MISMATCH);
      AddConstant('TLBX_E_EVENT_WITH_NEWENUM',TLBX_E_EVENT_WITH_NEWENUM);
      AddConstant('TLBX_E_PROPGET_WITHOUT_RETURN',TLBX_E_PROPGET_WITHOUT_RETURN);
      AddConstant('META_E_MISMATCHED_VISIBLITY',META_E_MISMATCHED_VISIBLITY);
      AddConstant('META_E_CA_BAD_FRIENDS_ARGS',META_E_CA_BAD_FRIENDS_ARGS);
      AddConstant('META_E_CA_FRIENDS_SN_REQUIRED',META_E_CA_FRIENDS_SN_REQUIRED);
      AddConstant('VLDTR_S_WRN',VLDTR_S_WRN);
      AddConstant('VLDTR_S_ERR',VLDTR_S_ERR);
      AddConstant('VLDTR_S_WRNERR',VLDTR_S_WRNERR);
      AddConstant('VLDTR_E_RID_OUTOFRANGE',VLDTR_E_RID_OUTOFRANGE);
      AddConstant('VLDTR_E_CDTKN_OUTOFRANGE',VLDTR_E_CDTKN_OUTOFRANGE);
      AddConstant('VLDTR_E_CDRID_OUTOFRANGE',VLDTR_E_CDRID_OUTOFRANGE);
      AddConstant('VLDTR_E_STRING_INVALID',VLDTR_E_STRING_INVALID);
      AddConstant('VLDTR_E_GUID_INVALID',VLDTR_E_GUID_INVALID);
      AddConstant('VLDTR_E_BLOB_INVALID',VLDTR_E_BLOB_INVALID);
      AddConstant('VLDTR_E_MOD_MULTI',VLDTR_E_MOD_MULTI);
      AddConstant('VLDTR_E_MOD_NULLMVID',VLDTR_E_MOD_NULLMVID);
      AddConstant('VLDTR_E_TR_NAMENULL',VLDTR_E_TR_NAMENULL);
      AddConstant('VLDTR_E_TR_DUP',VLDTR_E_TR_DUP);
      AddConstant('VLDTR_E_TD_NAMENULL',VLDTR_E_TD_NAMENULL);
      AddConstant('VLDTR_E_TD_DUPNAME',VLDTR_E_TD_DUPNAME);
      AddConstant('VLDTR_E_TD_DUPGUID',VLDTR_E_TD_DUPGUID);
      AddConstant('VLDTR_E_TD_NOTIFACEOBJEXTNULL',VLDTR_E_TD_NOTIFACEOBJEXTNULL);
      AddConstant('VLDTR_E_TD_OBJEXTENDSNONNULL',VLDTR_E_TD_OBJEXTENDSNONNULL);
      AddConstant('VLDTR_E_TD_EXTENDSSEALED',VLDTR_E_TD_EXTENDSSEALED);
      AddConstant('VLDTR_E_TD_DLTNORTSPCL',VLDTR_E_TD_DLTNORTSPCL);
      AddConstant('VLDTR_E_TD_RTSPCLNOTDLT',VLDTR_E_TD_RTSPCLNOTDLT);
      AddConstant('VLDTR_E_MI_DECLPRIV',VLDTR_E_MI_DECLPRIV);
      AddConstant('VLDTR_E_AS_BADNAME',VLDTR_E_AS_BADNAME);
      AddConstant('VLDTR_E_FILE_SYSNAME',VLDTR_E_FILE_SYSNAME);
      AddConstant('VLDTR_E_MI_BODYSTATIC',VLDTR_E_MI_BODYSTATIC);
      AddConstant('VLDTR_E_TD_IFACENOTABS',VLDTR_E_TD_IFACENOTABS);
      AddConstant('VLDTR_E_TD_IFACEPARNOTNIL',VLDTR_E_TD_IFACEPARNOTNIL);
      AddConstant('VLDTR_E_TD_IFACEGUIDNULL',VLDTR_E_TD_IFACEGUIDNULL);
      AddConstant('VLDTR_E_MI_DECLFINAL',VLDTR_E_MI_DECLFINAL);
      AddConstant('VLDTR_E_TD_VTNOTSEAL',VLDTR_E_TD_VTNOTSEAL);
      AddConstant('VLDTR_E_PD_BADFLAGS',VLDTR_E_PD_BADFLAGS);
      AddConstant('VLDTR_E_IFACE_DUP',VLDTR_E_IFACE_DUP);
      AddConstant('VLDTR_E_MR_NAMENULL',VLDTR_E_MR_NAMENULL);
      AddConstant('VLDTR_E_MR_VTBLNAME',VLDTR_E_MR_VTBLNAME);
      AddConstant('VLDTR_E_MR_DELNAME',VLDTR_E_MR_DELNAME);
      AddConstant('VLDTR_E_MR_PARNIL',VLDTR_E_MR_PARNIL);
      AddConstant('VLDTR_E_MR_BADCALLINGCONV',VLDTR_E_MR_BADCALLINGCONV);
      AddConstant('VLDTR_E_MR_NOTVARARG',VLDTR_E_MR_NOTVARARG);
      AddConstant('VLDTR_E_MR_NAMEDIFF',VLDTR_E_MR_NAMEDIFF);
      AddConstant('VLDTR_E_MR_SIGDIFF',VLDTR_E_MR_SIGDIFF);
      AddConstant('VLDTR_E_MR_DUP',VLDTR_E_MR_DUP);
      AddConstant('VLDTR_E_CL_TDAUTO',VLDTR_E_CL_TDAUTO);
      AddConstant('VLDTR_E_CL_BADPCKSZ',VLDTR_E_CL_BADPCKSZ);
      AddConstant('VLDTR_E_CL_DUP',VLDTR_E_CL_DUP);
      AddConstant('VLDTR_E_FL_BADOFFSET',VLDTR_E_FL_BADOFFSET);
      AddConstant('VLDTR_E_FL_TDNIL',VLDTR_E_FL_TDNIL);
      AddConstant('VLDTR_E_FL_NOCL',VLDTR_E_FL_NOCL);
      AddConstant('VLDTR_E_FL_TDNOTEXPLCT',VLDTR_E_FL_TDNOTEXPLCT);
      AddConstant('VLDTR_E_FL_FLDSTATIC',VLDTR_E_FL_FLDSTATIC);
      AddConstant('VLDTR_E_FL_DUP',VLDTR_E_FL_DUP);
      AddConstant('VLDTR_E_MODREF_NAMENULL',VLDTR_E_MODREF_NAMENULL);
      AddConstant('VLDTR_E_MODREF_DUP',VLDTR_E_MODREF_DUP);
      AddConstant('VLDTR_E_TR_BADSCOPE',VLDTR_E_TR_BADSCOPE);
      AddConstant('VLDTR_E_TD_NESTEDNOENCL',VLDTR_E_TD_NESTEDNOENCL);
      AddConstant('VLDTR_E_TD_EXTTRRES',VLDTR_E_TD_EXTTRRES);
      AddConstant('VLDTR_E_SIGNULL',VLDTR_E_SIGNULL);
      AddConstant('VLDTR_E_SIGNODATA',VLDTR_E_SIGNODATA);
      AddConstant('VLDTR_E_MD_BADCALLINGCONV',VLDTR_E_MD_BADCALLINGCONV);
      AddConstant('VLDTR_E_MD_THISSTATIC',VLDTR_E_MD_THISSTATIC);
      AddConstant('VLDTR_E_MD_NOTTHISNOTSTATIC',VLDTR_E_MD_NOTTHISNOTSTATIC);
      AddConstant('VLDTR_E_MD_NOARGCNT',VLDTR_E_MD_NOARGCNT);
      AddConstant('VLDTR_E_SIG_MISSELTYPE',VLDTR_E_SIG_MISSELTYPE);
      AddConstant('VLDTR_E_SIG_MISSTKN',VLDTR_E_SIG_MISSTKN);
      AddConstant('VLDTR_E_SIG_TKNBAD',VLDTR_E_SIG_TKNBAD);
      AddConstant('VLDTR_E_SIG_MISSFPTR',VLDTR_E_SIG_MISSFPTR);
      AddConstant('VLDTR_E_SIG_MISSFPTRARGCNT',VLDTR_E_SIG_MISSFPTRARGCNT);
      AddConstant('VLDTR_E_SIG_MISSRANK',VLDTR_E_SIG_MISSRANK);
      AddConstant('VLDTR_E_SIG_MISSNSIZE',VLDTR_E_SIG_MISSNSIZE);
      AddConstant('VLDTR_E_SIG_MISSSIZE',VLDTR_E_SIG_MISSSIZE);
      AddConstant('VLDTR_E_SIG_MISSNLBND',VLDTR_E_SIG_MISSNLBND);
      AddConstant('VLDTR_E_SIG_MISSLBND',VLDTR_E_SIG_MISSLBND);
      AddConstant('VLDTR_E_SIG_BADELTYPE',VLDTR_E_SIG_BADELTYPE);
      AddConstant('VLDTR_E_SIG_MISSVASIZE',VLDTR_E_SIG_MISSVASIZE);
      AddConstant('VLDTR_E_FD_BADCALLINGCONV',VLDTR_E_FD_BADCALLINGCONV);
      AddConstant('VLDTR_E_MD_NAMENULL',VLDTR_E_MD_NAMENULL);
      AddConstant('VLDTR_E_MD_PARNIL',VLDTR_E_MD_PARNIL);
      AddConstant('VLDTR_E_MD_DUP',VLDTR_E_MD_DUP);
      AddConstant('VLDTR_E_FD_NAMENULL',VLDTR_E_FD_NAMENULL);
      AddConstant('VLDTR_E_FD_PARNIL',VLDTR_E_FD_PARNIL);
      AddConstant('VLDTR_E_FD_DUP',VLDTR_E_FD_DUP);
      AddConstant('VLDTR_E_AS_MULTI',VLDTR_E_AS_MULTI);
      AddConstant('VLDTR_E_AS_NAMENULL',VLDTR_E_AS_NAMENULL);
    end;
  end;

  procedure AddConsts2;
  begin
    With Scripter.DefineClass(ClassType) do
    begin
      AddConstant('VLDTR_E_SIG_TOKTYPEMISMATCH',VLDTR_E_SIG_TOKTYPEMISMATCH);
      AddConstant('VLDTR_E_CL_TDINTF',VLDTR_E_CL_TDINTF);
      AddConstant('VLDTR_E_ASOS_OSPLTFRMIDINVAL',VLDTR_E_ASOS_OSPLTFRMIDINVAL);
      AddConstant('VLDTR_E_AR_NAMENULL',VLDTR_E_AR_NAMENULL);
      AddConstant('VLDTR_E_TD_ENCLNOTNESTED',VLDTR_E_TD_ENCLNOTNESTED);
      AddConstant('VLDTR_E_AROS_OSPLTFRMIDINVAL',VLDTR_E_AROS_OSPLTFRMIDINVAL);
      AddConstant('VLDTR_E_FILE_NAMENULL',VLDTR_E_FILE_NAMENULL);
      AddConstant('VLDTR_E_CT_NAMENULL',VLDTR_E_CT_NAMENULL);
      AddConstant('VLDTR_E_TD_EXTENDSCHILD',VLDTR_E_TD_EXTENDSCHILD);
      AddConstant('VLDTR_E_MAR_NAMENULL',VLDTR_E_MAR_NAMENULL);
      AddConstant('VLDTR_E_FILE_DUP',VLDTR_E_FILE_DUP);
      AddConstant('VLDTR_E_FILE_NAMEFULLQLFD',VLDTR_E_FILE_NAMEFULLQLFD);
      AddConstant('VLDTR_E_CT_DUP',VLDTR_E_CT_DUP);
      AddConstant('VLDTR_E_MAR_DUP',VLDTR_E_MAR_DUP);
      AddConstant('VLDTR_E_MAR_NOTPUBPRIV',VLDTR_E_MAR_NOTPUBPRIV);
      AddConstant('VLDTR_E_TD_ENUMNOVALUE',VLDTR_E_TD_ENUMNOVALUE);
      AddConstant('VLDTR_E_TD_ENUMVALSTATIC',VLDTR_E_TD_ENUMVALSTATIC);
      AddConstant('VLDTR_E_TD_ENUMVALNOTSN',VLDTR_E_TD_ENUMVALNOTSN);
      AddConstant('VLDTR_E_TD_ENUMFLDNOTST',VLDTR_E_TD_ENUMFLDNOTST);
      AddConstant('VLDTR_E_TD_ENUMFLDNOTLIT',VLDTR_E_TD_ENUMFLDNOTLIT);
      AddConstant('VLDTR_E_TD_ENUMNOLITFLDS',VLDTR_E_TD_ENUMNOLITFLDS);
      AddConstant('VLDTR_E_TD_ENUMFLDSIGMISMATCH',VLDTR_E_TD_ENUMFLDSIGMISMATCH);
      AddConstant('VLDTR_E_TD_ENUMVALNOT1ST',VLDTR_E_TD_ENUMVALNOT1ST);
      AddConstant('VLDTR_E_FD_NOTVALUERTSN',VLDTR_E_FD_NOTVALUERTSN);
      AddConstant('VLDTR_E_FD_VALUEPARNOTENUM',VLDTR_E_FD_VALUEPARNOTENUM);
      AddConstant('VLDTR_E_FD_INSTINIFACE',VLDTR_E_FD_INSTINIFACE);
      AddConstant('VLDTR_E_FD_NOTPUBINIFACE',VLDTR_E_FD_NOTPUBINIFACE);
      AddConstant('VLDTR_E_FMD_GLOBALNOTPUBPRIVSC',VLDTR_E_FMD_GLOBALNOTPUBPRIVSC);
      AddConstant('VLDTR_E_FMD_GLOBALNOTSTATIC',VLDTR_E_FMD_GLOBALNOTSTATIC);
      AddConstant('VLDTR_E_FD_GLOBALNORVA',VLDTR_E_FD_GLOBALNORVA);
      AddConstant('VLDTR_E_MD_CTORZERORVA',VLDTR_E_MD_CTORZERORVA);
      AddConstant('VLDTR_E_FD_MARKEDNOMARSHAL',VLDTR_E_FD_MARKEDNOMARSHAL);
      AddConstant('VLDTR_E_FD_MARSHALNOTMARKED',VLDTR_E_FD_MARSHALNOTMARKED);
      AddConstant('VLDTR_E_FD_MARKEDNODEFLT',VLDTR_E_FD_MARKEDNODEFLT);
      AddConstant('VLDTR_E_FD_DEFLTNOTMARKED',VLDTR_E_FD_DEFLTNOTMARKED);
      AddConstant('VLDTR_E_FMD_MARKEDNOSECUR',VLDTR_E_FMD_MARKEDNOSECUR);
      AddConstant('VLDTR_E_FMD_SECURNOTMARKED',VLDTR_E_FMD_SECURNOTMARKED);
      AddConstant('VLDTR_E_FMD_PINVOKENOTSTATIC',VLDTR_E_FMD_PINVOKENOTSTATIC);
      AddConstant('VLDTR_E_FMD_MARKEDNOPINVOKE',VLDTR_E_FMD_MARKEDNOPINVOKE);
      AddConstant('VLDTR_E_FMD_PINVOKENOTMARKED',VLDTR_E_FMD_PINVOKENOTMARKED);
      AddConstant('VLDTR_E_FMD_BADIMPLMAP',VLDTR_E_FMD_BADIMPLMAP);
      AddConstant('VLDTR_E_IMAP_BADMODREF',VLDTR_E_IMAP_BADMODREF);
      AddConstant('VLDTR_E_IMAP_BADMEMBER',VLDTR_E_IMAP_BADMEMBER);
      AddConstant('VLDTR_E_IMAP_BADIMPORTNAME',VLDTR_E_IMAP_BADIMPORTNAME);
      AddConstant('VLDTR_E_IMAP_BADCALLCONV',VLDTR_E_IMAP_BADCALLCONV);
      AddConstant('VLDTR_E_FMD_BADACCESSFLAG',VLDTR_E_FMD_BADACCESSFLAG);
      AddConstant('VLDTR_E_FD_INITONLYANDLITERAL',VLDTR_E_FD_INITONLYANDLITERAL);
      AddConstant('VLDTR_E_FD_LITERALNOTSTATIC',VLDTR_E_FD_LITERALNOTSTATIC);
      AddConstant('VLDTR_E_FMD_RTSNNOTSN',VLDTR_E_FMD_RTSNNOTSN);
      AddConstant('VLDTR_E_MD_ABSTPARNOTABST',VLDTR_E_MD_ABSTPARNOTABST);
      AddConstant('VLDTR_E_MD_NOTSTATABSTININTF',VLDTR_E_MD_NOTSTATABSTININTF);
      AddConstant('VLDTR_E_MD_NOTPUBININTF',VLDTR_E_MD_NOTPUBININTF);
      AddConstant('VLDTR_E_MD_CTORININTF',VLDTR_E_MD_CTORININTF);
      AddConstant('VLDTR_E_MD_GLOBALCTORCCTOR',VLDTR_E_MD_GLOBALCTORCCTOR);
      AddConstant('VLDTR_E_MD_CTORSTATIC',VLDTR_E_MD_CTORSTATIC);
      AddConstant('VLDTR_E_MD_CTORNOTSNRTSN',VLDTR_E_MD_CTORNOTSNRTSN);
      AddConstant('VLDTR_E_MD_CTORVIRT',VLDTR_E_MD_CTORVIRT);
      AddConstant('VLDTR_E_MD_CTORABST',VLDTR_E_MD_CTORABST);
      AddConstant('VLDTR_E_MD_CCTORNOTSTATIC',VLDTR_E_MD_CCTORNOTSTATIC);
      AddConstant('VLDTR_E_MD_ZERORVA',VLDTR_E_MD_ZERORVA);
      AddConstant('VLDTR_E_MD_FINNOTVIRT',VLDTR_E_MD_FINNOTVIRT);
      AddConstant('VLDTR_E_MD_STATANDFINORVIRT',VLDTR_E_MD_STATANDFINORVIRT);
      AddConstant('VLDTR_E_MD_ABSTANDFINAL',VLDTR_E_MD_ABSTANDFINAL);
      AddConstant('VLDTR_E_MD_ABSTANDIMPL',VLDTR_E_MD_ABSTANDIMPL);
      AddConstant('VLDTR_E_MD_ABSTANDPINVOKE',VLDTR_E_MD_ABSTANDPINVOKE);
      AddConstant('VLDTR_E_MD_ABSTNOTVIRT',VLDTR_E_MD_ABSTNOTVIRT);
      AddConstant('VLDTR_E_MD_NOTABSTNOTIMPL',VLDTR_E_MD_NOTABSTNOTIMPL);
      AddConstant('VLDTR_E_MD_NOTABSTBADFLAGSRVA',VLDTR_E_MD_NOTABSTBADFLAGSRVA);
      AddConstant('VLDTR_E_MD_PRIVSCOPENORVA',VLDTR_E_MD_PRIVSCOPENORVA);
      AddConstant('VLDTR_E_MD_GLOBALABSTORVIRT',VLDTR_E_MD_GLOBALABSTORVIRT);
      AddConstant('VLDTR_E_SIG_LONGFORM',VLDTR_E_SIG_LONGFORM);
      AddConstant('VLDTR_E_MD_MULTIPLESEMANTICS',VLDTR_E_MD_MULTIPLESEMANTICS);
      AddConstant('VLDTR_E_MD_INVALIDSEMANTICS',VLDTR_E_MD_INVALIDSEMANTICS);
      AddConstant('VLDTR_E_MD_SEMANTICSNOTEXIST',VLDTR_E_MD_SEMANTICSNOTEXIST);
      AddConstant('VLDTR_E_MI_DECLNOTVIRT',VLDTR_E_MI_DECLNOTVIRT);
      AddConstant('VLDTR_E_FMD_GLOBALITEM',VLDTR_E_FMD_GLOBALITEM);
      AddConstant('VLDTR_E_MD_MULTSEMANTICFLAGS',VLDTR_E_MD_MULTSEMANTICFLAGS);
      AddConstant('VLDTR_E_MD_NOSEMANTICFLAGS',VLDTR_E_MD_NOSEMANTICFLAGS);
      AddConstant('VLDTR_E_FD_FLDINIFACE',VLDTR_E_FD_FLDINIFACE);
      AddConstant('VLDTR_E_AS_HASHALGID',VLDTR_E_AS_HASHALGID);
      AddConstant('VLDTR_E_AS_PROCID',VLDTR_E_AS_PROCID);
      AddConstant('VLDTR_E_AR_PROCID',VLDTR_E_AR_PROCID);
      AddConstant('VLDTR_E_CN_PARENTRANGE',VLDTR_E_CN_PARENTRANGE);
      AddConstant('VLDTR_E_AS_BADFLAGS',VLDTR_E_AS_BADFLAGS);
      AddConstant('VLDTR_E_TR_HASTYPEDEF',VLDTR_E_TR_HASTYPEDEF);
      AddConstant('VLDTR_E_IFACE_BADIMPL',VLDTR_E_IFACE_BADIMPL);
      AddConstant('VLDTR_E_IFACE_BADIFACE',VLDTR_E_IFACE_BADIFACE);
      AddConstant('VLDTR_E_TD_SECURNOTMARKED',VLDTR_E_TD_SECURNOTMARKED);
      AddConstant('VLDTR_E_TD_MARKEDNOSECUR',VLDTR_E_TD_MARKEDNOSECUR);
      AddConstant('VLDTR_E_MD_CCTORHASARGS',VLDTR_E_MD_CCTORHASARGS);
      AddConstant('VLDTR_E_CT_BADIMPL',VLDTR_E_CT_BADIMPL);
      AddConstant('VLDTR_E_MI_ALIENBODY',VLDTR_E_MI_ALIENBODY);
      AddConstant('VLDTR_E_MD_CCTORCALLCONV',VLDTR_E_MD_CCTORCALLCONV);
      AddConstant('VLDTR_E_MI_BADCLASS',VLDTR_E_MI_BADCLASS);
      AddConstant('VLDTR_E_MI_CLASSISINTF',VLDTR_E_MI_CLASSISINTF);
      AddConstant('VLDTR_E_MI_BADDECL',VLDTR_E_MI_BADDECL);
      AddConstant('VLDTR_E_MI_BADBODY',VLDTR_E_MI_BADBODY);
      AddConstant('VLDTR_E_MI_DUP',VLDTR_E_MI_DUP);
      AddConstant('VLDTR_E_FD_BADPARENT',VLDTR_E_FD_BADPARENT);
      AddConstant('VLDTR_E_MD_PARAMOUTOFSEQ',VLDTR_E_MD_PARAMOUTOFSEQ);
      AddConstant('VLDTR_E_MD_PARASEQTOOBIG',VLDTR_E_MD_PARASEQTOOBIG);
      AddConstant('VLDTR_E_MD_PARMMARKEDNOMARSHAL',VLDTR_E_MD_PARMMARKEDNOMARSHAL);
      AddConstant('VLDTR_E_MD_PARMMARSHALNOTMARKED',VLDTR_E_MD_PARMMARSHALNOTMARKED);
      AddConstant('VLDTR_E_MD_PARMMARKEDNODEFLT',VLDTR_E_MD_PARMMARKEDNODEFLT);
      AddConstant('VLDTR_E_MD_PARMDEFLTNOTMARKED',VLDTR_E_MD_PARMDEFLTNOTMARKED);
      AddConstant('VLDTR_E_PR_BADSCOPE',VLDTR_E_PR_BADSCOPE);
      AddConstant('VLDTR_E_PR_NONAME',VLDTR_E_PR_NONAME);
      AddConstant('VLDTR_E_PR_NOSIG',VLDTR_E_PR_NOSIG);
      AddConstant('VLDTR_E_PR_DUP',VLDTR_E_PR_DUP);
      AddConstant('VLDTR_E_PR_BADCALLINGCONV',VLDTR_E_PR_BADCALLINGCONV);
      AddConstant('VLDTR_E_PR_MARKEDNODEFLT',VLDTR_E_PR_MARKEDNODEFLT);
      AddConstant('VLDTR_E_PR_DEFLTNOTMARKED',VLDTR_E_PR_DEFLTNOTMARKED);
      AddConstant('VLDTR_E_PR_BADSEMANTICS',VLDTR_E_PR_BADSEMANTICS);
      AddConstant('VLDTR_E_PR_BADMETHOD',VLDTR_E_PR_BADMETHOD);
      AddConstant('VLDTR_E_PR_ALIENMETHOD',VLDTR_E_PR_ALIENMETHOD);
      AddConstant('VLDTR_E_CN_BLOBNOTNULL',VLDTR_E_CN_BLOBNOTNULL);
      AddConstant('VLDTR_E_CN_BLOBNULL',VLDTR_E_CN_BLOBNULL);
      AddConstant('VLDTR_E_EV_BADSCOPE',VLDTR_E_EV_BADSCOPE);
      AddConstant('VLDTR_E_EV_NONAME',VLDTR_E_EV_NONAME);
      AddConstant('VLDTR_E_EV_DUP',VLDTR_E_EV_DUP);
      AddConstant('VLDTR_E_EV_BADEVTYPE',VLDTR_E_EV_BADEVTYPE);
      AddConstant('VLDTR_E_EV_EVTYPENOTCLASS',VLDTR_E_EV_EVTYPENOTCLASS);
      AddConstant('VLDTR_E_EV_BADSEMANTICS',VLDTR_E_EV_BADSEMANTICS);
      AddConstant('VLDTR_E_EV_BADMETHOD',VLDTR_E_EV_BADMETHOD);
      AddConstant('VLDTR_E_EV_ALIENMETHOD',VLDTR_E_EV_ALIENMETHOD);
      AddConstant('VLDTR_E_EV_NOADDON',VLDTR_E_EV_NOADDON);
      AddConstant('VLDTR_E_EV_NOREMOVEON',VLDTR_E_EV_NOREMOVEON);
      AddConstant('VLDTR_E_CT_DUPTDNAME',VLDTR_E_CT_DUPTDNAME);
      AddConstant('VLDTR_E_MAR_BADOFFSET',VLDTR_E_MAR_BADOFFSET);
      AddConstant('VLDTR_E_DS_BADOWNER',VLDTR_E_DS_BADOWNER);
      AddConstant('VLDTR_E_DS_BADFLAGS',VLDTR_E_DS_BADFLAGS);
      AddConstant('VLDTR_E_DS_NOBLOB',VLDTR_E_DS_NOBLOB);
      AddConstant('VLDTR_E_MAR_BADIMPL',VLDTR_E_MAR_BADIMPL);
      AddConstant('VLDTR_E_MR_VARARGCALLINGCONV',VLDTR_E_MR_VARARGCALLINGCONV);
      AddConstant('VLDTR_E_MD_CTORNOTVOID',VLDTR_E_MD_CTORNOTVOID);
      AddConstant('VLDTR_E_EV_FIRENOTVOID',VLDTR_E_EV_FIRENOTVOID);
      AddConstant('VLDTR_E_AS_BADLOCALE',VLDTR_E_AS_BADLOCALE);
      AddConstant('VLDTR_E_CN_PARENTTYPE',VLDTR_E_CN_PARENTTYPE);
      AddConstant('VLDTR_E_SIG_SENTINMETHODDEF',VLDTR_E_SIG_SENTINMETHODDEF);
      AddConstant('VLDTR_E_SIG_SENTMUSTVARARG',VLDTR_E_SIG_SENTMUSTVARARG);
      AddConstant('VLDTR_E_SIG_MULTSENTINELS',VLDTR_E_SIG_MULTSENTINELS);
      AddConstant('VLDTR_E_SIG_LASTSENTINEL',VLDTR_E_SIG_LASTSENTINEL);
      AddConstant('VLDTR_E_SIG_MISSARG',VLDTR_E_SIG_MISSARG);
      AddConstant('VLDTR_E_SIG_BYREFINFIELD',VLDTR_E_SIG_BYREFINFIELD);
      AddConstant('VLDTR_E_MD_SYNCMETHODINVTYPE',VLDTR_E_MD_SYNCMETHODINVTYPE);
      AddConstant('VLDTR_E_TD_NAMETOOLONG',VLDTR_E_TD_NAMETOOLONG);
      AddConstant('VLDTR_E_AS_PROCDUP',VLDTR_E_AS_PROCDUP);
      AddConstant('VLDTR_E_ASOS_DUP',VLDTR_E_ASOS_DUP);
      AddConstant('VLDTR_E_MAR_BADFLAGS',VLDTR_E_MAR_BADFLAGS);
      AddConstant('VLDTR_E_CT_NOTYPEDEFID',VLDTR_E_CT_NOTYPEDEFID);
      AddConstant('VLDTR_E_FILE_BADFLAGS',VLDTR_E_FILE_BADFLAGS);
      AddConstant('VLDTR_E_FILE_NULLHASH',VLDTR_E_FILE_NULLHASH);
      AddConstant('VLDTR_E_MOD_NONAME',VLDTR_E_MOD_NONAME);
      AddConstant('VLDTR_E_MOD_NAMEFULLQLFD',VLDTR_E_MOD_NAMEFULLQLFD);
      AddConstant('VLDTR_E_TD_RTSPCLNOTSPCL',VLDTR_E_TD_RTSPCLNOTSPCL);
      AddConstant('VLDTR_E_TD_EXTENDSIFACE',VLDTR_E_TD_EXTENDSIFACE);
      AddConstant('VLDTR_E_MD_CTORPINVOKE',VLDTR_E_MD_CTORPINVOKE);
      AddConstant('VLDTR_E_TD_SYSENUMNOTCLASS',VLDTR_E_TD_SYSENUMNOTCLASS);
      AddConstant('VLDTR_E_TD_SYSENUMNOTEXTVTYPE',VLDTR_E_TD_SYSENUMNOTEXTVTYPE);
      AddConstant('VLDTR_E_MI_SIGMISMATCH',VLDTR_E_MI_SIGMISMATCH);
      AddConstant('VLDTR_E_TD_ENUMHASMETHODS',VLDTR_E_TD_ENUMHASMETHODS);
      AddConstant('VLDTR_E_TD_ENUMIMPLIFACE',VLDTR_E_TD_ENUMIMPLIFACE);
      AddConstant('VLDTR_E_TD_ENUMHASPROP',VLDTR_E_TD_ENUMHASPROP);
      AddConstant('VLDTR_E_TD_ENUMHASEVENT',VLDTR_E_TD_ENUMHASEVENT);
      AddConstant('VLDTR_E_TD_BADMETHODLST',VLDTR_E_TD_BADMETHODLST);
      AddConstant('VLDTR_E_TD_BADFIELDLST',VLDTR_E_TD_BADFIELDLST);
      AddConstant('VLDTR_E_CN_BADTYPE',VLDTR_E_CN_BADTYPE);
      AddConstant('VLDTR_E_TD_ENUMNOINSTFLD',VLDTR_E_TD_ENUMNOINSTFLD);
      AddConstant('VLDTR_E_TD_ENUMMULINSTFLD',VLDTR_E_TD_ENUMMULINSTFLD);
      AddConstant('VLDTR_E_INTERRUPTED',VLDTR_E_INTERRUPTED);
      AddConstant('VLDTR_E_NOTINIT',VLDTR_E_NOTINIT);
      AddConstant('VLDTR_E_IFACE_NOTIFACE',VLDTR_E_IFACE_NOTIFACE);
      AddConstant('VLDTR_E_FD_RVAHASNORVA',VLDTR_E_FD_RVAHASNORVA);
      AddConstant('VLDTR_E_FD_RVAHASZERORVA',VLDTR_E_FD_RVAHASZERORVA);
      AddConstant('VLDTR_E_MD_RVAANDIMPLMAP',VLDTR_E_MD_RVAANDIMPLMAP);
      AddConstant('VLDTR_E_TD_EXTRAFLAGS',VLDTR_E_TD_EXTRAFLAGS);
      AddConstant('VLDTR_E_TD_EXTENDSITSELF',VLDTR_E_TD_EXTENDSITSELF);
      AddConstant('VLDTR_E_TD_SYSVTNOTEXTOBJ',VLDTR_E_TD_SYSVTNOTEXTOBJ);
      AddConstant('VLDTR_E_TD_EXTTYPESPEC',VLDTR_E_TD_EXTTYPESPEC);
      AddConstant('VLDTR_E_TD_VTNOSIZE',VLDTR_E_TD_VTNOSIZE);
      AddConstant('VLDTR_E_TD_IFACESEALED',VLDTR_E_TD_IFACESEALED);
      AddConstant('VLDTR_E_NC_BADNESTED',VLDTR_E_NC_BADNESTED);
      AddConstant('VLDTR_E_NC_BADENCLOSER',VLDTR_E_NC_BADENCLOSER);
      AddConstant('VLDTR_E_NC_DUP',VLDTR_E_NC_DUP);
      AddConstant('VLDTR_E_NC_DUPENCLOSER',VLDTR_E_NC_DUPENCLOSER);
      AddConstant('VLDTR_E_FRVA_ZERORVA',VLDTR_E_FRVA_ZERORVA);
      AddConstant('VLDTR_E_FRVA_BADFIELD',VLDTR_E_FRVA_BADFIELD);
      AddConstant('VLDTR_E_FRVA_DUPRVA',VLDTR_E_FRVA_DUPRVA);
      AddConstant('VLDTR_E_FRVA_DUPFIELD',VLDTR_E_FRVA_DUPFIELD);
      AddConstant('VLDTR_E_EP_BADTOKEN',VLDTR_E_EP_BADTOKEN);
      AddConstant('VLDTR_E_EP_INSTANCE',VLDTR_E_EP_INSTANCE);
      AddConstant('VLDTR_E_TD_ENUMFLDBADTYPE',VLDTR_E_TD_ENUMFLDBADTYPE);
      AddConstant('VLDTR_E_MD_BADRVA',VLDTR_E_MD_BADRVA);
      AddConstant('VLDTR_E_FD_LITERALNODEFAULT',VLDTR_E_FD_LITERALNODEFAULT);
      AddConstant('VLDTR_E_IFACE_METHNOTIMPL',VLDTR_E_IFACE_METHNOTIMPL);
      AddConstant('VLDTR_E_CA_BADPARENT',VLDTR_E_CA_BADPARENT);
      AddConstant('VLDTR_E_CA_BADTYPE',VLDTR_E_CA_BADTYPE);
      AddConstant('VLDTR_E_CA_NOTCTOR',VLDTR_E_CA_NOTCTOR);
      AddConstant('VLDTR_E_CA_BADSIG',VLDTR_E_CA_BADSIG);
      AddConstant('VLDTR_E_CA_NOSIG',VLDTR_E_CA_NOSIG);
      AddConstant('VLDTR_E_CA_BADPROLOG',VLDTR_E_CA_BADPROLOG);
      AddConstant('VLDTR_E_MD_BADLOCALSIGTOK',VLDTR_E_MD_BADLOCALSIGTOK);
      AddConstant('VLDTR_E_MD_BADHEADER',VLDTR_E_MD_BADHEADER);
      AddConstant('VLDTR_E_EP_TOOMANYARGS',VLDTR_E_EP_TOOMANYARGS);
      AddConstant('VLDTR_E_EP_BADRET',VLDTR_E_EP_BADRET);
      AddConstant('VLDTR_E_EP_BADARG',VLDTR_E_EP_BADARG);
      AddConstant('VLDTR_E_SIG_BADVOID',VLDTR_E_SIG_BADVOID);
      AddConstant('VLDTR_E_IFACE_METHMULTIMPL',VLDTR_E_IFACE_METHMULTIMPL);
      AddConstant('VLDTR_E_GP_NAMENULL',VLDTR_E_GP_NAMENULL);
      AddConstant('VLDTR_E_GP_OWNERNIL',VLDTR_E_GP_OWNERNIL);
      AddConstant('VLDTR_E_GP_DUPNAME',VLDTR_E_GP_DUPNAME);
      AddConstant('VLDTR_E_GP_DUPNUMBER',VLDTR_E_GP_DUPNUMBER);
      AddConstant('VLDTR_E_GP_NONSEQ_BY_OWNER',VLDTR_E_GP_NONSEQ_BY_OWNER);
      AddConstant('VLDTR_E_GP_NONSEQ_BY_NUMBER',VLDTR_E_GP_NONSEQ_BY_NUMBER);
      AddConstant('VLDTR_E_GP_UNEXPECTED_OWNER_FOR_VARIANT_VAR',VLDTR_E_GP_UNEXPECTED_OWNER_FOR_VARIANT_VAR);
      AddConstant('VLDTR_E_GP_ILLEGAL_VARIANT_MVAR',VLDTR_E_GP_ILLEGAL_VARIANT_MVAR);
      AddConstant('VLDTR_E_GP_ILLEGAL_VARIANCE_FLAGS',VLDTR_E_GP_ILLEGAL_VARIANCE_FLAGS);
      AddConstant('VLDTR_E_GP_REFANDVALUETYPE',VLDTR_E_GP_REFANDVALUETYPE);
      AddConstant('VLDTR_E_GPC_OWNERNIL',VLDTR_E_GPC_OWNERNIL);
      AddConstant('VLDTR_E_GPC_DUP',VLDTR_E_GPC_DUP);
      AddConstant('VLDTR_E_GPC_NONCONTIGUOUS',VLDTR_E_GPC_NONCONTIGUOUS);
      AddConstant('VLDTR_E_MS_METHODNIL',VLDTR_E_MS_METHODNIL);
      AddConstant('VLDTR_E_MS_DUP',VLDTR_E_MS_DUP);
      AddConstant('VLDTR_E_MS_BADCALLINGCONV',VLDTR_E_MS_BADCALLINGCONV);
      AddConstant('VLDTR_E_MS_MISSARITY',VLDTR_E_MS_MISSARITY);
      AddConstant('VLDTR_E_MS_MISSARG',VLDTR_E_MS_MISSARG);
      AddConstant('VLDTR_E_MS_ARITYMISMATCH',VLDTR_E_MS_ARITYMISMATCH);
      AddConstant('VLDTR_E_MS_METHODNOTGENERIC',VLDTR_E_MS_METHODNOTGENERIC);
      AddConstant('VLDTR_E_SIG_MISSARITY',VLDTR_E_SIG_MISSARITY);
      AddConstant('VLDTR_E_SIG_ARITYMISMATCH',VLDTR_E_SIG_ARITYMISMATCH);
      AddConstant('VLDTR_E_MD_GENERIC_CCTOR',VLDTR_E_MD_GENERIC_CCTOR);
      AddConstant('VLDTR_E_MD_GENERIC_CTOR',VLDTR_E_MD_GENERIC_CTOR);
      AddConstant('VLDTR_E_MD_GENERIC_IMPORT',VLDTR_E_MD_GENERIC_IMPORT);
      AddConstant('VLDTR_E_MD_GENERIC_BADCALLCONV',VLDTR_E_MD_GENERIC_BADCALLCONV);
      AddConstant('VLDTR_E_EP_GENERIC_METHOD',VLDTR_E_EP_GENERIC_METHOD);
      AddConstant('VLDTR_E_MD_MISSARITY',VLDTR_E_MD_MISSARITY);
      AddConstant('VLDTR_E_MD_ARITYZERO',VLDTR_E_MD_ARITYZERO);
      AddConstant('VLDTR_E_SIG_ARITYZERO',VLDTR_E_SIG_ARITYZERO);
      AddConstant('VLDTR_E_MS_ARITYZERO',VLDTR_E_MS_ARITYZERO);
      AddConstant('VLDTR_E_MD_GPMISMATCH',VLDTR_E_MD_GPMISMATCH);
      AddConstant('VLDTR_E_EP_GENERIC_TYPE',VLDTR_E_EP_GENERIC_TYPE);
      AddConstant('VLDTR_E_MI_DECLNOTGENERIC',VLDTR_E_MI_DECLNOTGENERIC);
      AddConstant('VLDTR_E_MI_IMPLNOTGENERIC',VLDTR_E_MI_IMPLNOTGENERIC);
      AddConstant('VLDTR_E_MI_ARITYMISMATCH',VLDTR_E_MI_ARITYMISMATCH);
      AddConstant('VLDTR_E_TD_EXTBADTYPESPEC',VLDTR_E_TD_EXTBADTYPESPEC);
      AddConstant('VLDTR_E_SIG_BYREFINST',VLDTR_E_SIG_BYREFINST);
      AddConstant('VLDTR_E_MS_BYREFINST',VLDTR_E_MS_BYREFINST);
      AddConstant('VLDTR_E_TS_EMPTY',VLDTR_E_TS_EMPTY);
      AddConstant('VLDTR_E_TS_HASSENTINALS',VLDTR_E_TS_HASSENTINALS);
      AddConstant('VLDTR_E_TD_GENERICHASEXPLAYOUT',VLDTR_E_TD_GENERICHASEXPLAYOUT);
      AddConstant('VLDTR_E_SIG_BADTOKTYPE',VLDTR_E_SIG_BADTOKTYPE);
      AddConstant('VLDTR_E_IFACE_METHNOTIMPLTHISMOD',VLDTR_E_IFACE_METHNOTIMPLTHISMOD);
      AddConstant('CORDBG_E_UNRECOVERABLE_ERROR',CORDBG_E_UNRECOVERABLE_ERROR);
      AddConstant('CORDBG_E_PROCESS_TERMINATED',CORDBG_E_PROCESS_TERMINATED);
      AddConstant('CORDBG_E_PROCESS_NOT_SYNCHRONIZED',CORDBG_E_PROCESS_NOT_SYNCHRONIZED);
      AddConstant('CORDBG_E_CLASS_NOT_LOADED',CORDBG_E_CLASS_NOT_LOADED);
      AddConstant('CORDBG_E_IL_VAR_NOT_AVAILABLE',CORDBG_E_IL_VAR_NOT_AVAILABLE);
      AddConstant('CORDBG_E_BAD_REFERENCE_VALUE',CORDBG_E_BAD_REFERENCE_VALUE);
      AddConstant('CORDBG_E_FIELD_NOT_AVAILABLE',CORDBG_E_FIELD_NOT_AVAILABLE);
      AddConstant('CORDBG_E_NON_NATIVE_FRAME',CORDBG_E_NON_NATIVE_FRAME);
      AddConstant('CORDBG_E_NONCONTINUABLE_EXCEPTION',CORDBG_E_NONCONTINUABLE_EXCEPTION);
      AddConstant('CORDBG_E_CODE_NOT_AVAILABLE',CORDBG_E_CODE_NOT_AVAILABLE);
      AddConstant('CORDBG_E_FUNCTION_NOT_IL',CORDBG_E_FUNCTION_NOT_IL);
      AddConstant('CORDBG_S_BAD_START_SEQUENCE_POINT',CORDBG_S_BAD_START_SEQUENCE_POINT);
      AddConstant('CORDBG_S_BAD_END_SEQUENCE_POINT',CORDBG_S_BAD_END_SEQUENCE_POINT);
      AddConstant('CORDBG_S_INSUFFICIENT_INFO_FOR_SET_IP',CORDBG_S_INSUFFICIENT_INFO_FOR_SET_IP);
      AddConstant('CORDBG_E_CANT_SET_IP_INTO_FINALLY',CORDBG_E_CANT_SET_IP_INTO_FINALLY);
      AddConstant('CORDBG_E_CANT_SET_IP_OUT_OF_FINALLY',CORDBG_E_CANT_SET_IP_OUT_OF_FINALLY);
      AddConstant('CORDBG_E_CANT_SET_IP_INTO_CATCH',CORDBG_E_CANT_SET_IP_INTO_CATCH);
      AddConstant('CORDBG_E_SET_IP_NOT_ALLOWED_ON_NONLEAF_FRAME',CORDBG_E_SET_IP_NOT_ALLOWED_ON_NONLEAF_FRAME);
      AddConstant('CORDBG_E_SET_IP_IMPOSSIBLE',CORDBG_E_SET_IP_IMPOSSIBLE);
      AddConstant('CORDBG_E_FUNC_EVAL_BAD_START_POINT',CORDBG_E_FUNC_EVAL_BAD_START_POINT);
      AddConstant('CORDBG_E_INVALID_OBJECT',CORDBG_E_INVALID_OBJECT);
      AddConstant('CORDBG_E_FUNC_EVAL_NOT_COMPLETE',CORDBG_E_FUNC_EVAL_NOT_COMPLETE);
      AddConstant('CORDBG_S_FUNC_EVAL_HAS_NO_RESULT',CORDBG_S_FUNC_EVAL_HAS_NO_RESULT);
      AddConstant('CORDBG_S_VALUE_POINTS_TO_VOID',CORDBG_S_VALUE_POINTS_TO_VOID);
      AddConstant('CORDBG_E_INPROC_NOT_IMPL',CORDBG_E_INPROC_NOT_IMPL);
      AddConstant('CORDBG_S_FUNC_EVAL_ABORTED',CORDBG_S_FUNC_EVAL_ABORTED);
      AddConstant('CORDBG_E_STATIC_VAR_NOT_AVAILABLE',CORDBG_E_STATIC_VAR_NOT_AVAILABLE);
      AddConstant('CORDBG_E_OBJECT_IS_NOT_COPYABLE_VALUE_CLASS',CORDBG_E_OBJECT_IS_NOT_COPYABLE_VALUE_CLASS);
      AddConstant('CORDBG_E_CANT_SETIP_INTO_OR_OUT_OF_FILTER',CORDBG_E_CANT_SETIP_INTO_OR_OUT_OF_FILTER);
      AddConstant('CORDBG_E_CANT_CHANGE_JIT_SETTING_FOR_ZAP_MODULE',CORDBG_E_CANT_CHANGE_JIT_SETTING_FOR_ZAP_MODULE);
      AddConstant('CORDBG_E_CANT_SET_IP_OUT_OF_FINALLY_ON_WIN64',CORDBG_E_CANT_SET_IP_OUT_OF_FINALLY_ON_WIN64);
      AddConstant('CORDBG_E_CANT_SET_IP_OUT_OF_CATCH_ON_WIN64',CORDBG_E_CANT_SET_IP_OUT_OF_CATCH_ON_WIN64);
      AddConstant('CORDBG_E_REMOTE_CONNECTION_CONN_RESET',CORDBG_E_REMOTE_CONNECTION_CONN_RESET);
      AddConstant('CORDBG_E_REMOTE_CONNECTION_KEEP_ALIVE',CORDBG_E_REMOTE_CONNECTION_KEEP_ALIVE);
      AddConstant('CORDBG_E_REMOTE_CONNECTION_FATAL_ERROR',CORDBG_E_REMOTE_CONNECTION_FATAL_ERROR);
      AddConstant('CORDBG_E_CANT_SET_TO_JMC',CORDBG_E_CANT_SET_TO_JMC);
      AddConstant('CORDBG_E_BAD_THREAD_STATE',CORDBG_E_BAD_THREAD_STATE);
      AddConstant('CORDBG_E_DEBUGGER_ALREADY_ATTACHED',CORDBG_E_DEBUGGER_ALREADY_ATTACHED);
      AddConstant('CORDBG_E_SUPERFLOUS_CONTINUE',CORDBG_E_SUPERFLOUS_CONTINUE);
      AddConstant('CORDBG_E_SET_VALUE_NOT_ALLOWED_ON_NONLEAF_FRAME',CORDBG_E_SET_VALUE_NOT_ALLOWED_ON_NONLEAF_FRAME);
      AddConstant('CORDBG_E_ENC_EH_MAX_NESTING_LEVEL_CANT_INCREASE',CORDBG_E_ENC_EH_MAX_NESTING_LEVEL_CANT_INCREASE);
    end;
  end;

  procedure AddConsts3;
  begin
    With Scripter.DefineClass(ClassType) do
    begin
      AddConstant('CORDBG_E_ENC_MODULE_NOT_ENC_ENABLED',CORDBG_E_ENC_MODULE_NOT_ENC_ENABLED);
      AddConstant('CORDBG_E_SET_IP_NOT_ALLOWED_ON_EXCEPTION',CORDBG_E_SET_IP_NOT_ALLOWED_ON_EXCEPTION);
      AddConstant('CORDBG_E_VARIABLE_IS_ACTUALLY_LITERAL',CORDBG_E_VARIABLE_IS_ACTUALLY_LITERAL);
      AddConstant('CORDBG_E_PROCESS_DETACHED',CORDBG_E_PROCESS_DETACHED);
      AddConstant('CORDBG_E_ENC_METHOD_SIG_CHANGED',CORDBG_E_ENC_METHOD_SIG_CHANGED);
      AddConstant('CORDBG_E_ENC_METHOD_NO_LOCAL_SIG',CORDBG_E_ENC_METHOD_NO_LOCAL_SIG);
      AddConstant('CORDBG_E_ENC_CANT_ADD_FIELD_TO_VALUE_OR_LAYOUT_CLASS',CORDBG_E_ENC_CANT_ADD_FIELD_TO_VALUE_OR_LAYOUT_CLASS);
      AddConstant('CORDBG_E_ENC_CANT_CHANGE_FIELD',CORDBG_E_ENC_CANT_CHANGE_FIELD);
      AddConstant('CORDBG_E_ENC_CANT_ADD_NON_PRIVATE_MEMBER',CORDBG_E_ENC_CANT_ADD_NON_PRIVATE_MEMBER);
      AddConstant('CORDBG_E_FIELD_NOT_STATIC',CORDBG_E_FIELD_NOT_STATIC);
      AddConstant('CORDBG_E_FIELD_NOT_INSTANCE',CORDBG_E_FIELD_NOT_INSTANCE);
      AddConstant('CORDBG_E_ENC_ZAPPED_WITHOUT_ENC',CORDBG_E_ENC_ZAPPED_WITHOUT_ENC);
      AddConstant('CORDBG_E_ENC_BAD_METHOD_INFO',CORDBG_E_ENC_BAD_METHOD_INFO);
      AddConstant('CORDBG_E_ENC_JIT_CANT_UPDATE',CORDBG_E_ENC_JIT_CANT_UPDATE);
      AddConstant('CORDBG_E_ENC_MISSING_CLASS',CORDBG_E_ENC_MISSING_CLASS);
      AddConstant('CORDBG_E_ENC_INTERNAL_ERROR',CORDBG_E_ENC_INTERNAL_ERROR);
      AddConstant('CORDBG_E_ENC_HANGING_FIELD',CORDBG_E_ENC_HANGING_FIELD);
      AddConstant('CORDBG_E_MODULE_NOT_LOADED',CORDBG_E_MODULE_NOT_LOADED);
      AddConstant('CORDBG_E_ENC_CANT_CHANGE_SUPERCLASS',CORDBG_E_ENC_CANT_CHANGE_SUPERCLASS);
      AddConstant('CORDBG_E_UNABLE_TO_SET_BREAKPOINT',CORDBG_E_UNABLE_TO_SET_BREAKPOINT);
      AddConstant('CORDBG_E_DEBUGGING_NOT_POSSIBLE',CORDBG_E_DEBUGGING_NOT_POSSIBLE);
      AddConstant('CORDBG_E_KERNEL_DEBUGGER_ENABLED',CORDBG_E_KERNEL_DEBUGGER_ENABLED);
      AddConstant('CORDBG_E_KERNEL_DEBUGGER_PRESENT',CORDBG_E_KERNEL_DEBUGGER_PRESENT);
      AddConstant('CORDBG_E_HELPER_THREAD_DEAD',CORDBG_E_HELPER_THREAD_DEAD);
      AddConstant('CORDBG_E_INTERFACE_INHERITANCE_CANT_CHANGE',CORDBG_E_INTERFACE_INHERITANCE_CANT_CHANGE);
      AddConstant('CORDBG_E_INCOMPATIBLE_PROTOCOL',CORDBG_E_INCOMPATIBLE_PROTOCOL);
      AddConstant('CORDBG_E_TOO_MANY_PROCESSES',CORDBG_E_TOO_MANY_PROCESSES);
      AddConstant('CORDBG_E_INTEROP_NOT_SUPPORTED',CORDBG_E_INTEROP_NOT_SUPPORTED);
      AddConstant('CORDBG_E_NO_REMAP_BREAKPIONT',CORDBG_E_NO_REMAP_BREAKPIONT);
      AddConstant('CORDBG_E_OBJECT_NEUTERED',CORDBG_E_OBJECT_NEUTERED);
      AddConstant('CORPROF_E_FUNCTION_NOT_COMPILED',CORPROF_E_FUNCTION_NOT_COMPILED);
      AddConstant('CORPROF_E_DATAINCOMPLETE',CORPROF_E_DATAINCOMPLETE);
      AddConstant('CORPROF_E_NOT_REJITABLE_METHODS',CORPROF_E_NOT_REJITABLE_METHODS);
      AddConstant('CORPROF_E_CANNOT_UPDATE_METHOD',CORPROF_E_CANNOT_UPDATE_METHOD);
      AddConstant('CORPROF_E_FUNCTION_NOT_IL',CORPROF_E_FUNCTION_NOT_IL);
      AddConstant('CORPROF_E_NOT_MANAGED_THREAD',CORPROF_E_NOT_MANAGED_THREAD);
      AddConstant('CORPROF_E_CALL_ONLY_FROM_INIT',CORPROF_E_CALL_ONLY_FROM_INIT);
      AddConstant('CORPROF_E_INPROC_NOT_ENABLED',CORPROF_E_INPROC_NOT_ENABLED);
      AddConstant('CORPROF_E_JITMAPS_NOT_ENABLED',CORPROF_E_JITMAPS_NOT_ENABLED);
      AddConstant('CORPROF_E_INPROC_ALREADY_BEGUN',CORPROF_E_INPROC_ALREADY_BEGUN);
      AddConstant('CORPROF_E_INPROC_NOT_AVAILABLE',CORPROF_E_INPROC_NOT_AVAILABLE);
      AddConstant('CORPROF_E_NOT_YET_AVAILABLE',CORPROF_E_NOT_YET_AVAILABLE);
      AddConstant('CORPROF_E_TYPE_IS_PARAMETERIZED',CORPROF_E_TYPE_IS_PARAMETERIZED);
      AddConstant('CORPROF_E_FUNCTION_IS_PARAMETERIZED',CORPROF_E_FUNCTION_IS_PARAMETERIZED);
      AddConstant('CORPROF_E_STACKSNAPSHOT_INVALID_TGT_THREAD',CORPROF_E_STACKSNAPSHOT_INVALID_TGT_THREAD);
      AddConstant('CORPROF_E_STACKSNAPSHOT_UNMANAGED_CTX',CORPROF_E_STACKSNAPSHOT_UNMANAGED_CTX);
      AddConstant('CORPROF_E_STACKSNAPSHOT_UNSAFE',CORPROF_E_STACKSNAPSHOT_UNSAFE);
      AddConstant('CORPROF_E_STACKSNAPSHOT_ABORTED',CORPROF_E_STACKSNAPSHOT_ABORTED);
      AddConstant('CORPROF_E_LITERALS_HAVE_NO_ADDRESS',CORPROF_E_LITERALS_HAVE_NO_ADDRESS);
      AddConstant('CORPROF_E_UNSUPPORTED_CALL_SEQUENCE',CORPROF_E_UNSUPPORTED_CALL_SEQUENCE);
      AddConstant('CORPROF_E_ASYNCHRONOUS_UNSAFE',CORPROF_E_ASYNCHRONOUS_UNSAFE);
      AddConstant('CORPROF_E_CLASSID_IS_ARRAY',CORPROF_E_CLASSID_IS_ARRAY);
      AddConstant('CORPROF_E_CLASSID_IS_COMPOSITE',CORPROF_E_CLASSID_IS_COMPOSITE);
      AddConstant('SECURITY_E_XML_TO_ASN_ENCODING',SECURITY_E_XML_TO_ASN_ENCODING);
      AddConstant('SECURITY_E_INCOMPATIBLE_SHARE',SECURITY_E_INCOMPATIBLE_SHARE);
      AddConstant('SECURITY_E_UNVERIFIABLE',SECURITY_E_UNVERIFIABLE);
      AddConstant('SECURITY_E_INCOMPATIBLE_EVIDENCE',SECURITY_E_INCOMPATIBLE_EVIDENCE);
      AddConstant('CLDB_E_INTERNALERROR',CLDB_E_INTERNALERROR);
      AddConstant('CORSEC_E_DECODE_SET',CORSEC_E_DECODE_SET);
      AddConstant('CORSEC_E_ENCODE_SET',CORSEC_E_ENCODE_SET);
      AddConstant('CORSEC_E_UNSUPPORTED_FORMAT',CORSEC_E_UNSUPPORTED_FORMAT);
      AddConstant('SN_CRYPTOAPI_CALL_FAILED',SN_CRYPTOAPI_CALL_FAILED);
      AddConstant('CORSEC_E_CRYPTOAPI_CALL_FAILED',CORSEC_E_CRYPTOAPI_CALL_FAILED);
      AddConstant('SN_NO_SUITABLE_CSP',SN_NO_SUITABLE_CSP);
      AddConstant('CORSEC_E_NO_SUITABLE_CSP',CORSEC_E_NO_SUITABLE_CSP);
      AddConstant('CORSEC_E_INVALID_ATTR',CORSEC_E_INVALID_ATTR);
      AddConstant('CORSEC_E_POLICY_EXCEPTION',CORSEC_E_POLICY_EXCEPTION);
      AddConstant('CORSEC_E_MIN_GRANT_FAIL',CORSEC_E_MIN_GRANT_FAIL);
      AddConstant('CORSEC_E_NO_EXEC_PERM',CORSEC_E_NO_EXEC_PERM);
      AddConstant('CORSEC_E_XMLSYNTAX',CORSEC_E_XMLSYNTAX);
      AddConstant('CORSEC_E_INVALID_STRONGNAME',CORSEC_E_INVALID_STRONGNAME);
      AddConstant('CORSEC_E_MISSING_STRONGNAME',CORSEC_E_MISSING_STRONGNAME);
      AddConstant('CORSEC_E_CONTAINER_NOT_FOUND',CORSEC_E_CONTAINER_NOT_FOUND);
      AddConstant('CORSEC_E_INVALID_IMAGE_FORMAT',CORSEC_E_INVALID_IMAGE_FORMAT);
      AddConstant('CORSEC_E_INVALID_PUBLICKEY',CORSEC_E_INVALID_PUBLICKEY);
      AddConstant('CORSEC_E_SIGNATURE_MISMATCH',CORSEC_E_SIGNATURE_MISMATCH);
      AddConstant('CORSEC_E_CRYPTO',CORSEC_E_CRYPTO);
      AddConstant('CORSEC_E_CRYPTO_UNEX_OPER',CORSEC_E_CRYPTO_UNEX_OPER);
      AddConstant('CORSECATTR_E_BAD_ATTRIBUTE',CORSECATTR_E_BAD_ATTRIBUTE);
      AddConstant('CORSECATTR_E_MISSING_CONSTRUCTOR',CORSECATTR_E_MISSING_CONSTRUCTOR);
      AddConstant('CORSECATTR_E_FAILED_TO_CREATE_PERM',CORSECATTR_E_FAILED_TO_CREATE_PERM);
      AddConstant('CORSECATTR_E_BAD_ACTION_ASM',CORSECATTR_E_BAD_ACTION_ASM);
      AddConstant('CORSECATTR_E_BAD_ACTION_OTHER',CORSECATTR_E_BAD_ACTION_OTHER);
      AddConstant('CORSECATTR_E_BAD_PARENT',CORSECATTR_E_BAD_PARENT);
      AddConstant('CORSECATTR_E_TRUNCATED',CORSECATTR_E_TRUNCATED);
      AddConstant('CORSECATTR_E_BAD_VERSION',CORSECATTR_E_BAD_VERSION);
      AddConstant('CORSECATTR_E_BAD_ACTION',CORSECATTR_E_BAD_ACTION);
      AddConstant('CORSECATTR_E_NO_SELF_REF',CORSECATTR_E_NO_SELF_REF);
      AddConstant('CORSECATTR_E_BAD_NONCAS',CORSECATTR_E_BAD_NONCAS);
      AddConstant('CORSECATTR_E_ASSEMBLY_LOAD_FAILED',CORSECATTR_E_ASSEMBLY_LOAD_FAILED);
      AddConstant('CORSECATTR_E_ASSEMBLY_LOAD_FAILED_EX',CORSECATTR_E_ASSEMBLY_LOAD_FAILED_EX);
      AddConstant('CORSECATTR_E_TYPE_LOAD_FAILED',CORSECATTR_E_TYPE_LOAD_FAILED);
      AddConstant('CORSECATTR_E_TYPE_LOAD_FAILED_EX',CORSECATTR_E_TYPE_LOAD_FAILED_EX);
      AddConstant('CORSECATTR_E_ABSTRACT',CORSECATTR_E_ABSTRACT);
      AddConstant('CORSECATTR_E_UNSUPPORTED_TYPE',CORSECATTR_E_UNSUPPORTED_TYPE);
      AddConstant('CORSECATTR_E_UNSUPPORTED_ENUM_TYPE',CORSECATTR_E_UNSUPPORTED_ENUM_TYPE);
      AddConstant('CORSECATTR_E_NO_FIELD',CORSECATTR_E_NO_FIELD);
      AddConstant('CORSECATTR_E_NO_PROPERTY',CORSECATTR_E_NO_PROPERTY);
      AddConstant('CORSECATTR_E_EXCEPTION',CORSECATTR_E_EXCEPTION);
      AddConstant('CORSECATTR_E_EXCEPTION_HR',CORSECATTR_E_EXCEPTION_HR);
      AddConstant('ISS_E_ISOSTORE',ISS_E_ISOSTORE);
      AddConstant('ISS_E_OPEN_STORE_FILE',ISS_E_OPEN_STORE_FILE);
      AddConstant('ISS_E_OPEN_FILE_MAPPING',ISS_E_OPEN_FILE_MAPPING);
      AddConstant('ISS_E_MAP_VIEW_OF_FILE',ISS_E_MAP_VIEW_OF_FILE);
      AddConstant('ISS_E_GET_FILE_SIZE',ISS_E_GET_FILE_SIZE);
      AddConstant('ISS_E_CREATE_MUTEX',ISS_E_CREATE_MUTEX);
      AddConstant('ISS_E_LOCK_FAILED',ISS_E_LOCK_FAILED);
      AddConstant('ISS_E_FILE_WRITE',ISS_E_FILE_WRITE);
      AddConstant('ISS_E_SET_FILE_POINTER',ISS_E_SET_FILE_POINTER);
      AddConstant('ISS_E_CREATE_DIR',ISS_E_CREATE_DIR);
      AddConstant('ISS_E_STORE_NOT_OPEN',ISS_E_STORE_NOT_OPEN);
      AddConstant('ISS_E_CORRUPTED_STORE_FILE',ISS_E_CORRUPTED_STORE_FILE);
      AddConstant('ISS_E_STORE_VERSION',ISS_E_STORE_VERSION);
      AddConstant('ISS_E_FILE_NOT_MAPPED',ISS_E_FILE_NOT_MAPPED);
      AddConstant('ISS_E_BLOCK_SIZE_TOO_SMALL',ISS_E_BLOCK_SIZE_TOO_SMALL);
      AddConstant('ISS_E_ALLOC_TOO_LARGE',ISS_E_ALLOC_TOO_LARGE);
      AddConstant('ISS_E_USAGE_WILL_EXCEED_QUOTA',ISS_E_USAGE_WILL_EXCEED_QUOTA);
      AddConstant('ISS_E_TABLE_ROW_NOT_FOUND',ISS_E_TABLE_ROW_NOT_FOUND);
      AddConstant('ISS_E_DEPRECATE',ISS_E_DEPRECATE);
      AddConstant('ISS_E_CALLER',ISS_E_CALLER);
      AddConstant('ISS_E_PATH_LENGTH',ISS_E_PATH_LENGTH);
      AddConstant('ISS_E_MACHINE',ISS_E_MACHINE);
      AddConstant('ISS_E_MACHINE_DACL',ISS_E_MACHINE_DACL);
      AddConstant('ISS_E_ISOSTORE_START',ISS_E_ISOSTORE_START);
      AddConstant('ISS_E_ISOSTORE_END',ISS_E_ISOSTORE_END);
      AddConstant('COR_E_APPLICATION',COR_E_APPLICATION);
      AddConstant('COR_E_ARGUMENT',COR_E_ARGUMENT);
      AddConstant('COR_E_ARGUMENTOUTOFRANGE',COR_E_ARGUMENTOUTOFRANGE);
      AddConstant('COR_E_ARITHMETIC',COR_E_ARITHMETIC);
      AddConstant('COR_E_ARRAYTYPEMISMATCH',COR_E_ARRAYTYPEMISMATCH);
      AddConstant('COR_E_CONTEXTMARSHAL',COR_E_CONTEXTMARSHAL);
      AddConstant('COR_E_TIMEOUT',COR_E_TIMEOUT);
      AddConstant('COR_E_KEYNOTFOUND',COR_E_KEYNOTFOUND);
      AddConstant('COR_E_DEVICESNOTSUPPORTED',COR_E_DEVICESNOTSUPPORTED);
      AddConstant('COR_E_DIVIDEBYZERO',COR_E_DIVIDEBYZERO);
      AddConstant('COR_E_EXCEPTION',COR_E_EXCEPTION);
      AddConstant('COR_E_EXECUTIONENGINE',COR_E_EXECUTIONENGINE);
      AddConstant('COR_E_FIELDACCESS',COR_E_FIELDACCESS);
      AddConstant('COR_E_FORMAT',COR_E_FORMAT);
      AddConstant('COR_E_BADIMAGEFORMAT',COR_E_BADIMAGEFORMAT);
      AddConstant('COR_E_ASSEMBLYEXPECTED',COR_E_ASSEMBLYEXPECTED);
      AddConstant('COR_E_TYPEUNLOADED',COR_E_TYPEUNLOADED);
      AddConstant('COR_E_INDEXOUTOFRANGE',COR_E_INDEXOUTOFRANGE);
      AddConstant('COR_E_INSUFFICIENTMEMORY',COR_E_INSUFFICIENTMEMORY);
      AddConstant('COR_E_RUNTIMEWRAPPED',COR_E_RUNTIMEWRAPPED);
      AddConstant('COR_E_INVALIDCAST',COR_E_INVALIDCAST);
      AddConstant('COR_E_INVALIDOPERATION',COR_E_INVALIDOPERATION);
      AddConstant('COR_E_INVALIDPROGRAM',COR_E_INVALIDPROGRAM);
      AddConstant('COR_E_MEMBERACCESS',COR_E_MEMBERACCESS);
      AddConstant('COR_E_METHODACCESS',COR_E_METHODACCESS);
      AddConstant('COR_E_MISSINGFIELD',COR_E_MISSINGFIELD);
      AddConstant('COR_E_MISSINGMANIFESTRESOURCE',COR_E_MISSINGMANIFESTRESOURCE);
      AddConstant('COR_E_MISSINGMEMBER',COR_E_MISSINGMEMBER);
      AddConstant('COR_E_MISSINGMETHOD',COR_E_MISSINGMETHOD);
      AddConstant('COR_E_MISSINGSATELLITEASSEMBLY',COR_E_MISSINGSATELLITEASSEMBLY);
      AddConstant('COR_E_MULTICASTNOTSUPPORTED',COR_E_MULTICASTNOTSUPPORTED);
      AddConstant('COR_E_NOTFINITENUMBER',COR_E_NOTFINITENUMBER);
      AddConstant('COR_E_DUPLICATEWAITOBJECT',COR_E_DUPLICATEWAITOBJECT);
      AddConstant('COR_E_PLATFORMNOTSUPPORTED',COR_E_PLATFORMNOTSUPPORTED);
      AddConstant('COR_E_NOTSUPPORTED',COR_E_NOTSUPPORTED);
      AddConstant('COR_E_NULLREFERENCE',COR_E_NULLREFERENCE);
      AddConstant('COR_E_OUTOFMEMORY',COR_E_OUTOFMEMORY);
      AddConstant('COR_E_OVERFLOW',COR_E_OVERFLOW);
      AddConstant('COR_E_RANK',COR_E_RANK);
      AddConstant('COR_E_REMOTING',COR_E_REMOTING);
      AddConstant('COR_E_SERVER',COR_E_SERVER);
      AddConstant('COR_E_SERVICEDCOMPONENT',COR_E_SERVICEDCOMPONENT);
      AddConstant('COR_E_SECURITY',COR_E_SECURITY);
      AddConstant('COR_E_SERIALIZATION',COR_E_SERIALIZATION);
      AddConstant('COR_E_STACKOVERFLOW',COR_E_STACKOVERFLOW);
      AddConstant('COR_E_SYNCHRONIZATIONLOCK',COR_E_SYNCHRONIZATIONLOCK);
      AddConstant('COR_E_SYSTEM',COR_E_SYSTEM);
      AddConstant('COR_E_THREADABORTED',COR_E_THREADABORTED);
      AddConstant('COR_E_OPERATIONCANCELED',COR_E_OPERATIONCANCELED);
      AddConstant('COR_E_THREADINTERRUPTED',COR_E_THREADINTERRUPTED);
      AddConstant('COR_E_THREADSTATE',COR_E_THREADSTATE);
      AddConstant('COR_E_THREADSTOP',COR_E_THREADSTOP);
      AddConstant('COR_E_THREADSTART',COR_E_THREADSTART);
      AddConstant('COR_E_TYPEINITIALIZATION',COR_E_TYPEINITIALIZATION);
      AddConstant('COR_E_TYPELOAD',COR_E_TYPELOAD);
      AddConstant('COR_E_ENTRYPOINTNOTFOUND',COR_E_ENTRYPOINTNOTFOUND);
      AddConstant('COR_E_DLLNOTFOUND',COR_E_DLLNOTFOUND);
      AddConstant('COR_E_UNAUTHORIZEDACCESS',COR_E_UNAUTHORIZEDACCESS);
      AddConstant('COR_E_VERIFICATION',COR_E_VERIFICATION);
      AddConstant('COR_E_INVALIDCOMOBJECT',COR_E_INVALIDCOMOBJECT);
      AddConstant('COR_E_SEMAPHOREFULL',COR_E_SEMAPHOREFULL);
      AddConstant('COR_E_WAITHANDLECANNOTBEOPENED',COR_E_WAITHANDLECANNOTBEOPENED);
      AddConstant('COR_E_ABANDONEDMUTEX',COR_E_ABANDONEDMUTEX);
      AddConstant('COR_E_MARSHALDIRECTIVE',COR_E_MARSHALDIRECTIVE);
      AddConstant('COR_E_INVALIDOLEVARIANTTYPE',COR_E_INVALIDOLEVARIANTTYPE);
      AddConstant('COR_E_SAFEARRAYTYPEMISMATCH',COR_E_SAFEARRAYTYPEMISMATCH);
      AddConstant('COR_E_SAFEARRAYRANKMISMATCH',COR_E_SAFEARRAYRANKMISMATCH);
      AddConstant('COR_E_DATAMISALIGNED',COR_E_DATAMISALIGNED);
      AddConstant('COR_E_TARGETPARAMCOUNT',COR_E_TARGETPARAMCOUNT);
      AddConstant('COR_E_AMBIGUOUSMATCH',COR_E_AMBIGUOUSMATCH);
      AddConstant('COR_E_INVALIDFILTERCRITERIA',COR_E_INVALIDFILTERCRITERIA);
      AddConstant('COR_E_REFLECTIONTYPELOAD',COR_E_REFLECTIONTYPELOAD);
      AddConstant('COR_E_TARGET',COR_E_TARGET);
      AddConstant('COR_E_TARGETINVOCATION',COR_E_TARGETINVOCATION);
      AddConstant('COR_E_CUSTOMATTRIBUTEFORMAT',COR_E_CUSTOMATTRIBUTEFORMAT);
      AddConstant('COR_E_ENDOFSTREAM',COR_E_ENDOFSTREAM);
      AddConstant('COR_E_FILELOAD',COR_E_FILELOAD);
      AddConstant('COR_E_FILENOTFOUND',COR_E_FILENOTFOUND);
      AddConstant('COR_E_BAD_PATHNAME',COR_E_BAD_PATHNAME);
      AddConstant('COR_E_IO',COR_E_IO);
      AddConstant('COR_E_DIRECTORYNOTFOUND',COR_E_DIRECTORYNOTFOUND);
      AddConstant('COR_E_PATHTOOLONG',COR_E_PATHTOOLONG);
      AddConstant('COR_E_OBJECTDISPOSED',COR_E_OBJECTDISPOSED);
      AddConstant('COR_E_FAILFAST',COR_E_FAILFAST);
      AddConstant('COR_E_HOSTPROTECTION',COR_E_HOSTPROTECTION);
      AddConstant('COR_E_ILLEGAL_REENTRANCY',COR_E_ILLEGAL_REENTRANCY);
      AddConstant('CLR_E_SHIM_RUNTIMELOAD',CLR_E_SHIM_RUNTIMELOAD);
      AddConstant('CLR_E_SHIM_RUNTIMEEXPORT',CLR_E_SHIM_RUNTIMEEXPORT);
      AddConstant('CLR_E_SHIM_INSTALLROOT',CLR_E_SHIM_INSTALLROOT);
      AddConstant('CLR_E_SHIM_INSTALLCOMP',CLR_E_SHIM_INSTALLCOMP);
      AddConstant('VER_E_HRESULT',VER_E_HRESULT);
      AddConstant('VER_E_OFFSET',VER_E_OFFSET);
      AddConstant('VER_E_OPCODE',VER_E_OPCODE);
      AddConstant('VER_E_OPERAND',VER_E_OPERAND);
      AddConstant('VER_E_TOKEN',VER_E_TOKEN);
      AddConstant('VER_E_EXCEPT',VER_E_EXCEPT);
      AddConstant('VER_E_STACK_SLOT',VER_E_STACK_SLOT);
      AddConstant('VER_E_LOC',VER_E_LOC);
      AddConstant('VER_E_ARG',VER_E_ARG);
      AddConstant('VER_E_FOUND',VER_E_FOUND);
      AddConstant('VER_E_EXPECTED',VER_E_EXPECTED);
      AddConstant('VER_E_LOC_BYNAME',VER_E_LOC_BYNAME);
      AddConstant('VER_E_UNKNOWN_OPCODE',VER_E_UNKNOWN_OPCODE);
      AddConstant('VER_E_SIG_CALLCONV',VER_E_SIG_CALLCONV);
      AddConstant('VER_E_SIG_ELEMTYPE',VER_E_SIG_ELEMTYPE);
      AddConstant('VER_E_RET_SIG',VER_E_RET_SIG);
      AddConstant('VER_E_FIELD_SIG',VER_E_FIELD_SIG);
      AddConstant('VER_E_INTERNAL',VER_E_INTERNAL);
      AddConstant('VER_E_STACK_TOO_LARGE',VER_E_STACK_TOO_LARGE);
      AddConstant('VER_E_ARRAY_NAME_LONG',VER_E_ARRAY_NAME_LONG);
      AddConstant('VER_E_FALLTHRU',VER_E_FALLTHRU);
      AddConstant('VER_E_TRY_GTEQ_END',VER_E_TRY_GTEQ_END);
      AddConstant('VER_E_TRYEND_GT_CS',VER_E_TRYEND_GT_CS);
      AddConstant('VER_E_HND_GTEQ_END',VER_E_HND_GTEQ_END);
      AddConstant('VER_E_HNDEND_GT_CS',VER_E_HNDEND_GT_CS);
      AddConstant('VER_E_FLT_GTEQ_CS',VER_E_FLT_GTEQ_CS);
      AddConstant('VER_E_TRY_START',VER_E_TRY_START);
      AddConstant('VER_E_HND_START',VER_E_HND_START);
      AddConstant('VER_E_FLT_START',VER_E_FLT_START);
      AddConstant('VER_E_TRY_OVERLAP',VER_E_TRY_OVERLAP);
      AddConstant('VER_E_TRY_EQ_HND_FIL',VER_E_TRY_EQ_HND_FIL);
      AddConstant('VER_E_TRY_SHARE_FIN_FAL',VER_E_TRY_SHARE_FIN_FAL);
      AddConstant('VER_E_HND_OVERLAP',VER_E_HND_OVERLAP);
      AddConstant('VER_E_HND_EQ',VER_E_HND_EQ);
      AddConstant('VER_E_FIL_OVERLAP',VER_E_FIL_OVERLAP);
      AddConstant('VER_E_FIL_EQ',VER_E_FIL_EQ);
      AddConstant('VER_E_FIL_CONT_TRY',VER_E_FIL_CONT_TRY);
      AddConstant('VER_E_FIL_CONT_HND',VER_E_FIL_CONT_HND);
      AddConstant('VER_E_FIL_CONT_FIL',VER_E_FIL_CONT_FIL);
      AddConstant('VER_E_FIL_GTEQ_CS',VER_E_FIL_GTEQ_CS);
      AddConstant('VER_E_FIL_START',VER_E_FIL_START);
      AddConstant('VER_E_FALLTHRU_EXCEP',VER_E_FALLTHRU_EXCEP);
      AddConstant('VER_E_FALLTHRU_INTO_HND',VER_E_FALLTHRU_INTO_HND);
      AddConstant('VER_E_FALLTHRU_INTO_FIL',VER_E_FALLTHRU_INTO_FIL);
      AddConstant('VER_E_LEAVE',VER_E_LEAVE);
      AddConstant('VER_E_RETHROW',VER_E_RETHROW);
      AddConstant('VER_E_ENDFINALLY',VER_E_ENDFINALLY);
      AddConstant('VER_E_ENDFILTER',VER_E_ENDFILTER);
      AddConstant('VER_E_ENDFILTER_MISSING',VER_E_ENDFILTER_MISSING);
      AddConstant('VER_E_BR_INTO_TRY',VER_E_BR_INTO_TRY);
      AddConstant('VER_E_BR_INTO_HND',VER_E_BR_INTO_HND);
      AddConstant('VER_E_BR_INTO_FIL',VER_E_BR_INTO_FIL);
      AddConstant('VER_E_BR_OUTOF_TRY',VER_E_BR_OUTOF_TRY);
      AddConstant('VER_E_BR_OUTOF_HND',VER_E_BR_OUTOF_HND);
      AddConstant('VER_E_BR_OUTOF_FIL',VER_E_BR_OUTOF_FIL);
      AddConstant('VER_E_BR_OUTOF_FIN',VER_E_BR_OUTOF_FIN);
      AddConstant('VER_E_RET_FROM_TRY',VER_E_RET_FROM_TRY);
      AddConstant('VER_E_RET_FROM_HND',VER_E_RET_FROM_HND);
      AddConstant('VER_E_RET_FROM_FIL',VER_E_RET_FROM_FIL);
      AddConstant('VER_E_BAD_JMP_TARGET',VER_E_BAD_JMP_TARGET);
      AddConstant('VER_E_PATH_LOC',VER_E_PATH_LOC);
      AddConstant('VER_E_PATH_THIS',VER_E_PATH_THIS);
      AddConstant('VER_E_PATH_STACK',VER_E_PATH_STACK);
      AddConstant('VER_E_PATH_STACK_DEPTH',VER_E_PATH_STACK_DEPTH);
      AddConstant('VER_E_THIS',VER_E_THIS);
      AddConstant('VER_E_THIS_UNINIT_EXCEP',VER_E_THIS_UNINIT_EXCEP);
      AddConstant('VER_E_THIS_UNINIT_STORE',VER_E_THIS_UNINIT_STORE);
      AddConstant('VER_E_THIS_UNINIT_RET',VER_E_THIS_UNINIT_RET);
      AddConstant('VER_E_THIS_UNINIT_V_RET',VER_E_THIS_UNINIT_V_RET);
      AddConstant('VER_E_THIS_UNINIT_BR',VER_E_THIS_UNINIT_BR);
      AddConstant('VER_E_LDFTN_CTOR',VER_E_LDFTN_CTOR);
      AddConstant('VER_E_STACK_NOT_EQ',VER_E_STACK_NOT_EQ);
      AddConstant('VER_E_STACK_UNEXPECTED',VER_E_STACK_UNEXPECTED);
      AddConstant('VER_E_STACK_EXCEPTION',VER_E_STACK_EXCEPTION);
      AddConstant('VER_E_STACK_OVERFLOW',VER_E_STACK_OVERFLOW);
      AddConstant('VER_E_STACK_UNDERFLOW',VER_E_STACK_UNDERFLOW);
      AddConstant('VER_E_STACK_EMPTY',VER_E_STACK_EMPTY);
      AddConstant('VER_E_STACK_UNINIT',VER_E_STACK_UNINIT);
    end;
  end;

  procedure AddConsts4;
  begin
    With Scripter.DefineClass(ClassType) do
    begin
      AddConstant('VER_E_STACK_I_I4_I8',VER_E_STACK_I_I4_I8);
      AddConstant('VER_E_STACK_R_R4_R8',VER_E_STACK_R_R4_R8);
      AddConstant('VER_E_STACK_NO_R_I8',VER_E_STACK_NO_R_I8);
      AddConstant('VER_E_STACK_NUMERIC',VER_E_STACK_NUMERIC);
      AddConstant('VER_E_STACK_OBJREF',VER_E_STACK_OBJREF);
      AddConstant('VER_E_STACK_P_OBJREF',VER_E_STACK_P_OBJREF);
      AddConstant('VER_E_STACK_BYREF',VER_E_STACK_BYREF);
      AddConstant('VER_E_STACK_METHOD',VER_E_STACK_METHOD);
      AddConstant('VER_E_STACK_ARRAY_SD',VER_E_STACK_ARRAY_SD);
      AddConstant('VER_E_STACK_VALCLASS',VER_E_STACK_VALCLASS);
      AddConstant('VER_E_STACK_P_VALCLASS',VER_E_STACK_P_VALCLASS);
      AddConstant('VER_E_STACK_NO_VALCLASS',VER_E_STACK_NO_VALCLASS);
      AddConstant('VER_E_LOC_DEAD',VER_E_LOC_DEAD);
      AddConstant('VER_E_LOC_NUM',VER_E_LOC_NUM);
      AddConstant('VER_E_ARG_NUM',VER_E_ARG_NUM);
      AddConstant('VER_E_TOKEN_RESOLVE',VER_E_TOKEN_RESOLVE);
      AddConstant('VER_E_TOKEN_TYPE',VER_E_TOKEN_TYPE);
      AddConstant('VER_E_TOKEN_TYPE_MEMBER',VER_E_TOKEN_TYPE_MEMBER);
      AddConstant('VER_E_TOKEN_TYPE_FIELD',VER_E_TOKEN_TYPE_FIELD);
      AddConstant('VER_E_TOKEN_TYPE_SIG',VER_E_TOKEN_TYPE_SIG);
      AddConstant('VER_E_UNVERIFIABLE',VER_E_UNVERIFIABLE);
      AddConstant('VER_E_LDSTR_OPERAND',VER_E_LDSTR_OPERAND);
      AddConstant('VER_E_RET_PTR_TO_STACK',VER_E_RET_PTR_TO_STACK);
      AddConstant('VER_E_RET_VOID',VER_E_RET_VOID);
      AddConstant('VER_E_RET_MISSING',VER_E_RET_MISSING);
      AddConstant('VER_E_RET_EMPTY',VER_E_RET_EMPTY);
      AddConstant('VER_E_RET_UNINIT',VER_E_RET_UNINIT);
      AddConstant('VER_E_ARRAY_ACCESS',VER_E_ARRAY_ACCESS);
      AddConstant('VER_E_ARRAY_V_STORE',VER_E_ARRAY_V_STORE);
      AddConstant('VER_E_ARRAY_SD',VER_E_ARRAY_SD);
      AddConstant('VER_E_ARRAY_SD_PTR',VER_E_ARRAY_SD_PTR);
      AddConstant('VER_E_ARRAY_FIELD',VER_E_ARRAY_FIELD);
      AddConstant('VER_E_ARGLIST',VER_E_ARGLIST);
      AddConstant('VER_E_VALCLASS',VER_E_VALCLASS);
      AddConstant('VER_E_METHOD_ACCESS',VER_E_METHOD_ACCESS);
      AddConstant('VER_E_FIELD_ACCESS',VER_E_FIELD_ACCESS);
      AddConstant('VER_E_DEAD',VER_E_DEAD);
      AddConstant('VER_E_FIELD_STATIC',VER_E_FIELD_STATIC);
      AddConstant('VER_E_FIELD_NO_STATIC',VER_E_FIELD_NO_STATIC);
      AddConstant('VER_E_ADDR',VER_E_ADDR);
      AddConstant('VER_E_ADDR_BYREF',VER_E_ADDR_BYREF);
      AddConstant('VER_E_ADDR_LITERAL',VER_E_ADDR_LITERAL);
      AddConstant('VER_E_INITONLY',VER_E_INITONLY);
      AddConstant('VER_E_THROW',VER_E_THROW);
      AddConstant('VER_E_CALLVIRT_VALCLASS',VER_E_CALLVIRT_VALCLASS);
      AddConstant('VER_E_CALL_SIG',VER_E_CALL_SIG);
      AddConstant('VER_E_CALL_STATIC',VER_E_CALL_STATIC);
      AddConstant('VER_E_CTOR',VER_E_CTOR);
      AddConstant('VER_E_CTOR_VIRT',VER_E_CTOR_VIRT);
      AddConstant('VER_E_CTOR_OR_SUPER',VER_E_CTOR_OR_SUPER);
      AddConstant('VER_E_CTOR_MUL_INIT',VER_E_CTOR_MUL_INIT);
      AddConstant('VER_E_SIG',VER_E_SIG);
      AddConstant('VER_E_SIG_ARRAY',VER_E_SIG_ARRAY);
      AddConstant('VER_E_SIG_ARRAY_PTR',VER_E_SIG_ARRAY_PTR);
      AddConstant('VER_E_SIG_ARRAY_BYREF',VER_E_SIG_ARRAY_BYREF);
      AddConstant('VER_E_SIG_ELEM_PTR',VER_E_SIG_ELEM_PTR);
      AddConstant('VER_E_SIG_VARARG',VER_E_SIG_VARARG);
      AddConstant('VER_E_SIG_VOID',VER_E_SIG_VOID);
      AddConstant('VER_E_SIG_BYREF_BYREF',VER_E_SIG_BYREF_BYREF);
      AddConstant('VER_E_CODE_SIZE_ZERO',VER_E_CODE_SIZE_ZERO);
      AddConstant('VER_E_BAD_VARARG',VER_E_BAD_VARARG);
      AddConstant('VER_E_TAIL_CALL',VER_E_TAIL_CALL);
      AddConstant('VER_E_TAIL_BYREF',VER_E_TAIL_BYREF);
      AddConstant('VER_E_TAIL_RET',VER_E_TAIL_RET);
      AddConstant('VER_E_TAIL_RET_VOID',VER_E_TAIL_RET_VOID);
      AddConstant('VER_E_TAIL_RET_TYPE',VER_E_TAIL_RET_TYPE);
      AddConstant('VER_E_TAIL_STACK_EMPTY',VER_E_TAIL_STACK_EMPTY);
      AddConstant('VER_E_METHOD_END',VER_E_METHOD_END);
      AddConstant('VER_E_BAD_BRANCH',VER_E_BAD_BRANCH);
      AddConstant('VER_E_FIN_OVERLAP',VER_E_FIN_OVERLAP);
      AddConstant('VER_E_LEXICAL_NESTING',VER_E_LEXICAL_NESTING);
      AddConstant('VER_E_VOLATILE',VER_E_VOLATILE);
      AddConstant('VER_E_UNALIGNED',VER_E_UNALIGNED);
      AddConstant('VER_E_INNERMOST_FIRST',VER_E_INNERMOST_FIRST);
      AddConstant('VER_E_CALLI_VIRTUAL',VER_E_CALLI_VIRTUAL);
      AddConstant('VER_E_CALL_ABSTRACT',VER_E_CALL_ABSTRACT);
      AddConstant('VER_E_STACK_UNEXP_ARRAY',VER_E_STACK_UNEXP_ARRAY);
      AddConstant('VER_E_NOT_IN_GC_HEAP',VER_E_NOT_IN_GC_HEAP);
      AddConstant('VER_E_TRY_N_EMPTY_STACK',VER_E_TRY_N_EMPTY_STACK);
      AddConstant('VER_E_DLGT_CTOR',VER_E_DLGT_CTOR);
      AddConstant('VER_E_DLGT_BB',VER_E_DLGT_BB);
      AddConstant('VER_E_DLGT_PATTERN',VER_E_DLGT_PATTERN);
      AddConstant('VER_E_DLGT_LDFTN',VER_E_DLGT_LDFTN);
      AddConstant('VER_E_FTN_ABSTRACT',VER_E_FTN_ABSTRACT);
      AddConstant('VER_E_SIG_C_VC',VER_E_SIG_C_VC);
      AddConstant('VER_E_SIG_VC_C',VER_E_SIG_VC_C);
      AddConstant('VER_E_BOX_PTR_TO_STACK',VER_E_BOX_PTR_TO_STACK);
      AddConstant('VER_E_SIG_BYREF_TB_AH',VER_E_SIG_BYREF_TB_AH);
      AddConstant('VER_E_SIG_ARRAY_TB_AH',VER_E_SIG_ARRAY_TB_AH);
      AddConstant('VER_E_ENDFILTER_STACK',VER_E_ENDFILTER_STACK);
      AddConstant('VER_E_DLGT_SIG_I',VER_E_DLGT_SIG_I);
      AddConstant('VER_E_DLGT_SIG_O',VER_E_DLGT_SIG_O);
      AddConstant('VER_E_RA_PTR_TO_STACK',VER_E_RA_PTR_TO_STACK);
      AddConstant('VER_E_CATCH_VALUE_TYPE',VER_E_CATCH_VALUE_TYPE);
      AddConstant('VER_E_CATCH_BYREF',VER_E_CATCH_BYREF);
      AddConstant('VER_E_FIL_PRECEED_HND',VER_E_FIL_PRECEED_HND);
      AddConstant('VER_E_LDVIRTFTN_STATIC',VER_E_LDVIRTFTN_STATIC);
      AddConstant('VER_E_CALLVIRT_STATIC',VER_E_CALLVIRT_STATIC);
      AddConstant('VER_E_INITLOCALS',VER_E_INITLOCALS);
      AddConstant('VER_E_BR_TO_EXCEPTION',VER_E_BR_TO_EXCEPTION);
      AddConstant('VER_E_CALL_CTOR',VER_E_CALL_CTOR);
      AddConstant('VER_E_VALCLASS_OBJREF_VAR',VER_E_VALCLASS_OBJREF_VAR);
      AddConstant('VER_E_STACK_P_VALCLASS_OBJREF_VAR',VER_E_STACK_P_VALCLASS_OBJREF_VAR);
      AddConstant('VER_E_SIG_VAR_PARAM',VER_E_SIG_VAR_PARAM);
      AddConstant('VER_E_SIG_MVAR_PARAM',VER_E_SIG_MVAR_PARAM);
      AddConstant('VER_E_SIG_VAR_ARG',VER_E_SIG_VAR_ARG);
      AddConstant('VER_E_SIG_MVAR_ARG',VER_E_SIG_MVAR_ARG);
      AddConstant('VER_E_SIG_GENERICINST',VER_E_SIG_GENERICINST);
      AddConstant('VER_E_SIG_METHOD_INST',VER_E_SIG_METHOD_INST);
      AddConstant('VER_E_SIG_METHOD_PARENT_INST',VER_E_SIG_METHOD_PARENT_INST);
      AddConstant('VER_E_SIG_FIELD_PARENT_INST',VER_E_SIG_FIELD_PARENT_INST);
      AddConstant('VER_E_CALLCONV_NOT_GENERICINST',VER_E_CALLCONV_NOT_GENERICINST);
      AddConstant('VER_E_TOKEN_BAD_METHOD_SPEC',VER_E_TOKEN_BAD_METHOD_SPEC);
      AddConstant('VER_E_BAD_READONLY_PREFIX',VER_E_BAD_READONLY_PREFIX);
      AddConstant('VER_E_BAD_CONSTRAINED_PREFIX',VER_E_BAD_CONSTRAINED_PREFIX);
      AddConstant('VER_E_CIRCULAR_VAR_CONSTRAINTS',VER_E_CIRCULAR_VAR_CONSTRAINTS);
      AddConstant('VER_E_CIRCULAR_MVAR_CONSTRAINTS',VER_E_CIRCULAR_MVAR_CONSTRAINTS);
      AddConstant('VER_E_UNSATISFIED_METHOD_INST',VER_E_UNSATISFIED_METHOD_INST);
      AddConstant('VER_E_UNSATISFIED_METHOD_PARENT_INST',VER_E_UNSATISFIED_METHOD_PARENT_INST);
      AddConstant('VER_E_UNSATISFIED_FIELD_PARENT_INST',VER_E_UNSATISFIED_FIELD_PARENT_INST);
      AddConstant('VER_E_UNSATISFIED_BOX_OPERAND',VER_E_UNSATISFIED_BOX_OPERAND);
      AddConstant('VER_E_CONSTRAINED_CALL_WITH_NON_BYREF_THIS',VER_E_CONSTRAINED_CALL_WITH_NON_BYREF_THIS);
      AddConstant('VER_E_CONSTRAINED_OF_NON_VARIABLE_TYPE',VER_E_CONSTRAINED_OF_NON_VARIABLE_TYPE);
      AddConstant('VER_E_READONLY_UNEXPECTED_CALLEE',VER_E_READONLY_UNEXPECTED_CALLEE);
      AddConstant('VER_E_READONLY_ILLEGAL_WRITE',VER_E_READONLY_ILLEGAL_WRITE);
      AddConstant('VER_E_READONLY_IN_MKREFANY',VER_E_READONLY_IN_MKREFANY);
      AddConstant('VER_E_UNALIGNED_ALIGNMENT',VER_E_UNALIGNED_ALIGNMENT);
      AddConstant('VER_E_TAILCALL_INSIDE_EH',VER_E_TAILCALL_INSIDE_EH);
      AddConstant('VER_E_BACKWARD_BRANCH',VER_E_BACKWARD_BRANCH);
      AddConstant('VER_E_CALL_TO_VTYPE_BASE',VER_E_CALL_TO_VTYPE_BASE);
      AddConstant('VER_E_NEWOBJ_OF_ABSTRACT_CLASS',VER_E_NEWOBJ_OF_ABSTRACT_CLASS);
      AddConstant('VER_E_UNMANAGED_POINTER',VER_E_UNMANAGED_POINTER);
      AddConstant('VER_E_LDFTN_NON_FINAL_VIRTUAL',VER_E_LDFTN_NON_FINAL_VIRTUAL);
      AddConstant('VER_E_FIELD_OVERLAP',VER_E_FIELD_OVERLAP);
      AddConstant('VER_E_THIS_MISMATCH',VER_E_THIS_MISMATCH);
      AddConstant('VER_E_STACK_I_I4',VER_E_STACK_I_I4);
      AddConstant('VER_E_BAD_PE',VER_E_BAD_PE);
      AddConstant('VER_E_BAD_MD',VER_E_BAD_MD);
      AddConstant('VER_E_BAD_APPDOMAIN',VER_E_BAD_APPDOMAIN);
      AddConstant('VER_E_TYPELOAD',VER_E_TYPELOAD);
      AddConstant('VER_E_PE_LOAD',VER_E_PE_LOAD);
      AddConstant('VER_E_WRITE_RVA_STATIC',VER_E_WRITE_RVA_STATIC);
      AddConstant('COR_E_Xml',COR_E_Xml);
      AddConstant('COR_E_XmlSchema',COR_E_XmlSchema);
      AddConstant('COR_E_XmlXslt',COR_E_XmlXslt);
      AddConstant('COR_E_XmlXPath',COR_E_XmlXPath);
      AddConstant('COR_E_XmlQuery',COR_E_XmlQuery);
      AddConstant('COR_E_Data',COR_E_Data);
      AddConstant('COR_E_DataDeletedRowInaccessible',COR_E_DataDeletedRowInaccessible);
      AddConstant('COR_E_DataDuplicateName',COR_E_DataDuplicateName);
      AddConstant('COR_E_DataInRowChangingEvent',COR_E_DataInRowChangingEvent);
      AddConstant('COR_E_DataInvalidConstraint',COR_E_DataInvalidConstraint);
      AddConstant('COR_E_DataMissingPrimaryKey',COR_E_DataMissingPrimaryKey);
      AddConstant('COR_E_DataNoNullAllowed',COR_E_DataNoNullAllowed);
      AddConstant('COR_E_DataReadOnly',COR_E_DataReadOnly);
      AddConstant('COR_E_DataRowNotInTable',COR_E_DataRowNotInTable);
      AddConstant('COR_E_DataVersionNotFound',COR_E_DataVersionNotFound);
      AddConstant('COR_E_DataConstraint',COR_E_DataConstraint);
      AddConstant('COR_E_StrongTyping',COR_E_StrongTyping);
      AddConstant('COR_E_SqlType',COR_E_SqlType);
      AddConstant('COR_E_SqlNullValue',COR_E_SqlNullValue);
      AddConstant('COR_E_SqlTruncate',COR_E_SqlTruncate);
      AddConstant('COR_E_AdapterMapping',COR_E_AdapterMapping);
      AddConstant('COR_E_DataAdapter',COR_E_DataAdapter);
      AddConstant('COR_E_DBConcurrency',COR_E_DBConcurrency);
      AddConstant('COR_E_OperationAborted',COR_E_OperationAborted);
      AddConstant('COR_E_InvalidUdt',COR_E_InvalidUdt);
      AddConstant('COR_E_SqlException',COR_E_SqlException);
      AddConstant('COR_E_OdbcException',COR_E_OdbcException);
      AddConstant('COR_E_OracleException',COR_E_OracleException);
      AddConstant('CORDBG_E_THREAD_NOT_SCHEDULED',CORDBG_E_THREAD_NOT_SCHEDULED);
      AddConstant('CORDBG_E_HANDLE_HAS_BEEN_DISPOSED',CORDBG_E_HANDLE_HAS_BEEN_DISPOSED);
      AddConstant('CORDBG_E_NONINTERCEPTABLE_EXCEPTION',CORDBG_E_NONINTERCEPTABLE_EXCEPTION);
      AddConstant('CORDBG_E_CANT_UNWIND_ABOVE_CALLBACK',CORDBG_E_CANT_UNWIND_ABOVE_CALLBACK);
      AddConstant('CORDBG_E_INTERCEPT_FRAME_ALREADY_SET',CORDBG_E_INTERCEPT_FRAME_ALREADY_SET);
      AddConstant('CORDBG_E_NO_NATIVE_PATCH_AT_ADDR',CORDBG_E_NO_NATIVE_PATCH_AT_ADDR);
      AddConstant('CORDBG_E_MUST_BE_INTEROP_DEBUGGING',CORDBG_E_MUST_BE_INTEROP_DEBUGGING);
      AddConstant('CORDBG_E_NATIVE_PATCH_ALREADY_AT_ADDR',CORDBG_E_NATIVE_PATCH_ALREADY_AT_ADDR);
      AddConstant('CORDBG_E_TIMEOUT',CORDBG_E_TIMEOUT);
      AddConstant('CORDBG_E_CANT_CALL_ON_THIS_THREAD',CORDBG_E_CANT_CALL_ON_THIS_THREAD);
      AddConstant('CORDBG_E_ENC_INFOLESS_METHOD',CORDBG_E_ENC_INFOLESS_METHOD);
      AddConstant('CORDBG_E_ENC_NESTED_HANLDERS',CORDBG_E_ENC_NESTED_HANLDERS);
      AddConstant('CORDBG_E_ENC_IN_FUNCLET',CORDBG_E_ENC_IN_FUNCLET);
      AddConstant('CORDBG_E_ENC_LOCALLOC',CORDBG_E_ENC_LOCALLOC);
      AddConstant('CORDBG_E_ENC_EDIT_NOT_SUPPORTED',CORDBG_E_ENC_EDIT_NOT_SUPPORTED);
      AddConstant('CORDBG_E_FEABORT_DELAYED_UNTIL_THREAD_RESUMED',CORDBG_E_FEABORT_DELAYED_UNTIL_THREAD_RESUMED);
      AddConstant('CORDBG_E_NOTREADY',CORDBG_E_NOTREADY);
      AddConstant('CORDBG_E_CANNOT_RESOLVE_ASSEMBLY',CORDBG_E_CANNOT_RESOLVE_ASSEMBLY);
      AddConstant('CORDBG_E_MUST_BE_IN_LOAD_MODULE',CORDBG_E_MUST_BE_IN_LOAD_MODULE);
      AddConstant('CORDBG_E_CANNOT_BE_ON_ATTACH',CORDBG_E_CANNOT_BE_ON_ATTACH);
      AddConstant('CORDBG_S_NOT_ALL_BITS_SET',CORDBG_S_NOT_ALL_BITS_SET);
      AddConstant('CORDBG_E_NGEN_NOT_SUPPORTED',CORDBG_E_NGEN_NOT_SUPPORTED);
      AddConstant('CORDBG_E_ILLEGAL_SHUTDOWN_ORDER',CORDBG_E_ILLEGAL_SHUTDOWN_ORDER);
      AddConstant('CORDBG_E_CANNOT_DEBUG_FIBER_PROCESS',CORDBG_E_CANNOT_DEBUG_FIBER_PROCESS);
      AddConstant('CORDBG_E_MUST_BE_IN_CREATE_PROCESS',CORDBG_E_MUST_BE_IN_CREATE_PROCESS);
      AddConstant('CORDBG_E_DETACH_FAILED_OUTSTANDING_EVALS',CORDBG_E_DETACH_FAILED_OUTSTANDING_EVALS);
      AddConstant('CORDBG_E_DETACH_FAILED_OUTSTANDING_STEPPERS',CORDBG_E_DETACH_FAILED_OUTSTANDING_STEPPERS);
      AddConstant('CORDBG_E_CANT_INTEROP_STEP_OUT',CORDBG_E_CANT_INTEROP_STEP_OUT);
      AddConstant('CORDBG_E_DETACH_FAILED_OUTSTANDING_BREAKPOINTS',CORDBG_E_DETACH_FAILED_OUTSTANDING_BREAKPOINTS);
      AddConstant('CORDBG_E_ILLEGAL_IN_STACK_OVERFLOW',CORDBG_E_ILLEGAL_IN_STACK_OVERFLOW);
      AddConstant('CORDBG_E_ILLEGAL_AT_GC_UNSAFE_POINT',CORDBG_E_ILLEGAL_AT_GC_UNSAFE_POINT);
      AddConstant('CORDBG_E_ILLEGAL_IN_PROLOG',CORDBG_E_ILLEGAL_IN_PROLOG);
      AddConstant('CORDBG_E_ILLEGAL_IN_NATIVE_CODE',CORDBG_E_ILLEGAL_IN_NATIVE_CODE);
      AddConstant('CORDBG_E_ILLEGAL_IN_OPTIMIZED_CODE',CORDBG_E_ILLEGAL_IN_OPTIMIZED_CODE);
      AddConstant('CORDBG_E_MINIDUMP_UNSUPPORTED',CORDBG_E_MINIDUMP_UNSUPPORTED);
      AddConstant('CORDBG_E_APPDOMAIN_MISMATCH',CORDBG_E_APPDOMAIN_MISMATCH);
      AddConstant('CORDBG_E_CONTEXT_UNVAILABLE',CORDBG_E_CONTEXT_UNVAILABLE);
      AddConstant('CORDBG_E_UNCOMPATIBLE_PLATFORMS',CORDBG_E_UNCOMPATIBLE_PLATFORMS);
      AddConstant('CORDBG_E_DEBUGGING_DISABLED',CORDBG_E_DEBUGGING_DISABLED);
      AddConstant('CORDBG_E_DETACH_FAILED_ON_ENC',CORDBG_E_DETACH_FAILED_ON_ENC);
      AddConstant('CORDBG_E_CURRENT_EXCEPTION_IS_OUTSIDE_CURRENT_EXECUTION_SCOPE',CORDBG_E_CURRENT_EXCEPTION_IS_OUTSIDE_CURRENT_EXECUTION_SCOPE);
      AddConstant('CORDBG_E_HELPER_MAY_DEADLOCK',CORDBG_E_HELPER_MAY_DEADLOCK);
      AddConstant('PEFMT_E_NO_CONTENTS',PEFMT_E_NO_CONTENTS);
      AddConstant('PEFMT_E_NO_NTHEADERS',PEFMT_E_NO_NTHEADERS);
      AddConstant('PEFMT_E_64BIT',PEFMT_E_64BIT);
      AddConstant('PEFMT_E_NO_CORHEADER',PEFMT_E_NO_CORHEADER);
      AddConstant('PEFMT_E_NOT_ILONLY',PEFMT_E_NOT_ILONLY);
      AddConstant('PEFMT_E_IMPORT_DLLS',PEFMT_E_IMPORT_DLLS);
      AddConstant('PEFMT_E_EXE_NOENTRYPOINT',PEFMT_E_EXE_NOENTRYPOINT);
      AddConstant('PEFMT_E_BASE_RELOCS',PEFMT_E_BASE_RELOCS);
      AddConstant('PEFMT_E_ENTRYPOINT',PEFMT_E_ENTRYPOINT);
      AddConstant('PEFMT_E_ZERO_SIZEOFCODE',PEFMT_E_ZERO_SIZEOFCODE);
      AddConstant('PEFMT_E_BAD_CORHEADER',PEFMT_E_BAD_CORHEADER);
      AddConstant('CLR_OPTSVC_E_CONTROLLER_INTERRUPT',CLR_OPTSVC_E_CONTROLLER_INTERRUPT);
      AddConstant('NGEN_FAILED_GET_DEPENDENCIES',NGEN_FAILED_GET_DEPENDENCIES);
      AddConstant('NGEN_FAILED_NATIVE_IMAGE_DELETE',NGEN_FAILED_NATIVE_IMAGE_DELETE);
    end;
  end;
begin
  With Scripter.DefineClass(ClassType) do
  begin
  AddConsts1;
  AddConsts2;
  AddConsts3;
  AddConsts4;
  end;
end;

class function TatCorErrorLibrary.LibraryName: string;
begin
  result := 'CorError';
end;

initialization
  RegisterScripterLibrary(TatCorErrorLibrary, True);

{$WARNINGS ON}

end.

