📄 jmail.tli
字号:
inline VARIANT_BOOL ISMTPMail::GetReturnReceipt ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_ReturnReceipt(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ISMTPMail::PutReturnReceipt ( VARIANT_BOOL Value ) {
HRESULT _hr = put_ReturnReceipt(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT ISMTPMail::LogCustomMessage ( _bstr_t Message ) {
HRESULT _hr = raw_LogCustomMessage(Message);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _bstr_t ISMTPMail::GetLog ( ) {
BSTR _result;
HRESULT _hr = get_Log(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline VARIANT_BOOL ISMTPMail::GetLogging ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Logging(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ISMTPMail::PutLogging ( VARIANT_BOOL Value ) {
HRESULT _hr = put_Logging(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t ISMTPMail::GetHTMLBody ( ) {
BSTR _result;
HRESULT _hr = get_HTMLBody(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void ISMTPMail::PutHTMLBody ( _bstr_t Value ) {
HRESULT _hr = put_HTMLBody(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT ISMTPMail::Close ( ) {
HRESULT _hr = raw_Close();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline VARIANT_BOOL ISMTPMail::GetISOEncodeHeaders ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_ISOEncodeHeaders(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ISMTPMail::PutISOEncodeHeaders ( VARIANT_BOOL Value ) {
HRESULT _hr = put_ISOEncodeHeaders(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT ISMTPMail::ClearCustomHeaders ( ) {
HRESULT _hr = raw_ClearCustomHeaders();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline VARIANT_BOOL ISMTPMail::GetUsePipelining ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_UsePipelining(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ISMTPMail::PutUsePipelining ( VARIANT_BOOL Value ) {
HRESULT _hr = put_UsePipelining(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL ISMTPMail::GetSilent ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Silent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ISMTPMail::PutSilent ( VARIANT_BOOL Value ) {
HRESULT _hr = put_Silent(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long ISMTPMail::GetErrorCode ( ) {
long _result;
HRESULT _hr = get_ErrorCode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t ISMTPMail::GetErrorMessage ( ) {
BSTR _result;
HRESULT _hr = get_ErrorMessage(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t ISMTPMail::GetErrorSource ( ) {
BSTR _result;
HRESULT _hr = get_ErrorSource(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline VARIANT_BOOL ISMTPMail::GetSimpleLayout ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_SimpleLayout(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ISMTPMail::PutSimpleLayout ( VARIANT_BOOL Value ) {
HRESULT _hr = put_SimpleLayout(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT ISMTPMail::GetMessageBodyFromURL ( _bstr_t bstrURL, _bstr_t bstrAuth ) {
HRESULT _hr = raw_GetMessageBodyFromURL(bstrURL, bstrAuth);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _bstr_t ISMTPMail::AddURLAttachment ( _bstr_t bstrURL, _bstr_t bstrAttachAs, _bstr_t bstrAuth ) {
BSTR _result;
HRESULT _hr = raw_AddURLAttachment(bstrURL, bstrAttachAs, bstrAuth, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline HRESULT ISMTPMail::ExtractEmailAddressesFromURL ( _bstr_t bstrURL, _bstr_t bstrAuth ) {
HRESULT _hr = raw_ExtractEmailAddressesFromURL(bstrURL, bstrAuth);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _bstr_t ISMTPMail::GetRecipients ( ) {
BSTR _result;
HRESULT _hr = get_Recipients(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline DATE ISMTPMail::GetDeferredDelivery ( ) {
DATE _result;
HRESULT _hr = get_DeferredDelivery(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ISMTPMail::PutDeferredDelivery ( DATE Value ) {
HRESULT _hr = put_DeferredDelivery(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t ISMTPMail::GetVersion ( ) {
BSTR _result;
HRESULT _hr = get_Version(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline long ISMTPMail::GetMemCount ( ) {
long _result;
HRESULT _hr = get_MemCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long ISMTPMail::GetMemSize ( ) {
long _result;
HRESULT _hr = get_MemSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IMessagePtr ISMTPMail::GetMessage ( ) {
struct IMessage * _result;
HRESULT _hr = get_Message(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMessagePtr(_result, false);
}
inline void ISMTPMail::PutMessage ( struct IMessage * Value ) {
HRESULT _hr = put_Message(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface IPGPKeys wrapper method implementations
//
inline long IPGPKeys::GetCount ( ) {
long _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IPGPKeyInfoPtr IPGPKeys::GetItem ( long index ) {
struct IPGPKeyInfo * _result;
HRESULT _hr = get_Item(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IPGPKeyInfoPtr(_result, false);
}
inline HRESULT IPGPKeys::AddKey ( struct IPGPKeyInfo * key ) {
HRESULT _hr = raw_AddKey(key);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface IPGPKeyInfo wrapper method implementations
//
inline _bstr_t IPGPKeyInfo::GetKeyUser ( ) {
BSTR _result;
HRESULT _hr = get_KeyUser(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IPGPKeyInfo::GetKeyID ( ) {
BSTR _result;
HRESULT _hr = get_KeyID(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IPGPKeyInfo::GetKeyCreationDate ( ) {
BSTR _result;
HRESULT _hr = get_KeyCreationDate(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
//
// interface IMailMerge wrapper method implementations
//
inline VARIANT_BOOL IMailMerge::GetMergeAttachments ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_MergeAttachments(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMailMerge::PutMergeAttachments ( VARIANT_BOOL Value ) {
HRESULT _hr = put_MergeAttachments(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline IMessagePtr IMailMerge::GetMailTemplate ( ) {
struct IMessage * _result;
HRESULT _hr = get_MailTemplate(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMessagePtr(_result, false);
}
inline void IMailMerge::PutMailTemplate ( struct IMessage * Value ) {
HRESULT _hr = put_MailTemplate(Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT IMailMerge::SetDebugMode ( _bstr_t TestMailAddress, long TestCount ) {
HRESULT _hr = raw_SetDebugMode(TestMailAddress, TestCount);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _bstr_t IMailMerge::GetItem ( _bstr_t VariableName ) {
BSTR _result;
HRESULT _hr = get_Item(VariableName, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IMailMerge::PutItem ( _bstr_t VariableName, _bstr_t Value ) {
HRESULT _hr = put_Item(VariableName, Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline IMessagePtr IMailMerge::Expand ( ) {
struct IMessage * _result;
HRESULT _hr = raw_Expand(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMessagePtr(_result, false);
}
inline IMessagePtr IMailMerge::ExpandFromRecordSet ( const _variant_t & RecordSet ) {
struct IMessage * _result;
HRESULT _hr = raw_ExpandFromRecordSet(RecordSet, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMessagePtr(_result, false);
}
inline HRESULT IMailMerge::BulkMerge ( const _variant_t & RecordSet, VARIANT_BOOL enque, _bstr_t Maildestination ) {
HRESULT _hr = raw_BulkMerge(RecordSet, enque, Maildestination);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface ISpeedMailer wrapper method implementations
//
inline HRESULT ISpeedMailer::SendMail ( _bstr_t FromEMail, _bstr_t RecipientEMails, _bstr_t Subject, _bstr_t Body, _bstr_t MailServers ) {
HRESULT _hr = raw_SendMail(FromEMail, RecipientEMails, Subject, Body, MailServers);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ISpeedMailer::EnqueMail ( _bstr_t FromEMail, _bstr_t RecipientEMails, _bstr_t Subject, _bstr_t Body, _bstr_t MsPickupdirectory ) {
HRESULT _hr = raw_EnqueMail(FromEMail, RecipientEMails, Subject, Body, MsPickupdirectory);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ISpeedMailer::SendXMLMail ( _bstr_t XML ) {
HRESULT _hr = raw_SendXMLMail(XML);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface IPGPDecodeResult wrapper method implementations
//
inline VARIANT_BOOL IPGPDecodeResult::GetSigningUsed ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_SigningUsed(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL IPGPDecodeResult::GetSignatureGood ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_SignatureGood(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL IPGPDecodeResult::GetSuccess ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Success(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPGPDecodeResult::GetPGPErrorCode ( ) {
long _result;
HRESULT _hr = get_PGPErrorCode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t IPGPDecodeResult::GetPGPErrorMsg ( ) {
BSTR _result;
HRESULT _hr = get_PGPErrorMsg(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline VARIANT_BOOL IPGPDecodeResult::GetEncryptionUsed ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_EncryptionUsed(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface IPGPDecodeResults wrapper method implementations
//
inline IPGPDecodeResultPtr IPGPDecodeResults::GetBody ( ) {
struct IPGPDecodeResult * _result;
HRESULT _hr = get_Body(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IPGPDecodeResultPtr(_result, false);
}
inline IPGPDecodeResultPtr IPGPDecodeResults::GetHTMLBody ( ) {
struct IPGPDecodeResult * _result;
HRESULT _hr = get_HTMLBody(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IPGPDecodeResultPtr(_result, false);
}
inline IPGPDecodeResultCollectionPtr IPGPDecodeResults::GetAttachments ( ) {
struct IPGPDecodeResultCollection * _result;
HRESULT _hr = get_Attachments(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IPGPDecodeResultCollectionPtr(_result, false);
}
//
// interface IPGPDecodeResultCollection wrapper method implementations
//
inline long IPGPDecodeResultCollection::GetCount ( ) {
long _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IPGPDecodeResultPtr IPGPDecodeResultCollection::GetItem ( long index ) {
struct IPGPDecodeResult * _result;
HRESULT _hr = get_Item(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IPGPDecodeResultPtr(_result, false);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -