unit Email;

interface

type

HCkPrivateKey = Pointer;
HCkTask = Pointer;
HCkStringBuilder = Pointer;
HCkCert = Pointer;
HCkBinData = Pointer;
HCkString = Pointer;
HCkStringTable = Pointer;
HCkByteData = Pointer;
HCkXmlCertVault = Pointer;
HCkDateTime = Pointer;
HCkEmail = Pointer;
HCkCertChain = Pointer;
HCkJsonObject = Pointer;
HCkStringArray = Pointer;


function CkEmail_Create: HCkEmail;  stdcall;
procedure CkEmail_Dispose(handle: HCkEmail); stdcall;
procedure CkEmail_getBody(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putBody(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__body(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getBounceAddress(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putBounceAddress(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__bounceAddress(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getCharset(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putCharset(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__charset(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getDebugLogFilePath(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putDebugLogFilePath(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__debugLogFilePath(objHandle: HCkEmail): PWideChar;
function CkEmail_getDecrypted(objHandle: HCkEmail): wordbool;
procedure CkEmail_getEmailDateStr(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putEmailDateStr(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__emailDateStr(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getEncryptedBy(objHandle: HCkEmail; outPropVal: HCkString);
function CkEmail__encryptedBy(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getFileDistList(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putFileDistList(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__fileDistList(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getFrom(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putFrom(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__from(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getFromAddress(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putFromAddress(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__fromAddress(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getFromName(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putFromName(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__fromName(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getHeader(objHandle: HCkEmail; outPropVal: HCkString);
function CkEmail__header(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getLanguage(objHandle: HCkEmail; outPropVal: HCkString);
function CkEmail__language(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getLastErrorHtml(objHandle: HCkEmail; outPropVal: HCkString);
function CkEmail__lastErrorHtml(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getLastErrorText(objHandle: HCkEmail; outPropVal: HCkString);
function CkEmail__lastErrorText(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getLastErrorXml(objHandle: HCkEmail; outPropVal: HCkString);
function CkEmail__lastErrorXml(objHandle: HCkEmail): PWideChar;
function CkEmail_getLastMethodSuccess(objHandle: HCkEmail): wordbool;
procedure CkEmail_putLastMethodSuccess(objHandle: HCkEmail; newPropVal: wordbool);
procedure CkEmail_getLocalDateStr(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putLocalDateStr(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__localDateStr(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getMailer(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putMailer(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__mailer(objHandle: HCkEmail): PWideChar;
function CkEmail_getNumAlternatives(objHandle: HCkEmail): Integer;
function CkEmail_getNumAttachedMessages(objHandle: HCkEmail): Integer;
function CkEmail_getNumAttachments(objHandle: HCkEmail): Integer;
function CkEmail_getNumBcc(objHandle: HCkEmail): Integer;
function CkEmail_getNumCC(objHandle: HCkEmail): Integer;
function CkEmail_getNumDaysOld(objHandle: HCkEmail): Integer;
function CkEmail_getNumDigests(objHandle: HCkEmail): Integer;
function CkEmail_getNumHeaderFields(objHandle: HCkEmail): Integer;
function CkEmail_getNumRelatedItems(objHandle: HCkEmail): Integer;
function CkEmail_getNumReplacePatterns(objHandle: HCkEmail): Integer;
function CkEmail_getNumReports(objHandle: HCkEmail): Integer;
function CkEmail_getNumTo(objHandle: HCkEmail): Integer;
procedure CkEmail_getOaepHash(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putOaepHash(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__oaepHash(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getOaepMgfHash(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putOaepMgfHash(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__oaepMgfHash(objHandle: HCkEmail): PWideChar;
function CkEmail_getOaepPadding(objHandle: HCkEmail): wordbool;
procedure CkEmail_putOaepPadding(objHandle: HCkEmail; newPropVal: wordbool);
function CkEmail_getOverwriteExisting(objHandle: HCkEmail): wordbool;
procedure CkEmail_putOverwriteExisting(objHandle: HCkEmail; newPropVal: wordbool);
procedure CkEmail_getPkcs7CryptAlg(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putPkcs7CryptAlg(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__pkcs7CryptAlg(objHandle: HCkEmail): PWideChar;
function CkEmail_getPkcs7KeyLength(objHandle: HCkEmail): Integer;
procedure CkEmail_putPkcs7KeyLength(objHandle: HCkEmail; newPropVal: Integer);
procedure CkEmail_getPreferredCharset(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putPreferredCharset(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__preferredCharset(objHandle: HCkEmail): PWideChar;
function CkEmail_getPrependHeaders(objHandle: HCkEmail): wordbool;
procedure CkEmail_putPrependHeaders(objHandle: HCkEmail; newPropVal: wordbool);
function CkEmail_getReceivedEncrypted(objHandle: HCkEmail): wordbool;
function CkEmail_getReceivedSigned(objHandle: HCkEmail): wordbool;
procedure CkEmail_getReplyTo(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putReplyTo(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__replyTo(objHandle: HCkEmail): PWideChar;
function CkEmail_getReturnReceipt(objHandle: HCkEmail): wordbool;
procedure CkEmail_putReturnReceipt(objHandle: HCkEmail; newPropVal: wordbool);
function CkEmail_getSendEncrypted(objHandle: HCkEmail): wordbool;
procedure CkEmail_putSendEncrypted(objHandle: HCkEmail; newPropVal: wordbool);
function CkEmail_getSendSigned(objHandle: HCkEmail): wordbool;
procedure CkEmail_putSendSigned(objHandle: HCkEmail; newPropVal: wordbool);
function CkEmail_getSignaturesValid(objHandle: HCkEmail): wordbool;
procedure CkEmail_getSignedBy(objHandle: HCkEmail; outPropVal: HCkString);
function CkEmail__signedBy(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getSigningAlg(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putSigningAlg(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__signingAlg(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getSigningHashAlg(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putSigningHashAlg(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__signingHashAlg(objHandle: HCkEmail): PWideChar;
function CkEmail_getSize(objHandle: HCkEmail): Integer;
procedure CkEmail_getSubject(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putSubject(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__subject(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getUidl(objHandle: HCkEmail; outPropVal: HCkString);
function CkEmail__uidl(objHandle: HCkEmail): PWideChar;
procedure CkEmail_getUncommonOptions(objHandle: HCkEmail; outPropVal: HCkString);
procedure CkEmail_putUncommonOptions(objHandle: HCkEmail; newPropVal: PWideChar);
function CkEmail__uncommonOptions(objHandle: HCkEmail): PWideChar;
function CkEmail_getUnpackUseRelPaths(objHandle: HCkEmail): wordbool;
procedure CkEmail_putUnpackUseRelPaths(objHandle: HCkEmail; newPropVal: wordbool);
function CkEmail_getVerboseLogging(objHandle: HCkEmail): wordbool;
procedure CkEmail_putVerboseLogging(objHandle: HCkEmail; newPropVal: wordbool);
procedure CkEmail_getVersion(objHandle: HCkEmail; outPropVal: HCkString);
function CkEmail__version(objHandle: HCkEmail): PWideChar;
function CkEmail_AddAttachmentBd(objHandle: HCkEmail; filename: PWideChar; binData: HCkBinData; contentType: PWideChar): wordbool;
procedure CkEmail_AddAttachmentHeader(objHandle: HCkEmail; index: Integer; fieldName: PWideChar; fieldValue: PWideChar);
function CkEmail_AddBcc(objHandle: HCkEmail; friendlyName: PWideChar; emailAddress: PWideChar): wordbool;
function CkEmail_AddCC(objHandle: HCkEmail; friendlyName: PWideChar; emailAddress: PWideChar): wordbool;
function CkEmail_AddDataAttachment(objHandle: HCkEmail; fileName: PWideChar; content: HCkByteData): wordbool;
function CkEmail_AddDataAttachment2(objHandle: HCkEmail; fileName: PWideChar; content: HCkByteData; contentType: PWideChar): wordbool;
function CkEmail_AddEncryptCert(objHandle: HCkEmail; cert: HCkCert): wordbool;
function CkEmail_AddFileAttachment(objHandle: HCkEmail; path: PWideChar; outStr: HCkString): wordbool;
function CkEmail__addFileAttachment(objHandle: HCkEmail; path: PWideChar): PWideChar;
function CkEmail_AddFileAttachment2(objHandle: HCkEmail; path: PWideChar; contentType: PWideChar): wordbool;
procedure CkEmail_AddHeaderField(objHandle: HCkEmail; fieldName: PWideChar; fieldValue: PWideChar);
procedure CkEmail_AddHeaderField2(objHandle: HCkEmail; fieldName: PWideChar; fieldValue: PWideChar);
function CkEmail_AddHtmlAlternativeBody(objHandle: HCkEmail; body: PWideChar): wordbool;
function CkEmail_AddiCalendarAlternativeBody(objHandle: HCkEmail; icalContent: PWideChar; methodName: PWideChar): wordbool;
function CkEmail_AddMultipleBcc(objHandle: HCkEmail; commaSeparatedAddresses: PWideChar): wordbool;
function CkEmail_AddMultipleCC(objHandle: HCkEmail; commaSeparatedAddresses: PWideChar): wordbool;
function CkEmail_AddMultipleTo(objHandle: HCkEmail; commaSeparatedAddresses: PWideChar): wordbool;
function CkEmail_AddPfxSourceBd(objHandle: HCkEmail; bd: HCkBinData; password: PWideChar): wordbool;
function CkEmail_AddPfxSourceData(objHandle: HCkEmail; pfxBytes: HCkByteData; pfxPassword: PWideChar): wordbool;
function CkEmail_AddPfxSourceFile(objHandle: HCkEmail; pfxFilePath: PWideChar; pfxPassword: PWideChar): wordbool;
function CkEmail_AddPlainTextAlternativeBody(objHandle: HCkEmail; body: PWideChar): wordbool;
function CkEmail_AddRelatedBd(objHandle: HCkEmail; filename: PWideChar; binData: HCkBinData; outStr: HCkString): wordbool;
function CkEmail__addRelatedBd(objHandle: HCkEmail; filename: PWideChar; binData: HCkBinData): PWideChar;
function CkEmail_AddRelatedBd2(objHandle: HCkEmail; binData: HCkBinData; fileNameInHtml: PWideChar): wordbool;
function CkEmail_AddRelatedData(objHandle: HCkEmail; fileName: PWideChar; inData: HCkByteData; outStr: HCkString): wordbool;
function CkEmail__addRelatedData(objHandle: HCkEmail; fileName: PWideChar; inData: HCkByteData): PWideChar;
procedure CkEmail_AddRelatedData2(objHandle: HCkEmail; inData: HCkByteData; fileNameInHtml: PWideChar);
function CkEmail_AddRelatedFile(objHandle: HCkEmail; path: PWideChar; outStr: HCkString): wordbool;
function CkEmail__addRelatedFile(objHandle: HCkEmail; path: PWideChar): PWideChar;
function CkEmail_AddRelatedFile2(objHandle: HCkEmail; filenameOnDisk: PWideChar; filenameInHtml: PWideChar): wordbool;
procedure CkEmail_AddRelatedHeader(objHandle: HCkEmail; index: Integer; fieldName: PWideChar; fieldValue: PWideChar);
function CkEmail_AddRelatedString(objHandle: HCkEmail; nameInHtml: PWideChar; str: PWideChar; charset: PWideChar; outStr: HCkString): wordbool;
function CkEmail__addRelatedString(objHandle: HCkEmail; nameInHtml: PWideChar; str: PWideChar; charset: PWideChar): PWideChar;
procedure CkEmail_AddRelatedString2(objHandle: HCkEmail; fileNameInHtml: PWideChar; content: PWideChar; charset: PWideChar);
function CkEmail_AddStringAttachment(objHandle: HCkEmail; path: PWideChar; content: PWideChar): wordbool;
function CkEmail_AddStringAttachment2(objHandle: HCkEmail; path: PWideChar; content: PWideChar; charset: PWideChar): wordbool;
function CkEmail_AddTo(objHandle: HCkEmail; friendlyName: PWideChar; emailAddress: PWideChar): wordbool;
function CkEmail_AesDecrypt(objHandle: HCkEmail; password: PWideChar): wordbool;
function CkEmail_AesEncrypt(objHandle: HCkEmail; password: PWideChar): wordbool;
procedure CkEmail_AppendToBody(objHandle: HCkEmail; str: PWideChar);
function CkEmail_ApplyFixups(objHandle: HCkEmail; fixups: PWideChar): wordbool;
function CkEmail_AspUnpack(objHandle: HCkEmail; prefix: PWideChar; saveDir: PWideChar; urlPath: PWideChar; cleanFiles: wordbool): wordbool;
function CkEmail_AspUnpack2(objHandle: HCkEmail; prefix: PWideChar; saveDir: PWideChar; urlPath: PWideChar; cleanFiles: wordbool; outData: HCkByteData): wordbool;
function CkEmail_AttachEmail(objHandle: HCkEmail; email: HCkEmail): wordbool;
function CkEmail_AttachMessage(objHandle: HCkEmail; mimeBytes: HCkByteData): wordbool;
function CkEmail_BEncodeBytes(objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar; outStr: HCkString): wordbool;
function CkEmail__bEncodeBytes(objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar): PWideChar;
function CkEmail_BEncodeString(objHandle: HCkEmail; str: PWideChar; charset: PWideChar; outStr: HCkString): wordbool;
function CkEmail__bEncodeString(objHandle: HCkEmail; str: PWideChar; charset: PWideChar): PWideChar;
procedure CkEmail_Clear(objHandle: HCkEmail);
procedure CkEmail_ClearBcc(objHandle: HCkEmail);
procedure CkEmail_ClearCC(objHandle: HCkEmail);
procedure CkEmail_ClearEncryptCerts(objHandle: HCkEmail);
procedure CkEmail_ClearTo(objHandle: HCkEmail);
function CkEmail_Clone(objHandle: HCkEmail): HCkEmail;
function CkEmail_ComputeGlobalKey2(objHandle: HCkEmail; encoding: PWideChar; bFold: wordbool; outStr: HCkString): wordbool;
function CkEmail__computeGlobalKey2(objHandle: HCkEmail; encoding: PWideChar; bFold: wordbool): PWideChar;
function CkEmail_ConvertInlineImages(objHandle: HCkEmail): wordbool;
function CkEmail_CreateDsn(objHandle: HCkEmail; humanReadableMessage: PWideChar; xmlStatusFields: PWideChar; bHeaderOnly: wordbool): HCkEmail;
function CkEmail_CreateForward(objHandle: HCkEmail): HCkEmail;
function CkEmail_CreateMdn(objHandle: HCkEmail; humanReadableMessage: PWideChar; xmlStatusFields: PWideChar; bHeaderOnly: wordbool): HCkEmail;
function CkEmail_CreateReply(objHandle: HCkEmail): HCkEmail;
function CkEmail_CreateTempMht(objHandle: HCkEmail; inFilename: PWideChar; outStr: HCkString): wordbool;
function CkEmail__createTempMht(objHandle: HCkEmail; inFilename: PWideChar): PWideChar;
procedure CkEmail_DropAttachments(objHandle: HCkEmail);
procedure CkEmail_DropRelatedItem(objHandle: HCkEmail; index: Integer);
procedure CkEmail_DropRelatedItems(objHandle: HCkEmail);
function CkEmail_DropSingleAttachment(objHandle: HCkEmail; index: Integer): wordbool;
function CkEmail_FindIssuer(objHandle: HCkEmail; cert: HCkCert): HCkCert;
function CkEmail_GenerateFilename(objHandle: HCkEmail; outStr: HCkString): wordbool;
function CkEmail__generateFilename(objHandle: HCkEmail): PWideChar;
function CkEmail_GetAlternativeBody(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getAlternativeBody(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetAlternativeBodyBd(objHandle: HCkEmail; index: Integer; binData: HCkBinData): wordbool;
function CkEmail_GetAlternativeBodyByContentType(objHandle: HCkEmail; contentType: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getAlternativeBodyByContentType(objHandle: HCkEmail; contentType: PWideChar): PWideChar;
function CkEmail_GetAlternativeContentType(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getAlternativeContentType(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetAltHeaderField(objHandle: HCkEmail; index: Integer; fieldName: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getAltHeaderField(objHandle: HCkEmail; index: Integer; fieldName: PWideChar): PWideChar;
function CkEmail_GetAttachedEmail(objHandle: HCkEmail; index: Integer; email: HCkEmail): wordbool;
function CkEmail_GetAttachedMessage(objHandle: HCkEmail; index: Integer): HCkEmail;
function CkEmail_GetAttachedMessageAttr(objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getAttachedMessageAttr(objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar): PWideChar;
function CkEmail_GetAttachedMessageFilename(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getAttachedMessageFilename(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetAttachmentAttr(objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getAttachmentAttr(objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar): PWideChar;
function CkEmail_GetAttachmentBd(objHandle: HCkEmail; index: Integer; binData: HCkBinData): wordbool;
function CkEmail_GetAttachmentContentID(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getAttachmentContentID(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetAttachmentContentType(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getAttachmentContentType(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetAttachmentData(objHandle: HCkEmail; index: Integer; outData: HCkByteData): wordbool;
function CkEmail_GetAttachmentFilename(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getAttachmentFilename(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetAttachmentHeader(objHandle: HCkEmail; attachIndex: Integer; fieldName: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getAttachmentHeader(objHandle: HCkEmail; attachIndex: Integer; fieldName: PWideChar): PWideChar;
function CkEmail_GetAttachmentSize(objHandle: HCkEmail; index: Integer): Integer;
function CkEmail_GetAttachmentString(objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getAttachmentString(objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar;
function CkEmail_GetAttachmentStringCrLf(objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getAttachmentStringCrLf(objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar;
function CkEmail_GetBcc(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getBcc(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetBccAddr(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getBccAddr(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetBccName(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getBccName(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetCC(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getCC(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetCcAddr(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getCcAddr(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetCcName(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getCcName(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetDeliveryStatusInfo(objHandle: HCkEmail; fieldName: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getDeliveryStatusInfo(objHandle: HCkEmail; fieldName: PWideChar): PWideChar;
function CkEmail_GetDigest(objHandle: HCkEmail; index: Integer): HCkEmail;
function CkEmail_GetDigestEmail(objHandle: HCkEmail; index: Integer; email: HCkEmail): wordbool;
function CkEmail_GetDsnFinalRecipients(objHandle: HCkEmail): HCkStringArray;
function CkEmail_GetDsnInfo(objHandle: HCkEmail; json: HCkJsonObject): wordbool;
function CkEmail_GetDt(objHandle: HCkEmail): HCkDateTime;
function CkEmail_GetEncryptCert(objHandle: HCkEmail): HCkCert;
function CkEmail_GetEncryptedByCert(objHandle: HCkEmail): HCkCert;
function CkEmail_GetFileContent(objHandle: HCkEmail; path: PWideChar; outData: HCkByteData): wordbool;
function CkEmail_GetHeaderField(objHandle: HCkEmail; fieldName: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getHeaderField(objHandle: HCkEmail; fieldName: PWideChar): PWideChar;
function CkEmail_GetHeaderFieldName(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getHeaderFieldName(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetHeaderFieldValue(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getHeaderFieldValue(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetHtmlBody(objHandle: HCkEmail; outStr: HCkString): wordbool;
function CkEmail__getHtmlBody(objHandle: HCkEmail): PWideChar;
function CkEmail_GetHtmlBodySb(objHandle: HCkEmail; inlineImageData: wordbool; sb: HCkStringBuilder): wordbool;
function CkEmail_GetImapUid(objHandle: HCkEmail): LongWord;
function CkEmail_GetLinkedDomains(objHandle: HCkEmail): HCkStringArray;
function CkEmail_GetMime(objHandle: HCkEmail; outStr: HCkString): wordbool;
function CkEmail__getMime(objHandle: HCkEmail): PWideChar;
function CkEmail_GetMimeBd(objHandle: HCkEmail; bindat: HCkBinData): wordbool;
function CkEmail_GetMimeBinary(objHandle: HCkEmail; outData: HCkByteData): wordbool;
function CkEmail_GetMimeSb(objHandle: HCkEmail; sb: HCkStringBuilder): wordbool;
function CkEmail_GetNthBinaryPartOfType(objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; outData: HCkByteData): wordbool;
function CkEmail_GetNthBinaryPartOfTypeBd(objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; bd: HCkBinData): wordbool;
function CkEmail_GetNthContentType(objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; outStr: HCkString): wordbool;
function CkEmail__getNthContentType(objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool): PWideChar;
function CkEmail_GetNthTextPartOfType(objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; outStr: HCkString): wordbool;
function CkEmail__getNthTextPartOfType(objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool): PWideChar;
function CkEmail_GetNumPartsOfType(objHandle: HCkEmail; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool): Integer;
function CkEmail_GetPlainTextBody(objHandle: HCkEmail; outStr: HCkString): wordbool;
function CkEmail__getPlainTextBody(objHandle: HCkEmail): PWideChar;
function CkEmail_GetRelatedAttr(objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getRelatedAttr(objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar): PWideChar;
function CkEmail_GetRelatedContentID(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getRelatedContentID(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetRelatedContentLocation(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getRelatedContentLocation(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetRelatedContentType(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getRelatedContentType(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetRelatedData(objHandle: HCkEmail; index: Integer; outData: HCkByteData): wordbool;
function CkEmail_GetRelatedFilename(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getRelatedFilename(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetRelatedHeader(objHandle: HCkEmail; index: Integer; fieldName: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getRelatedHeader(objHandle: HCkEmail; index: Integer; fieldName: PWideChar): PWideChar;
function CkEmail_GetRelatedString(objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getRelatedString(objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar;
function CkEmail_GetRelatedStringCrLf(objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getRelatedStringCrLf(objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar;
function CkEmail_GetReplacePattern(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getReplacePattern(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetReplaceString(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getReplaceString(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetReplaceString2(objHandle: HCkEmail; pattern: PWideChar; outStr: HCkString): wordbool;
function CkEmail__getReplaceString2(objHandle: HCkEmail; pattern: PWideChar): PWideChar;
function CkEmail_GetReport(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getReport(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetSignedByCert(objHandle: HCkEmail): HCkCert;
function CkEmail_GetSignedByCertChain(objHandle: HCkEmail): HCkCertChain;
function CkEmail_GetSigningCert(objHandle: HCkEmail): HCkCert;
function CkEmail_GetTo(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getTo(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetToAddr(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getToAddr(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetToName(objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
function CkEmail__getToName(objHandle: HCkEmail; index: Integer): PWideChar;
function CkEmail_GetXml(objHandle: HCkEmail; outStr: HCkString): wordbool;
function CkEmail__getXml(objHandle: HCkEmail): PWideChar;
function CkEmail_HasHeaderMatching(objHandle: HCkEmail; fieldName: PWideChar; valuePattern: PWideChar; caseSensitive: wordbool): wordbool;
function CkEmail_HasHtmlBody(objHandle: HCkEmail): wordbool;
function CkEmail_HasPlainTextBody(objHandle: HCkEmail): wordbool;
function CkEmail_IsMultipartReport(objHandle: HCkEmail): wordbool;
function CkEmail_LastDecryptCert(objHandle: HCkEmail; cert: HCkCert): wordbool;
function CkEmail_LastSignerCert(objHandle: HCkEmail; index: Integer; cert: HCkCert): wordbool;
function CkEmail_LinkedDomains(objHandle: HCkEmail; domains: HCkStringTable): wordbool;
function CkEmail_LoadEml(objHandle: HCkEmail; mimePath: PWideChar): wordbool;
function CkEmail_LoadTaskResult(objHandle: HCkEmail; task: HCkTask): wordbool;
function CkEmail_LoadXml(objHandle: HCkEmail; xmlPath: PWideChar): wordbool;
function CkEmail_LoadXmlString(objHandle: HCkEmail; xmlStr: PWideChar): wordbool;
function CkEmail_MakeCopy(objHandle: HCkEmail; destEmail: HCkEmail): wordbool;
function CkEmail_QEncodeBytes(objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar; outStr: HCkString): wordbool;
function CkEmail__qEncodeBytes(objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar): PWideChar;
function CkEmail_QEncodeString(objHandle: HCkEmail; str: PWideChar; charset: PWideChar; outStr: HCkString): wordbool;
function CkEmail__qEncodeString(objHandle: HCkEmail; str: PWideChar; charset: PWideChar): PWideChar;
procedure CkEmail_RemoveAttachedMessage(objHandle: HCkEmail; idx: Integer);
procedure CkEmail_RemoveAttachedMessages(objHandle: HCkEmail);
procedure CkEmail_RemoveAttachmentPaths(objHandle: HCkEmail);
procedure CkEmail_RemoveHeaderField(objHandle: HCkEmail; fieldName: PWideChar);
procedure CkEmail_RemoveHtmlAlternative(objHandle: HCkEmail);
procedure CkEmail_RemovePlainTextAlternative(objHandle: HCkEmail);
function CkEmail_SaveAllAttachments(objHandle: HCkEmail; dirPath: PWideChar): wordbool;
function CkEmail_SaveAttachedFile(objHandle: HCkEmail; index: Integer; dirPath: PWideChar): wordbool;
function CkEmail_SaveEml(objHandle: HCkEmail; emlFilePath: PWideChar): wordbool;
function CkEmail_SaveRelatedItem(objHandle: HCkEmail; index: Integer; dirPath: PWideChar): wordbool;
function CkEmail_SaveXml(objHandle: HCkEmail; path: PWideChar): wordbool;
function CkEmail_SetAttachmentCharset(objHandle: HCkEmail; index: Integer; charset: PWideChar): wordbool;
function CkEmail_SetAttachmentDisposition(objHandle: HCkEmail; index: Integer; disposition: PWideChar): wordbool;
function CkEmail_SetAttachmentFilename(objHandle: HCkEmail; index: Integer; filename: PWideChar): wordbool;
function CkEmail_SetBinaryBody(objHandle: HCkEmail; byteData: HCkByteData; contentType: PWideChar; disposition: PWideChar; filename: PWideChar): wordbool;
function CkEmail_SetBodyBd(objHandle: HCkEmail; bd: HCkBinData; contentType: PWideChar; disposition: PWideChar; filename: PWideChar): wordbool;
function CkEmail_SetDecryptCert(objHandle: HCkEmail; cert: HCkCert): wordbool;
function CkEmail_SetDecryptCert2(objHandle: HCkEmail; cert: HCkCert; key: HCkPrivateKey): wordbool;
function CkEmail_SetDt(objHandle: HCkEmail; dt: HCkDateTime): wordbool;
procedure CkEmail_SetEdifactBody(objHandle: HCkEmail; message: PWideChar; name: PWideChar; filename: PWideChar; charset: PWideChar);
function CkEmail_SetEncryptCert(objHandle: HCkEmail; cert: HCkCert): wordbool;
function CkEmail_SetFromMimeBd(objHandle: HCkEmail; bindat: HCkBinData): wordbool;
function CkEmail_SetFromMimeBytes(objHandle: HCkEmail; mimeBytes: HCkByteData): wordbool;
function CkEmail_SetFromMimeBytes2(objHandle: HCkEmail; mimeBytes: HCkByteData; charset: PWideChar): wordbool;
function CkEmail_SetFromMimeSb(objHandle: HCkEmail; sb: HCkStringBuilder): wordbool;
function CkEmail_SetFromMimeText(objHandle: HCkEmail; mimeText: PWideChar): wordbool;
function CkEmail_SetFromXmlText(objHandle: HCkEmail; xmlStr: PWideChar): wordbool;
procedure CkEmail_SetHtmlBody(objHandle: HCkEmail; html: PWideChar);
function CkEmail_SetMbHtmlBody(objHandle: HCkEmail; charset: PWideChar; inData: HCkByteData): wordbool;
function CkEmail_SetMbPlainTextBody(objHandle: HCkEmail; charset: PWideChar; inData: HCkByteData): wordbool;
function CkEmail_SetRelatedFilename(objHandle: HCkEmail; index: Integer; path: PWideChar): wordbool;
function CkEmail_SetReplacePattern(objHandle: HCkEmail; pattern: PWideChar; replaceString: PWideChar): wordbool;
function CkEmail_SetSigningCert(objHandle: HCkEmail; cert: HCkCert): wordbool;
function CkEmail_SetSigningCert2(objHandle: HCkEmail; cert: HCkCert; key: HCkPrivateKey): wordbool;
procedure CkEmail_SetTextBody(objHandle: HCkEmail; bodyText: PWideChar; contentType: PWideChar);
function CkEmail_ToDsn(objHandle: HCkEmail; explanation: PWideChar; statusFields: PWideChar; headerOnly: wordbool; dsnEmail: HCkEmail): wordbool;
function CkEmail_ToForward(objHandle: HCkEmail; forward: HCkEmail): wordbool;
function CkEmail_ToMdn(objHandle: HCkEmail; message: PWideChar; statusFields: PWideChar; headerOnly: wordbool; mdn: HCkEmail): wordbool;
function CkEmail_ToReply(objHandle: HCkEmail; reply: HCkEmail): wordbool;
function CkEmail_UidlEquals(objHandle: HCkEmail; e: HCkEmail): wordbool;
function CkEmail_UnpackHtml(objHandle: HCkEmail; unpackDir: PWideChar; htmlFilename: PWideChar; partsSubdir: PWideChar): wordbool;
procedure CkEmail_UnSpamify(objHandle: HCkEmail);
function CkEmail_UnzipAttachments(objHandle: HCkEmail): wordbool;
function CkEmail_UseCertVault(objHandle: HCkEmail; vault: HCkXmlCertVault): wordbool;
function CkEmail_ZipAttachments(objHandle: HCkEmail; zipFilename: PWideChar): wordbool;
implementation

      // Delphi7
{$IF Compilerversion = 15}
      uses Windows, SysUtils, ckDllLoader;
{$ELSE}
      uses Winapi.Windows, System.SysUtils, ckDllLoader;
{$IFEND}

Type
  TCkEmail_Create = function : HCkEmail; stdcall;
  TCkEmail_Dispose = procedure (handle: HCkEmail); stdcall;
  TCkEmail_getBody = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putBody = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__body = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getBounceAddress = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putBounceAddress = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__bounceAddress = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getCharset = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putCharset = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__charset = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getDebugLogFilePath = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putDebugLogFilePath = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__debugLogFilePath = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getDecrypted = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_getEmailDateStr = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putEmailDateStr = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__emailDateStr = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getEncryptedBy = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail__encryptedBy = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getFileDistList = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putFileDistList = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__fileDistList = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getFrom = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putFrom = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__from = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getFromAddress = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putFromAddress = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__fromAddress = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getFromName = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putFromName = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__fromName = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getHeader = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail__header = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getLanguage = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail__language = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getLastErrorHtml = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail__lastErrorHtml = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getLastErrorText = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail__lastErrorText = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getLastErrorXml = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail__lastErrorXml = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getLastMethodSuccess = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_putLastMethodSuccess = procedure (objHandle: HCkEmail; newPropVal: wordbool); stdcall;
  TCkEmail_getLocalDateStr = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putLocalDateStr = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__localDateStr = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getMailer = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putMailer = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__mailer = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getNumAlternatives = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getNumAttachedMessages = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getNumAttachments = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getNumBcc = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getNumCC = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getNumDaysOld = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getNumDigests = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getNumHeaderFields = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getNumRelatedItems = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getNumReplacePatterns = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getNumReports = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getNumTo = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getOaepHash = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putOaepHash = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__oaepHash = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getOaepMgfHash = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putOaepMgfHash = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__oaepMgfHash = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getOaepPadding = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_putOaepPadding = procedure (objHandle: HCkEmail; newPropVal: wordbool); stdcall;
  TCkEmail_getOverwriteExisting = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_putOverwriteExisting = procedure (objHandle: HCkEmail; newPropVal: wordbool); stdcall;
  TCkEmail_getPkcs7CryptAlg = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putPkcs7CryptAlg = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__pkcs7CryptAlg = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getPkcs7KeyLength = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_putPkcs7KeyLength = procedure (objHandle: HCkEmail; newPropVal: Integer); stdcall;
  TCkEmail_getPreferredCharset = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putPreferredCharset = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__preferredCharset = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getPrependHeaders = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_putPrependHeaders = procedure (objHandle: HCkEmail; newPropVal: wordbool); stdcall;
  TCkEmail_getReceivedEncrypted = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_getReceivedSigned = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_getReplyTo = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putReplyTo = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__replyTo = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getReturnReceipt = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_putReturnReceipt = procedure (objHandle: HCkEmail; newPropVal: wordbool); stdcall;
  TCkEmail_getSendEncrypted = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_putSendEncrypted = procedure (objHandle: HCkEmail; newPropVal: wordbool); stdcall;
  TCkEmail_getSendSigned = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_putSendSigned = procedure (objHandle: HCkEmail; newPropVal: wordbool); stdcall;
  TCkEmail_getSignaturesValid = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_getSignedBy = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail__signedBy = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getSigningAlg = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putSigningAlg = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__signingAlg = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getSigningHashAlg = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putSigningHashAlg = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__signingHashAlg = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getSize = function (objHandle: HCkEmail): Integer; stdcall;
  TCkEmail_getSubject = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putSubject = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__subject = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getUidl = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail__uidl = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getUncommonOptions = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail_putUncommonOptions = procedure (objHandle: HCkEmail; newPropVal: PWideChar); stdcall;
  TCkEmail__uncommonOptions = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_getUnpackUseRelPaths = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_putUnpackUseRelPaths = procedure (objHandle: HCkEmail; newPropVal: wordbool); stdcall;
  TCkEmail_getVerboseLogging = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_putVerboseLogging = procedure (objHandle: HCkEmail; newPropVal: wordbool); stdcall;
  TCkEmail_getVersion = procedure (objHandle: HCkEmail; outPropVal: HCkString); stdcall;
  TCkEmail__version = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_AddAttachmentBd = function (objHandle: HCkEmail; filename: PWideChar; binData: HCkBinData; contentType: PWideChar): wordbool; stdcall;
  TCkEmail_AddAttachmentHeader = procedure (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; fieldValue: PWideChar); stdcall;
  TCkEmail_AddBcc = function (objHandle: HCkEmail; friendlyName: PWideChar; emailAddress: PWideChar): wordbool; stdcall;
  TCkEmail_AddCC = function (objHandle: HCkEmail; friendlyName: PWideChar; emailAddress: PWideChar): wordbool; stdcall;
  TCkEmail_AddDataAttachment = function (objHandle: HCkEmail; fileName: PWideChar; content: HCkByteData): wordbool; stdcall;
  TCkEmail_AddDataAttachment2 = function (objHandle: HCkEmail; fileName: PWideChar; content: HCkByteData; contentType: PWideChar): wordbool; stdcall;
  TCkEmail_AddEncryptCert = function (objHandle: HCkEmail; cert: HCkCert): wordbool; stdcall;
  TCkEmail_AddFileAttachment = function (objHandle: HCkEmail; path: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__addFileAttachment = function (objHandle: HCkEmail; path: PWideChar): PWideChar; stdcall;
  TCkEmail_AddFileAttachment2 = function (objHandle: HCkEmail; path: PWideChar; contentType: PWideChar): wordbool; stdcall;
  TCkEmail_AddHeaderField = procedure (objHandle: HCkEmail; fieldName: PWideChar; fieldValue: PWideChar); stdcall;
  TCkEmail_AddHeaderField2 = procedure (objHandle: HCkEmail; fieldName: PWideChar; fieldValue: PWideChar); stdcall;
  TCkEmail_AddHtmlAlternativeBody = function (objHandle: HCkEmail; body: PWideChar): wordbool; stdcall;
  TCkEmail_AddiCalendarAlternativeBody = function (objHandle: HCkEmail; icalContent: PWideChar; methodName: PWideChar): wordbool; stdcall;
  TCkEmail_AddMultipleBcc = function (objHandle: HCkEmail; commaSeparatedAddresses: PWideChar): wordbool; stdcall;
  TCkEmail_AddMultipleCC = function (objHandle: HCkEmail; commaSeparatedAddresses: PWideChar): wordbool; stdcall;
  TCkEmail_AddMultipleTo = function (objHandle: HCkEmail; commaSeparatedAddresses: PWideChar): wordbool; stdcall;
  TCkEmail_AddPfxSourceBd = function (objHandle: HCkEmail; bd: HCkBinData; password: PWideChar): wordbool; stdcall;
  TCkEmail_AddPfxSourceData = function (objHandle: HCkEmail; pfxBytes: HCkByteData; pfxPassword: PWideChar): wordbool; stdcall;
  TCkEmail_AddPfxSourceFile = function (objHandle: HCkEmail; pfxFilePath: PWideChar; pfxPassword: PWideChar): wordbool; stdcall;
  TCkEmail_AddPlainTextAlternativeBody = function (objHandle: HCkEmail; body: PWideChar): wordbool; stdcall;
  TCkEmail_AddRelatedBd = function (objHandle: HCkEmail; filename: PWideChar; binData: HCkBinData; outStr: HCkString): wordbool; stdcall;
  TCkEmail__addRelatedBd = function (objHandle: HCkEmail; filename: PWideChar; binData: HCkBinData): PWideChar; stdcall;
  TCkEmail_AddRelatedBd2 = function (objHandle: HCkEmail; binData: HCkBinData; fileNameInHtml: PWideChar): wordbool; stdcall;
  TCkEmail_AddRelatedData = function (objHandle: HCkEmail; fileName: PWideChar; inData: HCkByteData; outStr: HCkString): wordbool; stdcall;
  TCkEmail__addRelatedData = function (objHandle: HCkEmail; fileName: PWideChar; inData: HCkByteData): PWideChar; stdcall;
  TCkEmail_AddRelatedData2 = procedure (objHandle: HCkEmail; inData: HCkByteData; fileNameInHtml: PWideChar); stdcall;
  TCkEmail_AddRelatedFile = function (objHandle: HCkEmail; path: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__addRelatedFile = function (objHandle: HCkEmail; path: PWideChar): PWideChar; stdcall;
  TCkEmail_AddRelatedFile2 = function (objHandle: HCkEmail; filenameOnDisk: PWideChar; filenameInHtml: PWideChar): wordbool; stdcall;
  TCkEmail_AddRelatedHeader = procedure (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; fieldValue: PWideChar); stdcall;
  TCkEmail_AddRelatedString = function (objHandle: HCkEmail; nameInHtml: PWideChar; str: PWideChar; charset: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__addRelatedString = function (objHandle: HCkEmail; nameInHtml: PWideChar; str: PWideChar; charset: PWideChar): PWideChar; stdcall;
  TCkEmail_AddRelatedString2 = procedure (objHandle: HCkEmail; fileNameInHtml: PWideChar; content: PWideChar; charset: PWideChar); stdcall;
  TCkEmail_AddStringAttachment = function (objHandle: HCkEmail; path: PWideChar; content: PWideChar): wordbool; stdcall;
  TCkEmail_AddStringAttachment2 = function (objHandle: HCkEmail; path: PWideChar; content: PWideChar; charset: PWideChar): wordbool; stdcall;
  TCkEmail_AddTo = function (objHandle: HCkEmail; friendlyName: PWideChar; emailAddress: PWideChar): wordbool; stdcall;
  TCkEmail_AesDecrypt = function (objHandle: HCkEmail; password: PWideChar): wordbool; stdcall;
  TCkEmail_AesEncrypt = function (objHandle: HCkEmail; password: PWideChar): wordbool; stdcall;
  TCkEmail_AppendToBody = procedure (objHandle: HCkEmail; str: PWideChar); stdcall;
  TCkEmail_ApplyFixups = function (objHandle: HCkEmail; fixups: PWideChar): wordbool; stdcall;
  TCkEmail_AspUnpack = function (objHandle: HCkEmail; prefix: PWideChar; saveDir: PWideChar; urlPath: PWideChar; cleanFiles: wordbool): wordbool; stdcall;
  TCkEmail_AspUnpack2 = function (objHandle: HCkEmail; prefix: PWideChar; saveDir: PWideChar; urlPath: PWideChar; cleanFiles: wordbool; outData: HCkByteData): wordbool; stdcall;
  TCkEmail_AttachEmail = function (objHandle: HCkEmail; email: HCkEmail): wordbool; stdcall;
  TCkEmail_AttachMessage = function (objHandle: HCkEmail; mimeBytes: HCkByteData): wordbool; stdcall;
  TCkEmail_BEncodeBytes = function (objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__bEncodeBytes = function (objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar): PWideChar; stdcall;
  TCkEmail_BEncodeString = function (objHandle: HCkEmail; str: PWideChar; charset: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__bEncodeString = function (objHandle: HCkEmail; str: PWideChar; charset: PWideChar): PWideChar; stdcall;
  TCkEmail_Clear = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_ClearBcc = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_ClearCC = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_ClearEncryptCerts = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_ClearTo = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_Clone = function (objHandle: HCkEmail): HCkEmail; stdcall;
  TCkEmail_ComputeGlobalKey2 = function (objHandle: HCkEmail; encoding: PWideChar; bFold: wordbool; outStr: HCkString): wordbool; stdcall;
  TCkEmail__computeGlobalKey2 = function (objHandle: HCkEmail; encoding: PWideChar; bFold: wordbool): PWideChar; stdcall;
  TCkEmail_ConvertInlineImages = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_CreateDsn = function (objHandle: HCkEmail; humanReadableMessage: PWideChar; xmlStatusFields: PWideChar; bHeaderOnly: wordbool): HCkEmail; stdcall;
  TCkEmail_CreateForward = function (objHandle: HCkEmail): HCkEmail; stdcall;
  TCkEmail_CreateMdn = function (objHandle: HCkEmail; humanReadableMessage: PWideChar; xmlStatusFields: PWideChar; bHeaderOnly: wordbool): HCkEmail; stdcall;
  TCkEmail_CreateReply = function (objHandle: HCkEmail): HCkEmail; stdcall;
  TCkEmail_CreateTempMht = function (objHandle: HCkEmail; inFilename: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__createTempMht = function (objHandle: HCkEmail; inFilename: PWideChar): PWideChar; stdcall;
  TCkEmail_DropAttachments = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_DropRelatedItem = procedure (objHandle: HCkEmail; index: Integer); stdcall;
  TCkEmail_DropRelatedItems = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_DropSingleAttachment = function (objHandle: HCkEmail; index: Integer): wordbool; stdcall;
  TCkEmail_FindIssuer = function (objHandle: HCkEmail; cert: HCkCert): HCkCert; stdcall;
  TCkEmail_GenerateFilename = function (objHandle: HCkEmail; outStr: HCkString): wordbool; stdcall;
  TCkEmail__generateFilename = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_GetAlternativeBody = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAlternativeBody = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetAlternativeBodyBd = function (objHandle: HCkEmail; index: Integer; binData: HCkBinData): wordbool; stdcall;
  TCkEmail_GetAlternativeBodyByContentType = function (objHandle: HCkEmail; contentType: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAlternativeBodyByContentType = function (objHandle: HCkEmail; contentType: PWideChar): PWideChar; stdcall;
  TCkEmail_GetAlternativeContentType = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAlternativeContentType = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetAltHeaderField = function (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAltHeaderField = function (objHandle: HCkEmail; index: Integer; fieldName: PWideChar): PWideChar; stdcall;
  TCkEmail_GetAttachedEmail = function (objHandle: HCkEmail; index: Integer; email: HCkEmail): wordbool; stdcall;
  TCkEmail_GetAttachedMessage = function (objHandle: HCkEmail; index: Integer): HCkEmail; stdcall;
  TCkEmail_GetAttachedMessageAttr = function (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAttachedMessageAttr = function (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar): PWideChar; stdcall;
  TCkEmail_GetAttachedMessageFilename = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAttachedMessageFilename = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetAttachmentAttr = function (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAttachmentAttr = function (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar): PWideChar; stdcall;
  TCkEmail_GetAttachmentBd = function (objHandle: HCkEmail; index: Integer; binData: HCkBinData): wordbool; stdcall;
  TCkEmail_GetAttachmentContentID = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAttachmentContentID = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetAttachmentContentType = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAttachmentContentType = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetAttachmentData = function (objHandle: HCkEmail; index: Integer; outData: HCkByteData): wordbool; stdcall;
  TCkEmail_GetAttachmentFilename = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAttachmentFilename = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetAttachmentHeader = function (objHandle: HCkEmail; attachIndex: Integer; fieldName: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAttachmentHeader = function (objHandle: HCkEmail; attachIndex: Integer; fieldName: PWideChar): PWideChar; stdcall;
  TCkEmail_GetAttachmentSize = function (objHandle: HCkEmail; index: Integer): Integer; stdcall;
  TCkEmail_GetAttachmentString = function (objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAttachmentString = function (objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar; stdcall;
  TCkEmail_GetAttachmentStringCrLf = function (objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getAttachmentStringCrLf = function (objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar; stdcall;
  TCkEmail_GetBcc = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getBcc = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetBccAddr = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getBccAddr = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetBccName = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getBccName = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetCC = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getCC = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetCcAddr = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getCcAddr = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetCcName = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getCcName = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetDeliveryStatusInfo = function (objHandle: HCkEmail; fieldName: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getDeliveryStatusInfo = function (objHandle: HCkEmail; fieldName: PWideChar): PWideChar; stdcall;
  TCkEmail_GetDigest = function (objHandle: HCkEmail; index: Integer): HCkEmail; stdcall;
  TCkEmail_GetDigestEmail = function (objHandle: HCkEmail; index: Integer; email: HCkEmail): wordbool; stdcall;
  TCkEmail_GetDsnFinalRecipients = function (objHandle: HCkEmail): HCkStringArray; stdcall;
  TCkEmail_GetDsnInfo = function (objHandle: HCkEmail; json: HCkJsonObject): wordbool; stdcall;
  TCkEmail_GetDt = function (objHandle: HCkEmail): HCkDateTime; stdcall;
  TCkEmail_GetEncryptCert = function (objHandle: HCkEmail): HCkCert; stdcall;
  TCkEmail_GetEncryptedByCert = function (objHandle: HCkEmail): HCkCert; stdcall;
  TCkEmail_GetFileContent = function (objHandle: HCkEmail; path: PWideChar; outData: HCkByteData): wordbool; stdcall;
  TCkEmail_GetHeaderField = function (objHandle: HCkEmail; fieldName: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getHeaderField = function (objHandle: HCkEmail; fieldName: PWideChar): PWideChar; stdcall;
  TCkEmail_GetHeaderFieldName = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getHeaderFieldName = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetHeaderFieldValue = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getHeaderFieldValue = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetHtmlBody = function (objHandle: HCkEmail; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getHtmlBody = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_GetHtmlBodySb = function (objHandle: HCkEmail; inlineImageData: wordbool; sb: HCkStringBuilder): wordbool; stdcall;
  TCkEmail_GetImapUid = function (objHandle: HCkEmail): LongWord; stdcall;
  TCkEmail_GetLinkedDomains = function (objHandle: HCkEmail): HCkStringArray; stdcall;
  TCkEmail_GetMime = function (objHandle: HCkEmail; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getMime = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_GetMimeBd = function (objHandle: HCkEmail; bindat: HCkBinData): wordbool; stdcall;
  TCkEmail_GetMimeBinary = function (objHandle: HCkEmail; outData: HCkByteData): wordbool; stdcall;
  TCkEmail_GetMimeSb = function (objHandle: HCkEmail; sb: HCkStringBuilder): wordbool; stdcall;
  TCkEmail_GetNthBinaryPartOfType = function (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; outData: HCkByteData): wordbool; stdcall;
  TCkEmail_GetNthBinaryPartOfTypeBd = function (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; bd: HCkBinData): wordbool; stdcall;
  TCkEmail_GetNthContentType = function (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getNthContentType = function (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool): PWideChar; stdcall;
  TCkEmail_GetNthTextPartOfType = function (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getNthTextPartOfType = function (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool): PWideChar; stdcall;
  TCkEmail_GetNumPartsOfType = function (objHandle: HCkEmail; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool): Integer; stdcall;
  TCkEmail_GetPlainTextBody = function (objHandle: HCkEmail; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getPlainTextBody = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_GetRelatedAttr = function (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getRelatedAttr = function (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar): PWideChar; stdcall;
  TCkEmail_GetRelatedContentID = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getRelatedContentID = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetRelatedContentLocation = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getRelatedContentLocation = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetRelatedContentType = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getRelatedContentType = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetRelatedData = function (objHandle: HCkEmail; index: Integer; outData: HCkByteData): wordbool; stdcall;
  TCkEmail_GetRelatedFilename = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getRelatedFilename = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetRelatedHeader = function (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getRelatedHeader = function (objHandle: HCkEmail; index: Integer; fieldName: PWideChar): PWideChar; stdcall;
  TCkEmail_GetRelatedString = function (objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getRelatedString = function (objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar; stdcall;
  TCkEmail_GetRelatedStringCrLf = function (objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getRelatedStringCrLf = function (objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar; stdcall;
  TCkEmail_GetReplacePattern = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getReplacePattern = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetReplaceString = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getReplaceString = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetReplaceString2 = function (objHandle: HCkEmail; pattern: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getReplaceString2 = function (objHandle: HCkEmail; pattern: PWideChar): PWideChar; stdcall;
  TCkEmail_GetReport = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getReport = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetSignedByCert = function (objHandle: HCkEmail): HCkCert; stdcall;
  TCkEmail_GetSignedByCertChain = function (objHandle: HCkEmail): HCkCertChain; stdcall;
  TCkEmail_GetSigningCert = function (objHandle: HCkEmail): HCkCert; stdcall;
  TCkEmail_GetTo = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getTo = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetToAddr = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getToAddr = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetToName = function (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getToName = function (objHandle: HCkEmail; index: Integer): PWideChar; stdcall;
  TCkEmail_GetXml = function (objHandle: HCkEmail; outStr: HCkString): wordbool; stdcall;
  TCkEmail__getXml = function (objHandle: HCkEmail): PWideChar; stdcall;
  TCkEmail_HasHeaderMatching = function (objHandle: HCkEmail; fieldName: PWideChar; valuePattern: PWideChar; caseSensitive: wordbool): wordbool; stdcall;
  TCkEmail_HasHtmlBody = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_HasPlainTextBody = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_IsMultipartReport = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_LastDecryptCert = function (objHandle: HCkEmail; cert: HCkCert): wordbool; stdcall;
  TCkEmail_LastSignerCert = function (objHandle: HCkEmail; index: Integer; cert: HCkCert): wordbool; stdcall;
  TCkEmail_LinkedDomains = function (objHandle: HCkEmail; domains: HCkStringTable): wordbool; stdcall;
  TCkEmail_LoadEml = function (objHandle: HCkEmail; mimePath: PWideChar): wordbool; stdcall;
  TCkEmail_LoadTaskResult = function (objHandle: HCkEmail; task: HCkTask): wordbool; stdcall;
  TCkEmail_LoadXml = function (objHandle: HCkEmail; xmlPath: PWideChar): wordbool; stdcall;
  TCkEmail_LoadXmlString = function (objHandle: HCkEmail; xmlStr: PWideChar): wordbool; stdcall;
  TCkEmail_MakeCopy = function (objHandle: HCkEmail; destEmail: HCkEmail): wordbool; stdcall;
  TCkEmail_QEncodeBytes = function (objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__qEncodeBytes = function (objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar): PWideChar; stdcall;
  TCkEmail_QEncodeString = function (objHandle: HCkEmail; str: PWideChar; charset: PWideChar; outStr: HCkString): wordbool; stdcall;
  TCkEmail__qEncodeString = function (objHandle: HCkEmail; str: PWideChar; charset: PWideChar): PWideChar; stdcall;
  TCkEmail_RemoveAttachedMessage = procedure (objHandle: HCkEmail; idx: Integer); stdcall;
  TCkEmail_RemoveAttachedMessages = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_RemoveAttachmentPaths = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_RemoveHeaderField = procedure (objHandle: HCkEmail; fieldName: PWideChar); stdcall;
  TCkEmail_RemoveHtmlAlternative = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_RemovePlainTextAlternative = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_SaveAllAttachments = function (objHandle: HCkEmail; dirPath: PWideChar): wordbool; stdcall;
  TCkEmail_SaveAttachedFile = function (objHandle: HCkEmail; index: Integer; dirPath: PWideChar): wordbool; stdcall;
  TCkEmail_SaveEml = function (objHandle: HCkEmail; emlFilePath: PWideChar): wordbool; stdcall;
  TCkEmail_SaveRelatedItem = function (objHandle: HCkEmail; index: Integer; dirPath: PWideChar): wordbool; stdcall;
  TCkEmail_SaveXml = function (objHandle: HCkEmail; path: PWideChar): wordbool; stdcall;
  TCkEmail_SetAttachmentCharset = function (objHandle: HCkEmail; index: Integer; charset: PWideChar): wordbool; stdcall;
  TCkEmail_SetAttachmentDisposition = function (objHandle: HCkEmail; index: Integer; disposition: PWideChar): wordbool; stdcall;
  TCkEmail_SetAttachmentFilename = function (objHandle: HCkEmail; index: Integer; filename: PWideChar): wordbool; stdcall;
  TCkEmail_SetBinaryBody = function (objHandle: HCkEmail; byteData: HCkByteData; contentType: PWideChar; disposition: PWideChar; filename: PWideChar): wordbool; stdcall;
  TCkEmail_SetBodyBd = function (objHandle: HCkEmail; bd: HCkBinData; contentType: PWideChar; disposition: PWideChar; filename: PWideChar): wordbool; stdcall;
  TCkEmail_SetDecryptCert = function (objHandle: HCkEmail; cert: HCkCert): wordbool; stdcall;
  TCkEmail_SetDecryptCert2 = function (objHandle: HCkEmail; cert: HCkCert; key: HCkPrivateKey): wordbool; stdcall;
  TCkEmail_SetDt = function (objHandle: HCkEmail; dt: HCkDateTime): wordbool; stdcall;
  TCkEmail_SetEdifactBody = procedure (objHandle: HCkEmail; message: PWideChar; name: PWideChar; filename: PWideChar; charset: PWideChar); stdcall;
  TCkEmail_SetEncryptCert = function (objHandle: HCkEmail; cert: HCkCert): wordbool; stdcall;
  TCkEmail_SetFromMimeBd = function (objHandle: HCkEmail; bindat: HCkBinData): wordbool; stdcall;
  TCkEmail_SetFromMimeBytes = function (objHandle: HCkEmail; mimeBytes: HCkByteData): wordbool; stdcall;
  TCkEmail_SetFromMimeBytes2 = function (objHandle: HCkEmail; mimeBytes: HCkByteData; charset: PWideChar): wordbool; stdcall;
  TCkEmail_SetFromMimeSb = function (objHandle: HCkEmail; sb: HCkStringBuilder): wordbool; stdcall;
  TCkEmail_SetFromMimeText = function (objHandle: HCkEmail; mimeText: PWideChar): wordbool; stdcall;
  TCkEmail_SetFromXmlText = function (objHandle: HCkEmail; xmlStr: PWideChar): wordbool; stdcall;
  TCkEmail_SetHtmlBody = procedure (objHandle: HCkEmail; html: PWideChar); stdcall;
  TCkEmail_SetMbHtmlBody = function (objHandle: HCkEmail; charset: PWideChar; inData: HCkByteData): wordbool; stdcall;
  TCkEmail_SetMbPlainTextBody = function (objHandle: HCkEmail; charset: PWideChar; inData: HCkByteData): wordbool; stdcall;
  TCkEmail_SetRelatedFilename = function (objHandle: HCkEmail; index: Integer; path: PWideChar): wordbool; stdcall;
  TCkEmail_SetReplacePattern = function (objHandle: HCkEmail; pattern: PWideChar; replaceString: PWideChar): wordbool; stdcall;
  TCkEmail_SetSigningCert = function (objHandle: HCkEmail; cert: HCkCert): wordbool; stdcall;
  TCkEmail_SetSigningCert2 = function (objHandle: HCkEmail; cert: HCkCert; key: HCkPrivateKey): wordbool; stdcall;
  TCkEmail_SetTextBody = procedure (objHandle: HCkEmail; bodyText: PWideChar; contentType: PWideChar); stdcall;
  TCkEmail_ToDsn = function (objHandle: HCkEmail; explanation: PWideChar; statusFields: PWideChar; headerOnly: wordbool; dsnEmail: HCkEmail): wordbool; stdcall;
  TCkEmail_ToForward = function (objHandle: HCkEmail; forward: HCkEmail): wordbool; stdcall;
  TCkEmail_ToMdn = function (objHandle: HCkEmail; message: PWideChar; statusFields: PWideChar; headerOnly: wordbool; mdn: HCkEmail): wordbool; stdcall;
  TCkEmail_ToReply = function (objHandle: HCkEmail; reply: HCkEmail): wordbool; stdcall;
  TCkEmail_UidlEquals = function (objHandle: HCkEmail; e: HCkEmail): wordbool; stdcall;
  TCkEmail_UnpackHtml = function (objHandle: HCkEmail; unpackDir: PWideChar; htmlFilename: PWideChar; partsSubdir: PWideChar): wordbool; stdcall;
  TCkEmail_UnSpamify = procedure (objHandle: HCkEmail); stdcall;
  TCkEmail_UnzipAttachments = function (objHandle: HCkEmail): wordbool; stdcall;
  TCkEmail_UseCertVault = function (objHandle: HCkEmail; vault: HCkXmlCertVault): wordbool; stdcall;
  TCkEmail_ZipAttachments = function (objHandle: HCkEmail; zipFilename: PWideChar): wordbool; stdcall;

var
  _fkt_ptr_arr:   array [0..363] of Pointer;

function _Map( k:Integer; n:String):Pointer;
begin
  Result:=  _fkt_ptr_arr[k];
  if Result = nil then begin
    Chilkat_GetProcedureAddress(Result, n);
    _fkt_ptr_arr[k]:=   Result;
  end;
end;


function CkEmail_Create : HCkEmail;
begin
  result := TCkEmail_Create(_map(0, 'CkEmail_Create'));
end;

procedure CkEmail_Dispose (handle: HCkEmail);
begin
  TCkEmail_Dispose(_map(1, 'CkEmail_Dispose'))
    (handle);
end;


procedure CkEmail_getBody (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getBody(_map(2, 'CkEmail_getBody'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putBody (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putBody(_map(3, 'CkEmail_putBody'))
    (objHandle, newPropVal);
end;

function CkEmail__body (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__body(_map(4, 'CkEmail__body'))
    (objHandle);
end;

procedure CkEmail_getBounceAddress (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getBounceAddress(_map(5, 'CkEmail_getBounceAddress'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putBounceAddress (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putBounceAddress(_map(6, 'CkEmail_putBounceAddress'))
    (objHandle, newPropVal);
end;

function CkEmail__bounceAddress (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__bounceAddress(_map(7, 'CkEmail__bounceAddress'))
    (objHandle);
end;

procedure CkEmail_getCharset (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getCharset(_map(8, 'CkEmail_getCharset'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putCharset (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putCharset(_map(9, 'CkEmail_putCharset'))
    (objHandle, newPropVal);
end;

function CkEmail__charset (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__charset(_map(10, 'CkEmail__charset'))
    (objHandle);
end;

procedure CkEmail_getDebugLogFilePath (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getDebugLogFilePath(_map(11, 'CkEmail_getDebugLogFilePath'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putDebugLogFilePath (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putDebugLogFilePath(_map(12, 'CkEmail_putDebugLogFilePath'))
    (objHandle, newPropVal);
end;

function CkEmail__debugLogFilePath (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__debugLogFilePath(_map(13, 'CkEmail__debugLogFilePath'))
    (objHandle);
end;

function CkEmail_getDecrypted (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getDecrypted(_map(14, 'CkEmail_getDecrypted'))
    (objHandle);
end;

procedure CkEmail_getEmailDateStr (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getEmailDateStr(_map(15, 'CkEmail_getEmailDateStr'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putEmailDateStr (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putEmailDateStr(_map(16, 'CkEmail_putEmailDateStr'))
    (objHandle, newPropVal);
end;

function CkEmail__emailDateStr (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__emailDateStr(_map(17, 'CkEmail__emailDateStr'))
    (objHandle);
end;

procedure CkEmail_getEncryptedBy (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getEncryptedBy(_map(18, 'CkEmail_getEncryptedBy'))
    (objHandle, outPropVal);
end;

function CkEmail__encryptedBy (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__encryptedBy(_map(19, 'CkEmail__encryptedBy'))
    (objHandle);
end;

procedure CkEmail_getFileDistList (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getFileDistList(_map(20, 'CkEmail_getFileDistList'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putFileDistList (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putFileDistList(_map(21, 'CkEmail_putFileDistList'))
    (objHandle, newPropVal);
end;

function CkEmail__fileDistList (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__fileDistList(_map(22, 'CkEmail__fileDistList'))
    (objHandle);
end;

procedure CkEmail_getFrom (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getFrom(_map(23, 'CkEmail_getFrom'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putFrom (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putFrom(_map(24, 'CkEmail_putFrom'))
    (objHandle, newPropVal);
end;

function CkEmail__from (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__from(_map(25, 'CkEmail__from'))
    (objHandle);
end;

procedure CkEmail_getFromAddress (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getFromAddress(_map(26, 'CkEmail_getFromAddress'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putFromAddress (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putFromAddress(_map(27, 'CkEmail_putFromAddress'))
    (objHandle, newPropVal);
end;

function CkEmail__fromAddress (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__fromAddress(_map(28, 'CkEmail__fromAddress'))
    (objHandle);
end;

procedure CkEmail_getFromName (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getFromName(_map(29, 'CkEmail_getFromName'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putFromName (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putFromName(_map(30, 'CkEmail_putFromName'))
    (objHandle, newPropVal);
end;

function CkEmail__fromName (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__fromName(_map(31, 'CkEmail__fromName'))
    (objHandle);
end;

procedure CkEmail_getHeader (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getHeader(_map(32, 'CkEmail_getHeader'))
    (objHandle, outPropVal);
end;

function CkEmail__header (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__header(_map(33, 'CkEmail__header'))
    (objHandle);
end;

procedure CkEmail_getLanguage (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getLanguage(_map(34, 'CkEmail_getLanguage'))
    (objHandle, outPropVal);
end;

function CkEmail__language (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__language(_map(35, 'CkEmail__language'))
    (objHandle);
end;

procedure CkEmail_getLastErrorHtml (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getLastErrorHtml(_map(36, 'CkEmail_getLastErrorHtml'))
    (objHandle, outPropVal);
end;

function CkEmail__lastErrorHtml (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__lastErrorHtml(_map(37, 'CkEmail__lastErrorHtml'))
    (objHandle);
end;

procedure CkEmail_getLastErrorText (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getLastErrorText(_map(38, 'CkEmail_getLastErrorText'))
    (objHandle, outPropVal);
end;

function CkEmail__lastErrorText (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__lastErrorText(_map(39, 'CkEmail__lastErrorText'))
    (objHandle);
end;

procedure CkEmail_getLastErrorXml (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getLastErrorXml(_map(40, 'CkEmail_getLastErrorXml'))
    (objHandle, outPropVal);
end;

function CkEmail__lastErrorXml (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__lastErrorXml(_map(41, 'CkEmail__lastErrorXml'))
    (objHandle);
end;

function CkEmail_getLastMethodSuccess (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getLastMethodSuccess(_map(42, 'CkEmail_getLastMethodSuccess'))
    (objHandle);
end;

procedure CkEmail_putLastMethodSuccess (objHandle: HCkEmail; newPropVal: wordbool);
begin
  TCkEmail_putLastMethodSuccess(_map(43, 'CkEmail_putLastMethodSuccess'))
    (objHandle, newPropVal);
end;

procedure CkEmail_getLocalDateStr (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getLocalDateStr(_map(44, 'CkEmail_getLocalDateStr'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putLocalDateStr (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putLocalDateStr(_map(45, 'CkEmail_putLocalDateStr'))
    (objHandle, newPropVal);
end;

function CkEmail__localDateStr (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__localDateStr(_map(46, 'CkEmail__localDateStr'))
    (objHandle);
end;

procedure CkEmail_getMailer (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getMailer(_map(47, 'CkEmail_getMailer'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putMailer (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putMailer(_map(48, 'CkEmail_putMailer'))
    (objHandle, newPropVal);
end;

function CkEmail__mailer (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__mailer(_map(49, 'CkEmail__mailer'))
    (objHandle);
end;

function CkEmail_getNumAlternatives (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumAlternatives(_map(50, 'CkEmail_getNumAlternatives'))
    (objHandle);
end;

function CkEmail_getNumAttachedMessages (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumAttachedMessages(_map(51, 'CkEmail_getNumAttachedMessages'))
    (objHandle);
end;

function CkEmail_getNumAttachments (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumAttachments(_map(52, 'CkEmail_getNumAttachments'))
    (objHandle);
end;

function CkEmail_getNumBcc (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumBcc(_map(53, 'CkEmail_getNumBcc'))
    (objHandle);
end;

function CkEmail_getNumCC (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumCC(_map(54, 'CkEmail_getNumCC'))
    (objHandle);
end;

function CkEmail_getNumDaysOld (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumDaysOld(_map(55, 'CkEmail_getNumDaysOld'))
    (objHandle);
end;

function CkEmail_getNumDigests (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumDigests(_map(56, 'CkEmail_getNumDigests'))
    (objHandle);
end;

function CkEmail_getNumHeaderFields (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumHeaderFields(_map(57, 'CkEmail_getNumHeaderFields'))
    (objHandle);
end;

function CkEmail_getNumRelatedItems (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumRelatedItems(_map(58, 'CkEmail_getNumRelatedItems'))
    (objHandle);
end;

function CkEmail_getNumReplacePatterns (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumReplacePatterns(_map(59, 'CkEmail_getNumReplacePatterns'))
    (objHandle);
end;

function CkEmail_getNumReports (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumReports(_map(60, 'CkEmail_getNumReports'))
    (objHandle);
end;

function CkEmail_getNumTo (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getNumTo(_map(61, 'CkEmail_getNumTo'))
    (objHandle);
end;

procedure CkEmail_getOaepHash (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getOaepHash(_map(62, 'CkEmail_getOaepHash'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putOaepHash (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putOaepHash(_map(63, 'CkEmail_putOaepHash'))
    (objHandle, newPropVal);
end;

function CkEmail__oaepHash (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__oaepHash(_map(64, 'CkEmail__oaepHash'))
    (objHandle);
end;

procedure CkEmail_getOaepMgfHash (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getOaepMgfHash(_map(65, 'CkEmail_getOaepMgfHash'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putOaepMgfHash (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putOaepMgfHash(_map(66, 'CkEmail_putOaepMgfHash'))
    (objHandle, newPropVal);
end;

function CkEmail__oaepMgfHash (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__oaepMgfHash(_map(67, 'CkEmail__oaepMgfHash'))
    (objHandle);
end;

function CkEmail_getOaepPadding (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getOaepPadding(_map(68, 'CkEmail_getOaepPadding'))
    (objHandle);
end;

procedure CkEmail_putOaepPadding (objHandle: HCkEmail; newPropVal: wordbool);
begin
  TCkEmail_putOaepPadding(_map(69, 'CkEmail_putOaepPadding'))
    (objHandle, newPropVal);
end;

function CkEmail_getOverwriteExisting (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getOverwriteExisting(_map(70, 'CkEmail_getOverwriteExisting'))
    (objHandle);
end;

procedure CkEmail_putOverwriteExisting (objHandle: HCkEmail; newPropVal: wordbool);
begin
  TCkEmail_putOverwriteExisting(_map(71, 'CkEmail_putOverwriteExisting'))
    (objHandle, newPropVal);
end;

procedure CkEmail_getPkcs7CryptAlg (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getPkcs7CryptAlg(_map(72, 'CkEmail_getPkcs7CryptAlg'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putPkcs7CryptAlg (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putPkcs7CryptAlg(_map(73, 'CkEmail_putPkcs7CryptAlg'))
    (objHandle, newPropVal);
end;

function CkEmail__pkcs7CryptAlg (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__pkcs7CryptAlg(_map(74, 'CkEmail__pkcs7CryptAlg'))
    (objHandle);
end;

function CkEmail_getPkcs7KeyLength (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getPkcs7KeyLength(_map(75, 'CkEmail_getPkcs7KeyLength'))
    (objHandle);
end;

procedure CkEmail_putPkcs7KeyLength (objHandle: HCkEmail; newPropVal: Integer);
begin
  TCkEmail_putPkcs7KeyLength(_map(76, 'CkEmail_putPkcs7KeyLength'))
    (objHandle, newPropVal);
end;

procedure CkEmail_getPreferredCharset (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getPreferredCharset(_map(77, 'CkEmail_getPreferredCharset'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putPreferredCharset (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putPreferredCharset(_map(78, 'CkEmail_putPreferredCharset'))
    (objHandle, newPropVal);
end;

function CkEmail__preferredCharset (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__preferredCharset(_map(79, 'CkEmail__preferredCharset'))
    (objHandle);
end;

function CkEmail_getPrependHeaders (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getPrependHeaders(_map(80, 'CkEmail_getPrependHeaders'))
    (objHandle);
end;

procedure CkEmail_putPrependHeaders (objHandle: HCkEmail; newPropVal: wordbool);
begin
  TCkEmail_putPrependHeaders(_map(81, 'CkEmail_putPrependHeaders'))
    (objHandle, newPropVal);
end;

function CkEmail_getReceivedEncrypted (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getReceivedEncrypted(_map(82, 'CkEmail_getReceivedEncrypted'))
    (objHandle);
end;

function CkEmail_getReceivedSigned (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getReceivedSigned(_map(83, 'CkEmail_getReceivedSigned'))
    (objHandle);
end;

procedure CkEmail_getReplyTo (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getReplyTo(_map(84, 'CkEmail_getReplyTo'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putReplyTo (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putReplyTo(_map(85, 'CkEmail_putReplyTo'))
    (objHandle, newPropVal);
end;

function CkEmail__replyTo (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__replyTo(_map(86, 'CkEmail__replyTo'))
    (objHandle);
end;

function CkEmail_getReturnReceipt (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getReturnReceipt(_map(87, 'CkEmail_getReturnReceipt'))
    (objHandle);
end;

procedure CkEmail_putReturnReceipt (objHandle: HCkEmail; newPropVal: wordbool);
begin
  TCkEmail_putReturnReceipt(_map(88, 'CkEmail_putReturnReceipt'))
    (objHandle, newPropVal);
end;

function CkEmail_getSendEncrypted (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getSendEncrypted(_map(89, 'CkEmail_getSendEncrypted'))
    (objHandle);
end;

procedure CkEmail_putSendEncrypted (objHandle: HCkEmail; newPropVal: wordbool);
begin
  TCkEmail_putSendEncrypted(_map(90, 'CkEmail_putSendEncrypted'))
    (objHandle, newPropVal);
end;

function CkEmail_getSendSigned (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getSendSigned(_map(91, 'CkEmail_getSendSigned'))
    (objHandle);
end;

procedure CkEmail_putSendSigned (objHandle: HCkEmail; newPropVal: wordbool);
begin
  TCkEmail_putSendSigned(_map(92, 'CkEmail_putSendSigned'))
    (objHandle, newPropVal);
end;

function CkEmail_getSignaturesValid (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getSignaturesValid(_map(93, 'CkEmail_getSignaturesValid'))
    (objHandle);
end;

procedure CkEmail_getSignedBy (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getSignedBy(_map(94, 'CkEmail_getSignedBy'))
    (objHandle, outPropVal);
end;

function CkEmail__signedBy (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__signedBy(_map(95, 'CkEmail__signedBy'))
    (objHandle);
end;

procedure CkEmail_getSigningAlg (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getSigningAlg(_map(96, 'CkEmail_getSigningAlg'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putSigningAlg (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putSigningAlg(_map(97, 'CkEmail_putSigningAlg'))
    (objHandle, newPropVal);
end;

function CkEmail__signingAlg (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__signingAlg(_map(98, 'CkEmail__signingAlg'))
    (objHandle);
end;

procedure CkEmail_getSigningHashAlg (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getSigningHashAlg(_map(99, 'CkEmail_getSigningHashAlg'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putSigningHashAlg (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putSigningHashAlg(_map(100, 'CkEmail_putSigningHashAlg'))
    (objHandle, newPropVal);
end;

function CkEmail__signingHashAlg (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__signingHashAlg(_map(101, 'CkEmail__signingHashAlg'))
    (objHandle);
end;

function CkEmail_getSize (objHandle: HCkEmail): Integer;
begin
    result := TCkEmail_getSize(_map(102, 'CkEmail_getSize'))
    (objHandle);
end;

procedure CkEmail_getSubject (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getSubject(_map(103, 'CkEmail_getSubject'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putSubject (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putSubject(_map(104, 'CkEmail_putSubject'))
    (objHandle, newPropVal);
end;

function CkEmail__subject (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__subject(_map(105, 'CkEmail__subject'))
    (objHandle);
end;

procedure CkEmail_getUidl (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getUidl(_map(106, 'CkEmail_getUidl'))
    (objHandle, outPropVal);
end;

function CkEmail__uidl (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__uidl(_map(107, 'CkEmail__uidl'))
    (objHandle);
end;

procedure CkEmail_getUncommonOptions (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getUncommonOptions(_map(108, 'CkEmail_getUncommonOptions'))
    (objHandle, outPropVal);
end;

procedure CkEmail_putUncommonOptions (objHandle: HCkEmail; newPropVal: PWideChar);
begin
  TCkEmail_putUncommonOptions(_map(109, 'CkEmail_putUncommonOptions'))
    (objHandle, newPropVal);
end;

function CkEmail__uncommonOptions (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__uncommonOptions(_map(110, 'CkEmail__uncommonOptions'))
    (objHandle);
end;

function CkEmail_getUnpackUseRelPaths (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getUnpackUseRelPaths(_map(111, 'CkEmail_getUnpackUseRelPaths'))
    (objHandle);
end;

procedure CkEmail_putUnpackUseRelPaths (objHandle: HCkEmail; newPropVal: wordbool);
begin
  TCkEmail_putUnpackUseRelPaths(_map(112, 'CkEmail_putUnpackUseRelPaths'))
    (objHandle, newPropVal);
end;

function CkEmail_getVerboseLogging (objHandle: HCkEmail): wordbool;
begin
    result := TCkEmail_getVerboseLogging(_map(113, 'CkEmail_getVerboseLogging'))
    (objHandle);
end;

procedure CkEmail_putVerboseLogging (objHandle: HCkEmail; newPropVal: wordbool);
begin
  TCkEmail_putVerboseLogging(_map(114, 'CkEmail_putVerboseLogging'))
    (objHandle, newPropVal);
end;

procedure CkEmail_getVersion (objHandle: HCkEmail; outPropVal: HCkString);
begin
  TCkEmail_getVersion(_map(115, 'CkEmail_getVersion'))
    (objHandle, outPropVal);
end;

function CkEmail__version (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__version(_map(116, 'CkEmail__version'))
    (objHandle);
end;

function CkEmail_AddAttachmentBd (objHandle: HCkEmail; filename: PWideChar; binData: HCkBinData; contentType: PWideChar): wordbool;
begin
  result := TCkEmail_AddAttachmentBd(_map(117, 'CkEmail_AddAttachmentBd'))
    (objHandle, filename, binData, contentType);
end;

procedure CkEmail_AddAttachmentHeader (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; fieldValue: PWideChar);
begin
  TCkEmail_AddAttachmentHeader(_map(118, 'CkEmail_AddAttachmentHeader'))
    (objHandle, index, fieldName, fieldValue);
end;

function CkEmail_AddBcc (objHandle: HCkEmail; friendlyName: PWideChar; emailAddress: PWideChar): wordbool;
begin
  result := TCkEmail_AddBcc(_map(119, 'CkEmail_AddBcc'))
    (objHandle, friendlyName, emailAddress);
end;

function CkEmail_AddCC (objHandle: HCkEmail; friendlyName: PWideChar; emailAddress: PWideChar): wordbool;
begin
  result := TCkEmail_AddCC(_map(120, 'CkEmail_AddCC'))
    (objHandle, friendlyName, emailAddress);
end;

function CkEmail_AddDataAttachment (objHandle: HCkEmail; fileName: PWideChar; content: HCkByteData): wordbool;
begin
  result := TCkEmail_AddDataAttachment(_map(121, 'CkEmail_AddDataAttachment'))
    (objHandle, fileName, content);
end;

function CkEmail_AddDataAttachment2 (objHandle: HCkEmail; fileName: PWideChar; content: HCkByteData; contentType: PWideChar): wordbool;
begin
  result := TCkEmail_AddDataAttachment2(_map(122, 'CkEmail_AddDataAttachment2'))
    (objHandle, fileName, content, contentType);
end;

function CkEmail_AddEncryptCert (objHandle: HCkEmail; cert: HCkCert): wordbool;
begin
  result := TCkEmail_AddEncryptCert(_map(123, 'CkEmail_AddEncryptCert'))
    (objHandle, cert);
end;

function CkEmail_AddFileAttachment (objHandle: HCkEmail; path: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_AddFileAttachment(_map(124, 'CkEmail_AddFileAttachment'))
    (objHandle, path, outStr);
end;

function CkEmail__addFileAttachment (objHandle: HCkEmail; path: PWideChar): PWideChar;
begin
  result := TCkEmail__addFileAttachment(_map(125, 'CkEmail__addFileAttachment'))
    (objHandle, path);
end;

function CkEmail_AddFileAttachment2 (objHandle: HCkEmail; path: PWideChar; contentType: PWideChar): wordbool;
begin
  result := TCkEmail_AddFileAttachment2(_map(126, 'CkEmail_AddFileAttachment2'))
    (objHandle, path, contentType);
end;

procedure CkEmail_AddHeaderField (objHandle: HCkEmail; fieldName: PWideChar; fieldValue: PWideChar);
begin
  TCkEmail_AddHeaderField(_map(127, 'CkEmail_AddHeaderField'))
    (objHandle, fieldName, fieldValue);
end;

procedure CkEmail_AddHeaderField2 (objHandle: HCkEmail; fieldName: PWideChar; fieldValue: PWideChar);
begin
  TCkEmail_AddHeaderField2(_map(128, 'CkEmail_AddHeaderField2'))
    (objHandle, fieldName, fieldValue);
end;

function CkEmail_AddHtmlAlternativeBody (objHandle: HCkEmail; body: PWideChar): wordbool;
begin
  result := TCkEmail_AddHtmlAlternativeBody(_map(129, 'CkEmail_AddHtmlAlternativeBody'))
    (objHandle, body);
end;

function CkEmail_AddiCalendarAlternativeBody (objHandle: HCkEmail; icalContent: PWideChar; methodName: PWideChar): wordbool;
begin
  result := TCkEmail_AddiCalendarAlternativeBody(_map(130, 'CkEmail_AddiCalendarAlternativeBody'))
    (objHandle, icalContent, methodName);
end;

function CkEmail_AddMultipleBcc (objHandle: HCkEmail; commaSeparatedAddresses: PWideChar): wordbool;
begin
  result := TCkEmail_AddMultipleBcc(_map(131, 'CkEmail_AddMultipleBcc'))
    (objHandle, commaSeparatedAddresses);
end;

function CkEmail_AddMultipleCC (objHandle: HCkEmail; commaSeparatedAddresses: PWideChar): wordbool;
begin
  result := TCkEmail_AddMultipleCC(_map(132, 'CkEmail_AddMultipleCC'))
    (objHandle, commaSeparatedAddresses);
end;

function CkEmail_AddMultipleTo (objHandle: HCkEmail; commaSeparatedAddresses: PWideChar): wordbool;
begin
  result := TCkEmail_AddMultipleTo(_map(133, 'CkEmail_AddMultipleTo'))
    (objHandle, commaSeparatedAddresses);
end;

function CkEmail_AddPfxSourceBd (objHandle: HCkEmail; bd: HCkBinData; password: PWideChar): wordbool;
begin
  result := TCkEmail_AddPfxSourceBd(_map(134, 'CkEmail_AddPfxSourceBd'))
    (objHandle, bd, password);
end;

function CkEmail_AddPfxSourceData (objHandle: HCkEmail; pfxBytes: HCkByteData; pfxPassword: PWideChar): wordbool;
begin
  result := TCkEmail_AddPfxSourceData(_map(135, 'CkEmail_AddPfxSourceData'))
    (objHandle, pfxBytes, pfxPassword);
end;

function CkEmail_AddPfxSourceFile (objHandle: HCkEmail; pfxFilePath: PWideChar; pfxPassword: PWideChar): wordbool;
begin
  result := TCkEmail_AddPfxSourceFile(_map(136, 'CkEmail_AddPfxSourceFile'))
    (objHandle, pfxFilePath, pfxPassword);
end;

function CkEmail_AddPlainTextAlternativeBody (objHandle: HCkEmail; body: PWideChar): wordbool;
begin
  result := TCkEmail_AddPlainTextAlternativeBody(_map(137, 'CkEmail_AddPlainTextAlternativeBody'))
    (objHandle, body);
end;

function CkEmail_AddRelatedBd (objHandle: HCkEmail; filename: PWideChar; binData: HCkBinData; outStr: HCkString): wordbool;
begin
  result := TCkEmail_AddRelatedBd(_map(138, 'CkEmail_AddRelatedBd'))
    (objHandle, filename, binData, outStr);
end;

function CkEmail__addRelatedBd (objHandle: HCkEmail; filename: PWideChar; binData: HCkBinData): PWideChar;
begin
  result := TCkEmail__addRelatedBd(_map(139, 'CkEmail__addRelatedBd'))
    (objHandle, filename, binData);
end;

function CkEmail_AddRelatedBd2 (objHandle: HCkEmail; binData: HCkBinData; fileNameInHtml: PWideChar): wordbool;
begin
  result := TCkEmail_AddRelatedBd2(_map(140, 'CkEmail_AddRelatedBd2'))
    (objHandle, binData, fileNameInHtml);
end;

function CkEmail_AddRelatedData (objHandle: HCkEmail; fileName: PWideChar; inData: HCkByteData; outStr: HCkString): wordbool;
begin
  result := TCkEmail_AddRelatedData(_map(141, 'CkEmail_AddRelatedData'))
    (objHandle, fileName, inData, outStr);
end;

function CkEmail__addRelatedData (objHandle: HCkEmail; fileName: PWideChar; inData: HCkByteData): PWideChar;
begin
  result := TCkEmail__addRelatedData(_map(142, 'CkEmail__addRelatedData'))
    (objHandle, fileName, inData);
end;

procedure CkEmail_AddRelatedData2 (objHandle: HCkEmail; inData: HCkByteData; fileNameInHtml: PWideChar);
begin
  TCkEmail_AddRelatedData2(_map(143, 'CkEmail_AddRelatedData2'))
    (objHandle, inData, fileNameInHtml);
end;

function CkEmail_AddRelatedFile (objHandle: HCkEmail; path: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_AddRelatedFile(_map(144, 'CkEmail_AddRelatedFile'))
    (objHandle, path, outStr);
end;

function CkEmail__addRelatedFile (objHandle: HCkEmail; path: PWideChar): PWideChar;
begin
  result := TCkEmail__addRelatedFile(_map(145, 'CkEmail__addRelatedFile'))
    (objHandle, path);
end;

function CkEmail_AddRelatedFile2 (objHandle: HCkEmail; filenameOnDisk: PWideChar; filenameInHtml: PWideChar): wordbool;
begin
  result := TCkEmail_AddRelatedFile2(_map(146, 'CkEmail_AddRelatedFile2'))
    (objHandle, filenameOnDisk, filenameInHtml);
end;

procedure CkEmail_AddRelatedHeader (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; fieldValue: PWideChar);
begin
  TCkEmail_AddRelatedHeader(_map(147, 'CkEmail_AddRelatedHeader'))
    (objHandle, index, fieldName, fieldValue);
end;

function CkEmail_AddRelatedString (objHandle: HCkEmail; nameInHtml: PWideChar; str: PWideChar; charset: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_AddRelatedString(_map(148, 'CkEmail_AddRelatedString'))
    (objHandle, nameInHtml, str, charset, outStr);
end;

function CkEmail__addRelatedString (objHandle: HCkEmail; nameInHtml: PWideChar; str: PWideChar; charset: PWideChar): PWideChar;
begin
  result := TCkEmail__addRelatedString(_map(149, 'CkEmail__addRelatedString'))
    (objHandle, nameInHtml, str, charset);
end;

procedure CkEmail_AddRelatedString2 (objHandle: HCkEmail; fileNameInHtml: PWideChar; content: PWideChar; charset: PWideChar);
begin
  TCkEmail_AddRelatedString2(_map(150, 'CkEmail_AddRelatedString2'))
    (objHandle, fileNameInHtml, content, charset);
end;

function CkEmail_AddStringAttachment (objHandle: HCkEmail; path: PWideChar; content: PWideChar): wordbool;
begin
  result := TCkEmail_AddStringAttachment(_map(151, 'CkEmail_AddStringAttachment'))
    (objHandle, path, content);
end;

function CkEmail_AddStringAttachment2 (objHandle: HCkEmail; path: PWideChar; content: PWideChar; charset: PWideChar): wordbool;
begin
  result := TCkEmail_AddStringAttachment2(_map(152, 'CkEmail_AddStringAttachment2'))
    (objHandle, path, content, charset);
end;

function CkEmail_AddTo (objHandle: HCkEmail; friendlyName: PWideChar; emailAddress: PWideChar): wordbool;
begin
  result := TCkEmail_AddTo(_map(153, 'CkEmail_AddTo'))
    (objHandle, friendlyName, emailAddress);
end;

function CkEmail_AesDecrypt (objHandle: HCkEmail; password: PWideChar): wordbool;
begin
  result := TCkEmail_AesDecrypt(_map(154, 'CkEmail_AesDecrypt'))
    (objHandle, password);
end;

function CkEmail_AesEncrypt (objHandle: HCkEmail; password: PWideChar): wordbool;
begin
  result := TCkEmail_AesEncrypt(_map(155, 'CkEmail_AesEncrypt'))
    (objHandle, password);
end;

procedure CkEmail_AppendToBody (objHandle: HCkEmail; str: PWideChar);
begin
  TCkEmail_AppendToBody(_map(156, 'CkEmail_AppendToBody'))
    (objHandle, str);
end;

function CkEmail_ApplyFixups (objHandle: HCkEmail; fixups: PWideChar): wordbool;
begin
  result := TCkEmail_ApplyFixups(_map(157, 'CkEmail_ApplyFixups'))
    (objHandle, fixups);
end;

function CkEmail_AspUnpack (objHandle: HCkEmail; prefix: PWideChar; saveDir: PWideChar; urlPath: PWideChar; cleanFiles: wordbool): wordbool;
begin
  result := TCkEmail_AspUnpack(_map(158, 'CkEmail_AspUnpack'))
    (objHandle, prefix, saveDir, urlPath, cleanFiles);
end;

function CkEmail_AspUnpack2 (objHandle: HCkEmail; prefix: PWideChar; saveDir: PWideChar; urlPath: PWideChar; cleanFiles: wordbool; outData: HCkByteData): wordbool;
begin
  result := TCkEmail_AspUnpack2(_map(159, 'CkEmail_AspUnpack2'))
    (objHandle, prefix, saveDir, urlPath, cleanFiles, outData);
end;

function CkEmail_AttachEmail (objHandle: HCkEmail; email: HCkEmail): wordbool;
begin
  result := TCkEmail_AttachEmail(_map(160, 'CkEmail_AttachEmail'))
    (objHandle, email);
end;

function CkEmail_AttachMessage (objHandle: HCkEmail; mimeBytes: HCkByteData): wordbool;
begin
  result := TCkEmail_AttachMessage(_map(161, 'CkEmail_AttachMessage'))
    (objHandle, mimeBytes);
end;

function CkEmail_BEncodeBytes (objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_BEncodeBytes(_map(162, 'CkEmail_BEncodeBytes'))
    (objHandle, inData, charset, outStr);
end;

function CkEmail__bEncodeBytes (objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar): PWideChar;
begin
  result := TCkEmail__bEncodeBytes(_map(163, 'CkEmail__bEncodeBytes'))
    (objHandle, inData, charset);
end;

function CkEmail_BEncodeString (objHandle: HCkEmail; str: PWideChar; charset: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_BEncodeString(_map(164, 'CkEmail_BEncodeString'))
    (objHandle, str, charset, outStr);
end;

function CkEmail__bEncodeString (objHandle: HCkEmail; str: PWideChar; charset: PWideChar): PWideChar;
begin
  result := TCkEmail__bEncodeString(_map(165, 'CkEmail__bEncodeString'))
    (objHandle, str, charset);
end;

procedure CkEmail_Clear (objHandle: HCkEmail);
begin
  TCkEmail_Clear(_map(166, 'CkEmail_Clear'))
    (objHandle);
end;

procedure CkEmail_ClearBcc (objHandle: HCkEmail);
begin
  TCkEmail_ClearBcc(_map(167, 'CkEmail_ClearBcc'))
    (objHandle);
end;

procedure CkEmail_ClearCC (objHandle: HCkEmail);
begin
  TCkEmail_ClearCC(_map(168, 'CkEmail_ClearCC'))
    (objHandle);
end;

procedure CkEmail_ClearEncryptCerts (objHandle: HCkEmail);
begin
  TCkEmail_ClearEncryptCerts(_map(169, 'CkEmail_ClearEncryptCerts'))
    (objHandle);
end;

procedure CkEmail_ClearTo (objHandle: HCkEmail);
begin
  TCkEmail_ClearTo(_map(170, 'CkEmail_ClearTo'))
    (objHandle);
end;

function CkEmail_Clone (objHandle: HCkEmail): HCkEmail;
begin
  result := TCkEmail_Clone(_map(171, 'CkEmail_Clone'))
    (objHandle);
end;

function CkEmail_ComputeGlobalKey2 (objHandle: HCkEmail; encoding: PWideChar; bFold: wordbool; outStr: HCkString): wordbool;
begin
  result := TCkEmail_ComputeGlobalKey2(_map(172, 'CkEmail_ComputeGlobalKey2'))
    (objHandle, encoding, bFold, outStr);
end;

function CkEmail__computeGlobalKey2 (objHandle: HCkEmail; encoding: PWideChar; bFold: wordbool): PWideChar;
begin
  result := TCkEmail__computeGlobalKey2(_map(173, 'CkEmail__computeGlobalKey2'))
    (objHandle, encoding, bFold);
end;

function CkEmail_ConvertInlineImages (objHandle: HCkEmail): wordbool;
begin
  result := TCkEmail_ConvertInlineImages(_map(174, 'CkEmail_ConvertInlineImages'))
    (objHandle);
end;

function CkEmail_CreateDsn (objHandle: HCkEmail; humanReadableMessage: PWideChar; xmlStatusFields: PWideChar; bHeaderOnly: wordbool): HCkEmail;
begin
  result := TCkEmail_CreateDsn(_map(175, 'CkEmail_CreateDsn'))
    (objHandle, humanReadableMessage, xmlStatusFields, bHeaderOnly);
end;

function CkEmail_CreateForward (objHandle: HCkEmail): HCkEmail;
begin
  result := TCkEmail_CreateForward(_map(176, 'CkEmail_CreateForward'))
    (objHandle);
end;

function CkEmail_CreateMdn (objHandle: HCkEmail; humanReadableMessage: PWideChar; xmlStatusFields: PWideChar; bHeaderOnly: wordbool): HCkEmail;
begin
  result := TCkEmail_CreateMdn(_map(177, 'CkEmail_CreateMdn'))
    (objHandle, humanReadableMessage, xmlStatusFields, bHeaderOnly);
end;

function CkEmail_CreateReply (objHandle: HCkEmail): HCkEmail;
begin
  result := TCkEmail_CreateReply(_map(178, 'CkEmail_CreateReply'))
    (objHandle);
end;

function CkEmail_CreateTempMht (objHandle: HCkEmail; inFilename: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_CreateTempMht(_map(179, 'CkEmail_CreateTempMht'))
    (objHandle, inFilename, outStr);
end;

function CkEmail__createTempMht (objHandle: HCkEmail; inFilename: PWideChar): PWideChar;
begin
  result := TCkEmail__createTempMht(_map(180, 'CkEmail__createTempMht'))
    (objHandle, inFilename);
end;

procedure CkEmail_DropAttachments (objHandle: HCkEmail);
begin
  TCkEmail_DropAttachments(_map(181, 'CkEmail_DropAttachments'))
    (objHandle);
end;

procedure CkEmail_DropRelatedItem (objHandle: HCkEmail; index: Integer);
begin
  TCkEmail_DropRelatedItem(_map(182, 'CkEmail_DropRelatedItem'))
    (objHandle, index);
end;

procedure CkEmail_DropRelatedItems (objHandle: HCkEmail);
begin
  TCkEmail_DropRelatedItems(_map(183, 'CkEmail_DropRelatedItems'))
    (objHandle);
end;

function CkEmail_DropSingleAttachment (objHandle: HCkEmail; index: Integer): wordbool;
begin
  result := TCkEmail_DropSingleAttachment(_map(184, 'CkEmail_DropSingleAttachment'))
    (objHandle, index);
end;

function CkEmail_FindIssuer (objHandle: HCkEmail; cert: HCkCert): HCkCert;
begin
  result := TCkEmail_FindIssuer(_map(185, 'CkEmail_FindIssuer'))
    (objHandle, cert);
end;

function CkEmail_GenerateFilename (objHandle: HCkEmail; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GenerateFilename(_map(186, 'CkEmail_GenerateFilename'))
    (objHandle, outStr);
end;

function CkEmail__generateFilename (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__generateFilename(_map(187, 'CkEmail__generateFilename'))
    (objHandle);
end;

function CkEmail_GetAlternativeBody (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAlternativeBody(_map(188, 'CkEmail_GetAlternativeBody'))
    (objHandle, index, outStr);
end;

function CkEmail__getAlternativeBody (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getAlternativeBody(_map(189, 'CkEmail__getAlternativeBody'))
    (objHandle, index);
end;

function CkEmail_GetAlternativeBodyBd (objHandle: HCkEmail; index: Integer; binData: HCkBinData): wordbool;
begin
  result := TCkEmail_GetAlternativeBodyBd(_map(190, 'CkEmail_GetAlternativeBodyBd'))
    (objHandle, index, binData);
end;

function CkEmail_GetAlternativeBodyByContentType (objHandle: HCkEmail; contentType: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAlternativeBodyByContentType(_map(191, 'CkEmail_GetAlternativeBodyByContentType'))
    (objHandle, contentType, outStr);
end;

function CkEmail__getAlternativeBodyByContentType (objHandle: HCkEmail; contentType: PWideChar): PWideChar;
begin
  result := TCkEmail__getAlternativeBodyByContentType(_map(192, 'CkEmail__getAlternativeBodyByContentType'))
    (objHandle, contentType);
end;

function CkEmail_GetAlternativeContentType (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAlternativeContentType(_map(193, 'CkEmail_GetAlternativeContentType'))
    (objHandle, index, outStr);
end;

function CkEmail__getAlternativeContentType (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getAlternativeContentType(_map(194, 'CkEmail__getAlternativeContentType'))
    (objHandle, index);
end;

function CkEmail_GetAltHeaderField (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAltHeaderField(_map(195, 'CkEmail_GetAltHeaderField'))
    (objHandle, index, fieldName, outStr);
end;

function CkEmail__getAltHeaderField (objHandle: HCkEmail; index: Integer; fieldName: PWideChar): PWideChar;
begin
  result := TCkEmail__getAltHeaderField(_map(196, 'CkEmail__getAltHeaderField'))
    (objHandle, index, fieldName);
end;

function CkEmail_GetAttachedEmail (objHandle: HCkEmail; index: Integer; email: HCkEmail): wordbool;
begin
  result := TCkEmail_GetAttachedEmail(_map(197, 'CkEmail_GetAttachedEmail'))
    (objHandle, index, email);
end;

function CkEmail_GetAttachedMessage (objHandle: HCkEmail; index: Integer): HCkEmail;
begin
  result := TCkEmail_GetAttachedMessage(_map(198, 'CkEmail_GetAttachedMessage'))
    (objHandle, index);
end;

function CkEmail_GetAttachedMessageAttr (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAttachedMessageAttr(_map(199, 'CkEmail_GetAttachedMessageAttr'))
    (objHandle, index, fieldName, attrName, outStr);
end;

function CkEmail__getAttachedMessageAttr (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar): PWideChar;
begin
  result := TCkEmail__getAttachedMessageAttr(_map(200, 'CkEmail__getAttachedMessageAttr'))
    (objHandle, index, fieldName, attrName);
end;

function CkEmail_GetAttachedMessageFilename (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAttachedMessageFilename(_map(201, 'CkEmail_GetAttachedMessageFilename'))
    (objHandle, index, outStr);
end;

function CkEmail__getAttachedMessageFilename (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getAttachedMessageFilename(_map(202, 'CkEmail__getAttachedMessageFilename'))
    (objHandle, index);
end;

function CkEmail_GetAttachmentAttr (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAttachmentAttr(_map(203, 'CkEmail_GetAttachmentAttr'))
    (objHandle, index, fieldName, attrName, outStr);
end;

function CkEmail__getAttachmentAttr (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar): PWideChar;
begin
  result := TCkEmail__getAttachmentAttr(_map(204, 'CkEmail__getAttachmentAttr'))
    (objHandle, index, fieldName, attrName);
end;

function CkEmail_GetAttachmentBd (objHandle: HCkEmail; index: Integer; binData: HCkBinData): wordbool;
begin
  result := TCkEmail_GetAttachmentBd(_map(205, 'CkEmail_GetAttachmentBd'))
    (objHandle, index, binData);
end;

function CkEmail_GetAttachmentContentID (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAttachmentContentID(_map(206, 'CkEmail_GetAttachmentContentID'))
    (objHandle, index, outStr);
end;

function CkEmail__getAttachmentContentID (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getAttachmentContentID(_map(207, 'CkEmail__getAttachmentContentID'))
    (objHandle, index);
end;

function CkEmail_GetAttachmentContentType (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAttachmentContentType(_map(208, 'CkEmail_GetAttachmentContentType'))
    (objHandle, index, outStr);
end;

function CkEmail__getAttachmentContentType (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getAttachmentContentType(_map(209, 'CkEmail__getAttachmentContentType'))
    (objHandle, index);
end;

function CkEmail_GetAttachmentData (objHandle: HCkEmail; index: Integer; outData: HCkByteData): wordbool;
begin
  result := TCkEmail_GetAttachmentData(_map(210, 'CkEmail_GetAttachmentData'))
    (objHandle, index, outData);
end;

function CkEmail_GetAttachmentFilename (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAttachmentFilename(_map(211, 'CkEmail_GetAttachmentFilename'))
    (objHandle, index, outStr);
end;

function CkEmail__getAttachmentFilename (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getAttachmentFilename(_map(212, 'CkEmail__getAttachmentFilename'))
    (objHandle, index);
end;

function CkEmail_GetAttachmentHeader (objHandle: HCkEmail; attachIndex: Integer; fieldName: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAttachmentHeader(_map(213, 'CkEmail_GetAttachmentHeader'))
    (objHandle, attachIndex, fieldName, outStr);
end;

function CkEmail__getAttachmentHeader (objHandle: HCkEmail; attachIndex: Integer; fieldName: PWideChar): PWideChar;
begin
  result := TCkEmail__getAttachmentHeader(_map(214, 'CkEmail__getAttachmentHeader'))
    (objHandle, attachIndex, fieldName);
end;

function CkEmail_GetAttachmentSize (objHandle: HCkEmail; index: Integer): Integer;
begin
  result := TCkEmail_GetAttachmentSize(_map(215, 'CkEmail_GetAttachmentSize'))
    (objHandle, index);
end;

function CkEmail_GetAttachmentString (objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAttachmentString(_map(216, 'CkEmail_GetAttachmentString'))
    (objHandle, index, charset, outStr);
end;

function CkEmail__getAttachmentString (objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar;
begin
  result := TCkEmail__getAttachmentString(_map(217, 'CkEmail__getAttachmentString'))
    (objHandle, index, charset);
end;

function CkEmail_GetAttachmentStringCrLf (objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetAttachmentStringCrLf(_map(218, 'CkEmail_GetAttachmentStringCrLf'))
    (objHandle, index, charset, outStr);
end;

function CkEmail__getAttachmentStringCrLf (objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar;
begin
  result := TCkEmail__getAttachmentStringCrLf(_map(219, 'CkEmail__getAttachmentStringCrLf'))
    (objHandle, index, charset);
end;

function CkEmail_GetBcc (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetBcc(_map(220, 'CkEmail_GetBcc'))
    (objHandle, index, outStr);
end;

function CkEmail__getBcc (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getBcc(_map(221, 'CkEmail__getBcc'))
    (objHandle, index);
end;

function CkEmail_GetBccAddr (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetBccAddr(_map(222, 'CkEmail_GetBccAddr'))
    (objHandle, index, outStr);
end;

function CkEmail__getBccAddr (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getBccAddr(_map(223, 'CkEmail__getBccAddr'))
    (objHandle, index);
end;

function CkEmail_GetBccName (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetBccName(_map(224, 'CkEmail_GetBccName'))
    (objHandle, index, outStr);
end;

function CkEmail__getBccName (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getBccName(_map(225, 'CkEmail__getBccName'))
    (objHandle, index);
end;

function CkEmail_GetCC (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetCC(_map(226, 'CkEmail_GetCC'))
    (objHandle, index, outStr);
end;

function CkEmail__getCC (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getCC(_map(227, 'CkEmail__getCC'))
    (objHandle, index);
end;

function CkEmail_GetCcAddr (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetCcAddr(_map(228, 'CkEmail_GetCcAddr'))
    (objHandle, index, outStr);
end;

function CkEmail__getCcAddr (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getCcAddr(_map(229, 'CkEmail__getCcAddr'))
    (objHandle, index);
end;

function CkEmail_GetCcName (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetCcName(_map(230, 'CkEmail_GetCcName'))
    (objHandle, index, outStr);
end;

function CkEmail__getCcName (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getCcName(_map(231, 'CkEmail__getCcName'))
    (objHandle, index);
end;

function CkEmail_GetDeliveryStatusInfo (objHandle: HCkEmail; fieldName: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetDeliveryStatusInfo(_map(232, 'CkEmail_GetDeliveryStatusInfo'))
    (objHandle, fieldName, outStr);
end;

function CkEmail__getDeliveryStatusInfo (objHandle: HCkEmail; fieldName: PWideChar): PWideChar;
begin
  result := TCkEmail__getDeliveryStatusInfo(_map(233, 'CkEmail__getDeliveryStatusInfo'))
    (objHandle, fieldName);
end;

function CkEmail_GetDigest (objHandle: HCkEmail; index: Integer): HCkEmail;
begin
  result := TCkEmail_GetDigest(_map(234, 'CkEmail_GetDigest'))
    (objHandle, index);
end;

function CkEmail_GetDigestEmail (objHandle: HCkEmail; index: Integer; email: HCkEmail): wordbool;
begin
  result := TCkEmail_GetDigestEmail(_map(235, 'CkEmail_GetDigestEmail'))
    (objHandle, index, email);
end;

function CkEmail_GetDsnFinalRecipients (objHandle: HCkEmail): HCkStringArray;
begin
  result := TCkEmail_GetDsnFinalRecipients(_map(236, 'CkEmail_GetDsnFinalRecipients'))
    (objHandle);
end;

function CkEmail_GetDsnInfo (objHandle: HCkEmail; json: HCkJsonObject): wordbool;
begin
  result := TCkEmail_GetDsnInfo(_map(237, 'CkEmail_GetDsnInfo'))
    (objHandle, json);
end;

function CkEmail_GetDt (objHandle: HCkEmail): HCkDateTime;
begin
  result := TCkEmail_GetDt(_map(238, 'CkEmail_GetDt'))
    (objHandle);
end;

function CkEmail_GetEncryptCert (objHandle: HCkEmail): HCkCert;
begin
  result := TCkEmail_GetEncryptCert(_map(239, 'CkEmail_GetEncryptCert'))
    (objHandle);
end;

function CkEmail_GetEncryptedByCert (objHandle: HCkEmail): HCkCert;
begin
  result := TCkEmail_GetEncryptedByCert(_map(240, 'CkEmail_GetEncryptedByCert'))
    (objHandle);
end;

function CkEmail_GetFileContent (objHandle: HCkEmail; path: PWideChar; outData: HCkByteData): wordbool;
begin
  result := TCkEmail_GetFileContent(_map(241, 'CkEmail_GetFileContent'))
    (objHandle, path, outData);
end;

function CkEmail_GetHeaderField (objHandle: HCkEmail; fieldName: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetHeaderField(_map(242, 'CkEmail_GetHeaderField'))
    (objHandle, fieldName, outStr);
end;

function CkEmail__getHeaderField (objHandle: HCkEmail; fieldName: PWideChar): PWideChar;
begin
  result := TCkEmail__getHeaderField(_map(243, 'CkEmail__getHeaderField'))
    (objHandle, fieldName);
end;

function CkEmail_GetHeaderFieldName (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetHeaderFieldName(_map(244, 'CkEmail_GetHeaderFieldName'))
    (objHandle, index, outStr);
end;

function CkEmail__getHeaderFieldName (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getHeaderFieldName(_map(245, 'CkEmail__getHeaderFieldName'))
    (objHandle, index);
end;

function CkEmail_GetHeaderFieldValue (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetHeaderFieldValue(_map(246, 'CkEmail_GetHeaderFieldValue'))
    (objHandle, index, outStr);
end;

function CkEmail__getHeaderFieldValue (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getHeaderFieldValue(_map(247, 'CkEmail__getHeaderFieldValue'))
    (objHandle, index);
end;

function CkEmail_GetHtmlBody (objHandle: HCkEmail; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetHtmlBody(_map(248, 'CkEmail_GetHtmlBody'))
    (objHandle, outStr);
end;

function CkEmail__getHtmlBody (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__getHtmlBody(_map(249, 'CkEmail__getHtmlBody'))
    (objHandle);
end;

function CkEmail_GetHtmlBodySb (objHandle: HCkEmail; inlineImageData: wordbool; sb: HCkStringBuilder): wordbool;
begin
  result := TCkEmail_GetHtmlBodySb(_map(250, 'CkEmail_GetHtmlBodySb'))
    (objHandle, inlineImageData, sb);
end;

function CkEmail_GetImapUid (objHandle: HCkEmail): LongWord;
begin
  result := TCkEmail_GetImapUid(_map(251, 'CkEmail_GetImapUid'))
    (objHandle);
end;

function CkEmail_GetLinkedDomains (objHandle: HCkEmail): HCkStringArray;
begin
  result := TCkEmail_GetLinkedDomains(_map(252, 'CkEmail_GetLinkedDomains'))
    (objHandle);
end;

function CkEmail_GetMime (objHandle: HCkEmail; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetMime(_map(253, 'CkEmail_GetMime'))
    (objHandle, outStr);
end;

function CkEmail__getMime (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__getMime(_map(254, 'CkEmail__getMime'))
    (objHandle);
end;

function CkEmail_GetMimeBd (objHandle: HCkEmail; bindat: HCkBinData): wordbool;
begin
  result := TCkEmail_GetMimeBd(_map(255, 'CkEmail_GetMimeBd'))
    (objHandle, bindat);
end;

function CkEmail_GetMimeBinary (objHandle: HCkEmail; outData: HCkByteData): wordbool;
begin
  result := TCkEmail_GetMimeBinary(_map(256, 'CkEmail_GetMimeBinary'))
    (objHandle, outData);
end;

function CkEmail_GetMimeSb (objHandle: HCkEmail; sb: HCkStringBuilder): wordbool;
begin
  result := TCkEmail_GetMimeSb(_map(257, 'CkEmail_GetMimeSb'))
    (objHandle, sb);
end;

function CkEmail_GetNthBinaryPartOfType (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; outData: HCkByteData): wordbool;
begin
  result := TCkEmail_GetNthBinaryPartOfType(_map(258, 'CkEmail_GetNthBinaryPartOfType'))
    (objHandle, index, contentType, inlineOnly, excludeAttachments, outData);
end;

function CkEmail_GetNthBinaryPartOfTypeBd (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; bd: HCkBinData): wordbool;
begin
  result := TCkEmail_GetNthBinaryPartOfTypeBd(_map(259, 'CkEmail_GetNthBinaryPartOfTypeBd'))
    (objHandle, index, contentType, inlineOnly, excludeAttachments, bd);
end;

function CkEmail_GetNthContentType (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetNthContentType(_map(260, 'CkEmail_GetNthContentType'))
    (objHandle, index, contentType, inlineOnly, excludeAttachments, outStr);
end;

function CkEmail__getNthContentType (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool): PWideChar;
begin
  result := TCkEmail__getNthContentType(_map(261, 'CkEmail__getNthContentType'))
    (objHandle, index, contentType, inlineOnly, excludeAttachments);
end;

function CkEmail_GetNthTextPartOfType (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetNthTextPartOfType(_map(262, 'CkEmail_GetNthTextPartOfType'))
    (objHandle, index, contentType, inlineOnly, excludeAttachments, outStr);
end;

function CkEmail__getNthTextPartOfType (objHandle: HCkEmail; index: Integer; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool): PWideChar;
begin
  result := TCkEmail__getNthTextPartOfType(_map(263, 'CkEmail__getNthTextPartOfType'))
    (objHandle, index, contentType, inlineOnly, excludeAttachments);
end;

function CkEmail_GetNumPartsOfType (objHandle: HCkEmail; contentType: PWideChar; inlineOnly: wordbool; excludeAttachments: wordbool): Integer;
begin
  result := TCkEmail_GetNumPartsOfType(_map(264, 'CkEmail_GetNumPartsOfType'))
    (objHandle, contentType, inlineOnly, excludeAttachments);
end;

function CkEmail_GetPlainTextBody (objHandle: HCkEmail; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetPlainTextBody(_map(265, 'CkEmail_GetPlainTextBody'))
    (objHandle, outStr);
end;

function CkEmail__getPlainTextBody (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__getPlainTextBody(_map(266, 'CkEmail__getPlainTextBody'))
    (objHandle);
end;

function CkEmail_GetRelatedAttr (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetRelatedAttr(_map(267, 'CkEmail_GetRelatedAttr'))
    (objHandle, index, fieldName, attrName, outStr);
end;

function CkEmail__getRelatedAttr (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; attrName: PWideChar): PWideChar;
begin
  result := TCkEmail__getRelatedAttr(_map(268, 'CkEmail__getRelatedAttr'))
    (objHandle, index, fieldName, attrName);
end;

function CkEmail_GetRelatedContentID (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetRelatedContentID(_map(269, 'CkEmail_GetRelatedContentID'))
    (objHandle, index, outStr);
end;

function CkEmail__getRelatedContentID (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getRelatedContentID(_map(270, 'CkEmail__getRelatedContentID'))
    (objHandle, index);
end;

function CkEmail_GetRelatedContentLocation (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetRelatedContentLocation(_map(271, 'CkEmail_GetRelatedContentLocation'))
    (objHandle, index, outStr);
end;

function CkEmail__getRelatedContentLocation (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getRelatedContentLocation(_map(272, 'CkEmail__getRelatedContentLocation'))
    (objHandle, index);
end;

function CkEmail_GetRelatedContentType (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetRelatedContentType(_map(273, 'CkEmail_GetRelatedContentType'))
    (objHandle, index, outStr);
end;

function CkEmail__getRelatedContentType (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getRelatedContentType(_map(274, 'CkEmail__getRelatedContentType'))
    (objHandle, index);
end;

function CkEmail_GetRelatedData (objHandle: HCkEmail; index: Integer; outData: HCkByteData): wordbool;
begin
  result := TCkEmail_GetRelatedData(_map(275, 'CkEmail_GetRelatedData'))
    (objHandle, index, outData);
end;

function CkEmail_GetRelatedFilename (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetRelatedFilename(_map(276, 'CkEmail_GetRelatedFilename'))
    (objHandle, index, outStr);
end;

function CkEmail__getRelatedFilename (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getRelatedFilename(_map(277, 'CkEmail__getRelatedFilename'))
    (objHandle, index);
end;

function CkEmail_GetRelatedHeader (objHandle: HCkEmail; index: Integer; fieldName: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetRelatedHeader(_map(278, 'CkEmail_GetRelatedHeader'))
    (objHandle, index, fieldName, outStr);
end;

function CkEmail__getRelatedHeader (objHandle: HCkEmail; index: Integer; fieldName: PWideChar): PWideChar;
begin
  result := TCkEmail__getRelatedHeader(_map(279, 'CkEmail__getRelatedHeader'))
    (objHandle, index, fieldName);
end;

function CkEmail_GetRelatedString (objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetRelatedString(_map(280, 'CkEmail_GetRelatedString'))
    (objHandle, index, charset, outStr);
end;

function CkEmail__getRelatedString (objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar;
begin
  result := TCkEmail__getRelatedString(_map(281, 'CkEmail__getRelatedString'))
    (objHandle, index, charset);
end;

function CkEmail_GetRelatedStringCrLf (objHandle: HCkEmail; index: Integer; charset: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetRelatedStringCrLf(_map(282, 'CkEmail_GetRelatedStringCrLf'))
    (objHandle, index, charset, outStr);
end;

function CkEmail__getRelatedStringCrLf (objHandle: HCkEmail; index: Integer; charset: PWideChar): PWideChar;
begin
  result := TCkEmail__getRelatedStringCrLf(_map(283, 'CkEmail__getRelatedStringCrLf'))
    (objHandle, index, charset);
end;

function CkEmail_GetReplacePattern (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetReplacePattern(_map(284, 'CkEmail_GetReplacePattern'))
    (objHandle, index, outStr);
end;

function CkEmail__getReplacePattern (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getReplacePattern(_map(285, 'CkEmail__getReplacePattern'))
    (objHandle, index);
end;

function CkEmail_GetReplaceString (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetReplaceString(_map(286, 'CkEmail_GetReplaceString'))
    (objHandle, index, outStr);
end;

function CkEmail__getReplaceString (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getReplaceString(_map(287, 'CkEmail__getReplaceString'))
    (objHandle, index);
end;

function CkEmail_GetReplaceString2 (objHandle: HCkEmail; pattern: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetReplaceString2(_map(288, 'CkEmail_GetReplaceString2'))
    (objHandle, pattern, outStr);
end;

function CkEmail__getReplaceString2 (objHandle: HCkEmail; pattern: PWideChar): PWideChar;
begin
  result := TCkEmail__getReplaceString2(_map(289, 'CkEmail__getReplaceString2'))
    (objHandle, pattern);
end;

function CkEmail_GetReport (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetReport(_map(290, 'CkEmail_GetReport'))
    (objHandle, index, outStr);
end;

function CkEmail__getReport (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getReport(_map(291, 'CkEmail__getReport'))
    (objHandle, index);
end;

function CkEmail_GetSignedByCert (objHandle: HCkEmail): HCkCert;
begin
  result := TCkEmail_GetSignedByCert(_map(292, 'CkEmail_GetSignedByCert'))
    (objHandle);
end;

function CkEmail_GetSignedByCertChain (objHandle: HCkEmail): HCkCertChain;
begin
  result := TCkEmail_GetSignedByCertChain(_map(293, 'CkEmail_GetSignedByCertChain'))
    (objHandle);
end;

function CkEmail_GetSigningCert (objHandle: HCkEmail): HCkCert;
begin
  result := TCkEmail_GetSigningCert(_map(294, 'CkEmail_GetSigningCert'))
    (objHandle);
end;

function CkEmail_GetTo (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetTo(_map(295, 'CkEmail_GetTo'))
    (objHandle, index, outStr);
end;

function CkEmail__getTo (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getTo(_map(296, 'CkEmail__getTo'))
    (objHandle, index);
end;

function CkEmail_GetToAddr (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetToAddr(_map(297, 'CkEmail_GetToAddr'))
    (objHandle, index, outStr);
end;

function CkEmail__getToAddr (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getToAddr(_map(298, 'CkEmail__getToAddr'))
    (objHandle, index);
end;

function CkEmail_GetToName (objHandle: HCkEmail; index: Integer; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetToName(_map(299, 'CkEmail_GetToName'))
    (objHandle, index, outStr);
end;

function CkEmail__getToName (objHandle: HCkEmail; index: Integer): PWideChar;
begin
  result := TCkEmail__getToName(_map(300, 'CkEmail__getToName'))
    (objHandle, index);
end;

function CkEmail_GetXml (objHandle: HCkEmail; outStr: HCkString): wordbool;
begin
  result := TCkEmail_GetXml(_map(301, 'CkEmail_GetXml'))
    (objHandle, outStr);
end;

function CkEmail__getXml (objHandle: HCkEmail): PWideChar;
begin
  result := TCkEmail__getXml(_map(302, 'CkEmail__getXml'))
    (objHandle);
end;

function CkEmail_HasHeaderMatching (objHandle: HCkEmail; fieldName: PWideChar; valuePattern: PWideChar; caseSensitive: wordbool): wordbool;
begin
  result := TCkEmail_HasHeaderMatching(_map(303, 'CkEmail_HasHeaderMatching'))
    (objHandle, fieldName, valuePattern, caseSensitive);
end;

function CkEmail_HasHtmlBody (objHandle: HCkEmail): wordbool;
begin
  result := TCkEmail_HasHtmlBody(_map(304, 'CkEmail_HasHtmlBody'))
    (objHandle);
end;

function CkEmail_HasPlainTextBody (objHandle: HCkEmail): wordbool;
begin
  result := TCkEmail_HasPlainTextBody(_map(305, 'CkEmail_HasPlainTextBody'))
    (objHandle);
end;

function CkEmail_IsMultipartReport (objHandle: HCkEmail): wordbool;
begin
  result := TCkEmail_IsMultipartReport(_map(306, 'CkEmail_IsMultipartReport'))
    (objHandle);
end;

function CkEmail_LastDecryptCert (objHandle: HCkEmail; cert: HCkCert): wordbool;
begin
  result := TCkEmail_LastDecryptCert(_map(307, 'CkEmail_LastDecryptCert'))
    (objHandle, cert);
end;

function CkEmail_LastSignerCert (objHandle: HCkEmail; index: Integer; cert: HCkCert): wordbool;
begin
  result := TCkEmail_LastSignerCert(_map(308, 'CkEmail_LastSignerCert'))
    (objHandle, index, cert);
end;

function CkEmail_LinkedDomains (objHandle: HCkEmail; domains: HCkStringTable): wordbool;
begin
  result := TCkEmail_LinkedDomains(_map(309, 'CkEmail_LinkedDomains'))
    (objHandle, domains);
end;

function CkEmail_LoadEml (objHandle: HCkEmail; mimePath: PWideChar): wordbool;
begin
  result := TCkEmail_LoadEml(_map(310, 'CkEmail_LoadEml'))
    (objHandle, mimePath);
end;

function CkEmail_LoadTaskResult (objHandle: HCkEmail; task: HCkTask): wordbool;
begin
  result := TCkEmail_LoadTaskResult(_map(311, 'CkEmail_LoadTaskResult'))
    (objHandle, task);
end;

function CkEmail_LoadXml (objHandle: HCkEmail; xmlPath: PWideChar): wordbool;
begin
  result := TCkEmail_LoadXml(_map(312, 'CkEmail_LoadXml'))
    (objHandle, xmlPath);
end;

function CkEmail_LoadXmlString (objHandle: HCkEmail; xmlStr: PWideChar): wordbool;
begin
  result := TCkEmail_LoadXmlString(_map(313, 'CkEmail_LoadXmlString'))
    (objHandle, xmlStr);
end;

function CkEmail_MakeCopy (objHandle: HCkEmail; destEmail: HCkEmail): wordbool;
begin
  result := TCkEmail_MakeCopy(_map(314, 'CkEmail_MakeCopy'))
    (objHandle, destEmail);
end;

function CkEmail_QEncodeBytes (objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_QEncodeBytes(_map(315, 'CkEmail_QEncodeBytes'))
    (objHandle, inData, charset, outStr);
end;

function CkEmail__qEncodeBytes (objHandle: HCkEmail; inData: HCkByteData; charset: PWideChar): PWideChar;
begin
  result := TCkEmail__qEncodeBytes(_map(316, 'CkEmail__qEncodeBytes'))
    (objHandle, inData, charset);
end;

function CkEmail_QEncodeString (objHandle: HCkEmail; str: PWideChar; charset: PWideChar; outStr: HCkString): wordbool;
begin
  result := TCkEmail_QEncodeString(_map(317, 'CkEmail_QEncodeString'))
    (objHandle, str, charset, outStr);
end;

function CkEmail__qEncodeString (objHandle: HCkEmail; str: PWideChar; charset: PWideChar): PWideChar;
begin
  result := TCkEmail__qEncodeString(_map(318, 'CkEmail__qEncodeString'))
    (objHandle, str, charset);
end;

procedure CkEmail_RemoveAttachedMessage (objHandle: HCkEmail; idx: Integer);
begin
  TCkEmail_RemoveAttachedMessage(_map(319, 'CkEmail_RemoveAttachedMessage'))
    (objHandle, idx);
end;

procedure CkEmail_RemoveAttachedMessages (objHandle: HCkEmail);
begin
  TCkEmail_RemoveAttachedMessages(_map(320, 'CkEmail_RemoveAttachedMessages'))
    (objHandle);
end;

procedure CkEmail_RemoveAttachmentPaths (objHandle: HCkEmail);
begin
  TCkEmail_RemoveAttachmentPaths(_map(321, 'CkEmail_RemoveAttachmentPaths'))
    (objHandle);
end;

procedure CkEmail_RemoveHeaderField (objHandle: HCkEmail; fieldName: PWideChar);
begin
  TCkEmail_RemoveHeaderField(_map(322, 'CkEmail_RemoveHeaderField'))
    (objHandle, fieldName);
end;

procedure CkEmail_RemoveHtmlAlternative (objHandle: HCkEmail);
begin
  TCkEmail_RemoveHtmlAlternative(_map(323, 'CkEmail_RemoveHtmlAlternative'))
    (objHandle);
end;

procedure CkEmail_RemovePlainTextAlternative (objHandle: HCkEmail);
begin
  TCkEmail_RemovePlainTextAlternative(_map(324, 'CkEmail_RemovePlainTextAlternative'))
    (objHandle);
end;

function CkEmail_SaveAllAttachments (objHandle: HCkEmail; dirPath: PWideChar): wordbool;
begin
  result := TCkEmail_SaveAllAttachments(_map(325, 'CkEmail_SaveAllAttachments'))
    (objHandle, dirPath);
end;

function CkEmail_SaveAttachedFile (objHandle: HCkEmail; index: Integer; dirPath: PWideChar): wordbool;
begin
  result := TCkEmail_SaveAttachedFile(_map(326, 'CkEmail_SaveAttachedFile'))
    (objHandle, index, dirPath);
end;

function CkEmail_SaveEml (objHandle: HCkEmail; emlFilePath: PWideChar): wordbool;
begin
  result := TCkEmail_SaveEml(_map(327, 'CkEmail_SaveEml'))
    (objHandle, emlFilePath);
end;

function CkEmail_SaveRelatedItem (objHandle: HCkEmail; index: Integer; dirPath: PWideChar): wordbool;
begin
  result := TCkEmail_SaveRelatedItem(_map(328, 'CkEmail_SaveRelatedItem'))
    (objHandle, index, dirPath);
end;

function CkEmail_SaveXml (objHandle: HCkEmail; path: PWideChar): wordbool;
begin
  result := TCkEmail_SaveXml(_map(329, 'CkEmail_SaveXml'))
    (objHandle, path);
end;

function CkEmail_SetAttachmentCharset (objHandle: HCkEmail; index: Integer; charset: PWideChar): wordbool;
begin
  result := TCkEmail_SetAttachmentCharset(_map(330, 'CkEmail_SetAttachmentCharset'))
    (objHandle, index, charset);
end;

function CkEmail_SetAttachmentDisposition (objHandle: HCkEmail; index: Integer; disposition: PWideChar): wordbool;
begin
  result := TCkEmail_SetAttachmentDisposition(_map(331, 'CkEmail_SetAttachmentDisposition'))
    (objHandle, index, disposition);
end;

function CkEmail_SetAttachmentFilename (objHandle: HCkEmail; index: Integer; filename: PWideChar): wordbool;
begin
  result := TCkEmail_SetAttachmentFilename(_map(332, 'CkEmail_SetAttachmentFilename'))
    (objHandle, index, filename);
end;

function CkEmail_SetBinaryBody (objHandle: HCkEmail; byteData: HCkByteData; contentType: PWideChar; disposition: PWideChar; filename: PWideChar): wordbool;
begin
  result := TCkEmail_SetBinaryBody(_map(333, 'CkEmail_SetBinaryBody'))
    (objHandle, byteData, contentType, disposition, filename);
end;

function CkEmail_SetBodyBd (objHandle: HCkEmail; bd: HCkBinData; contentType: PWideChar; disposition: PWideChar; filename: PWideChar): wordbool;
begin
  result := TCkEmail_SetBodyBd(_map(334, 'CkEmail_SetBodyBd'))
    (objHandle, bd, contentType, disposition, filename);
end;

function CkEmail_SetDecryptCert (objHandle: HCkEmail; cert: HCkCert): wordbool;
begin
  result := TCkEmail_SetDecryptCert(_map(335, 'CkEmail_SetDecryptCert'))
    (objHandle, cert);
end;

function CkEmail_SetDecryptCert2 (objHandle: HCkEmail; cert: HCkCert; key: HCkPrivateKey): wordbool;
begin
  result := TCkEmail_SetDecryptCert2(_map(336, 'CkEmail_SetDecryptCert2'))
    (objHandle, cert, key);
end;

function CkEmail_SetDt (objHandle: HCkEmail; dt: HCkDateTime): wordbool;
begin
  result := TCkEmail_SetDt(_map(337, 'CkEmail_SetDt'))
    (objHandle, dt);
end;

procedure CkEmail_SetEdifactBody (objHandle: HCkEmail; message: PWideChar; name: PWideChar; filename: PWideChar; charset: PWideChar);
begin
  TCkEmail_SetEdifactBody(_map(338, 'CkEmail_SetEdifactBody'))
    (objHandle, message, name, filename, charset);
end;

function CkEmail_SetEncryptCert (objHandle: HCkEmail; cert: HCkCert): wordbool;
begin
  result := TCkEmail_SetEncryptCert(_map(339, 'CkEmail_SetEncryptCert'))
    (objHandle, cert);
end;

function CkEmail_SetFromMimeBd (objHandle: HCkEmail; bindat: HCkBinData): wordbool;
begin
  result := TCkEmail_SetFromMimeBd(_map(340, 'CkEmail_SetFromMimeBd'))
    (objHandle, bindat);
end;

function CkEmail_SetFromMimeBytes (objHandle: HCkEmail; mimeBytes: HCkByteData): wordbool;
begin
  result := TCkEmail_SetFromMimeBytes(_map(341, 'CkEmail_SetFromMimeBytes'))
    (objHandle, mimeBytes);
end;

function CkEmail_SetFromMimeBytes2 (objHandle: HCkEmail; mimeBytes: HCkByteData; charset: PWideChar): wordbool;
begin
  result := TCkEmail_SetFromMimeBytes2(_map(342, 'CkEmail_SetFromMimeBytes2'))
    (objHandle, mimeBytes, charset);
end;

function CkEmail_SetFromMimeSb (objHandle: HCkEmail; sb: HCkStringBuilder): wordbool;
begin
  result := TCkEmail_SetFromMimeSb(_map(343, 'CkEmail_SetFromMimeSb'))
    (objHandle, sb);
end;

function CkEmail_SetFromMimeText (objHandle: HCkEmail; mimeText: PWideChar): wordbool;
begin
  result := TCkEmail_SetFromMimeText(_map(344, 'CkEmail_SetFromMimeText'))
    (objHandle, mimeText);
end;

function CkEmail_SetFromXmlText (objHandle: HCkEmail; xmlStr: PWideChar): wordbool;
begin
  result := TCkEmail_SetFromXmlText(_map(345, 'CkEmail_SetFromXmlText'))
    (objHandle, xmlStr);
end;

procedure CkEmail_SetHtmlBody (objHandle: HCkEmail; html: PWideChar);
begin
  TCkEmail_SetHtmlBody(_map(346, 'CkEmail_SetHtmlBody'))
    (objHandle, html);
end;

function CkEmail_SetMbHtmlBody (objHandle: HCkEmail; charset: PWideChar; inData: HCkByteData): wordbool;
begin
  result := TCkEmail_SetMbHtmlBody(_map(347, 'CkEmail_SetMbHtmlBody'))
    (objHandle, charset, inData);
end;

function CkEmail_SetMbPlainTextBody (objHandle: HCkEmail; charset: PWideChar; inData: HCkByteData): wordbool;
begin
  result := TCkEmail_SetMbPlainTextBody(_map(348, 'CkEmail_SetMbPlainTextBody'))
    (objHandle, charset, inData);
end;

function CkEmail_SetRelatedFilename (objHandle: HCkEmail; index: Integer; path: PWideChar): wordbool;
begin
  result := TCkEmail_SetRelatedFilename(_map(349, 'CkEmail_SetRelatedFilename'))
    (objHandle, index, path);
end;

function CkEmail_SetReplacePattern (objHandle: HCkEmail; pattern: PWideChar; replaceString: PWideChar): wordbool;
begin
  result := TCkEmail_SetReplacePattern(_map(350, 'CkEmail_SetReplacePattern'))
    (objHandle, pattern, replaceString);
end;

function CkEmail_SetSigningCert (objHandle: HCkEmail; cert: HCkCert): wordbool;
begin
  result := TCkEmail_SetSigningCert(_map(351, 'CkEmail_SetSigningCert'))
    (objHandle, cert);
end;

function CkEmail_SetSigningCert2 (objHandle: HCkEmail; cert: HCkCert; key: HCkPrivateKey): wordbool;
begin
  result := TCkEmail_SetSigningCert2(_map(352, 'CkEmail_SetSigningCert2'))
    (objHandle, cert, key);
end;

procedure CkEmail_SetTextBody (objHandle: HCkEmail; bodyText: PWideChar; contentType: PWideChar);
begin
  TCkEmail_SetTextBody(_map(353, 'CkEmail_SetTextBody'))
    (objHandle, bodyText, contentType);
end;

function CkEmail_ToDsn (objHandle: HCkEmail; explanation: PWideChar; statusFields: PWideChar; headerOnly: wordbool; dsnEmail: HCkEmail): wordbool;
begin
  result := TCkEmail_ToDsn(_map(354, 'CkEmail_ToDsn'))
    (objHandle, explanation, statusFields, headerOnly, dsnEmail);
end;

function CkEmail_ToForward (objHandle: HCkEmail; forward: HCkEmail): wordbool;
begin
  result := TCkEmail_ToForward(_map(355, 'CkEmail_ToForward'))
    (objHandle, forward);
end;

function CkEmail_ToMdn (objHandle: HCkEmail; message: PWideChar; statusFields: PWideChar; headerOnly: wordbool; mdn: HCkEmail): wordbool;
begin
  result := TCkEmail_ToMdn(_map(356, 'CkEmail_ToMdn'))
    (objHandle, message, statusFields, headerOnly, mdn);
end;

function CkEmail_ToReply (objHandle: HCkEmail; reply: HCkEmail): wordbool;
begin
  result := TCkEmail_ToReply(_map(357, 'CkEmail_ToReply'))
    (objHandle, reply);
end;

function CkEmail_UidlEquals (objHandle: HCkEmail; e: HCkEmail): wordbool;
begin
  result := TCkEmail_UidlEquals(_map(358, 'CkEmail_UidlEquals'))
    (objHandle, e);
end;

function CkEmail_UnpackHtml (objHandle: HCkEmail; unpackDir: PWideChar; htmlFilename: PWideChar; partsSubdir: PWideChar): wordbool;
begin
  result := TCkEmail_UnpackHtml(_map(359, 'CkEmail_UnpackHtml'))
    (objHandle, unpackDir, htmlFilename, partsSubdir);
end;

procedure CkEmail_UnSpamify (objHandle: HCkEmail);
begin
  TCkEmail_UnSpamify(_map(360, 'CkEmail_UnSpamify'))
    (objHandle);
end;

function CkEmail_UnzipAttachments (objHandle: HCkEmail): wordbool;
begin
  result := TCkEmail_UnzipAttachments(_map(361, 'CkEmail_UnzipAttachments'))
    (objHandle);
end;

function CkEmail_UseCertVault (objHandle: HCkEmail; vault: HCkXmlCertVault): wordbool;
begin
  result := TCkEmail_UseCertVault(_map(362, 'CkEmail_UseCertVault'))
    (objHandle, vault);
end;

function CkEmail_ZipAttachments (objHandle: HCkEmail; zipFilename: PWideChar): wordbool;
begin
  result := TCkEmail_ZipAttachments(_map(363, 'CkEmail_ZipAttachments'))
    (objHandle, zipFilename);
end;

end.
