⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jmail.tli

📁 本压缩软件为《Visual C++6.0基础教程》(黑魔方系列)一书的源代码
💻 TLI
📖 第 1 页 / 共 4 页
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (14b0b1cc).
//
// jmail.tli
//
// Wrapper implementations for Win32 type library ..\jmail.dll
// compiler-generated file created 03/14/04 at 14:37:26 - DO NOT EDIT!

#pragma once

//
// interface IPOP3 wrapper method implementations
//

inline HRESULT IPOP3::Connect ( _bstr_t Username, _bstr_t Password, _bstr_t Server, long Port ) {
    HRESULT _hr = raw_Connect(Username, Password, Server, Port);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IPOP3::Disconnect ( ) {
    HRESULT _hr = raw_Disconnect();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t IPOP3::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 IPOP3::GetLogging ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_Logging(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IPOP3::PutLogging ( VARIANT_BOOL Log ) {
    HRESULT _hr = put_Logging(Log);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IPOP3::GetCount ( ) {
    long _result;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPOP3::GetSize ( ) {
    long _result;
    HRESULT _hr = get_Size(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IMessagesPtr IPOP3::GetMessages ( ) {
    struct IMessages * _result;
    HRESULT _hr = get_Messages(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMessagesPtr(_result, false);
}

inline long IPOP3::GetLastUnreadMessage ( ) {
    long _result;
    HRESULT _hr = raw_GetLastUnreadMessage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IPOP3::DownloadSingleHeader ( long MessageID ) {
    HRESULT _hr = raw_DownloadSingleHeader(MessageID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IPOP3::DeleteSingleMessage ( long MessageID ) {
    HRESULT _hr = raw_DeleteSingleMessage(MessageID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IPOP3::DownloadHeaders ( ) {
    HRESULT _hr = raw_DownloadHeaders();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IPOP3::DownloadMessages ( ) {
    HRESULT _hr = raw_DownloadMessages();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t IPOP3::GetMessageUID ( long MessageID ) {
    BSTR _result;
    HRESULT _hr = raw_GetMessageUID(MessageID, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT IPOP3::DeleteMessages ( ) {
    HRESULT _hr = raw_DeleteMessages();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IPOP3::DownloadUnreadMessages ( ) {
    HRESULT _hr = raw_DownloadUnreadMessages();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline IMessagePtr IPOP3::DownloadSingleMessage ( long index ) {
    struct IMessage * _result;
    HRESULT _hr = raw_DownloadSingleMessage(index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMessagePtr(_result, false);
}

inline long IPOP3::GetTimeout ( ) {
    long _result;
    HRESULT _hr = get_Timeout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IPOP3::PutTimeout ( long Value ) {
    HRESULT _hr = put_Timeout(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface IMessages wrapper method implementations
//

inline long IMessages::GetCount ( ) {
    long _result;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IMessages::Clear ( ) {
    HRESULT _hr = raw_Clear();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline IMessagePtr IMessages::GetItem ( long index ) {
    struct IMessage * _result;
    HRESULT _hr = get_Item(index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMessagePtr(_result, false);
}

inline void IMessages::PutItem ( long index, struct IMessage * Value ) {
    HRESULT _hr = put_Item(index, Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface IMessage wrapper method implementations
//

inline DATE IMessage::GetDate ( ) {
    DATE _result;
    HRESULT _hr = get_Date(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IMessage::GetSize ( ) {
    long _result;
    HRESULT _hr = get_Size(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IMessage::LoadFromStream ( IUnknown * Stream ) {
    HRESULT _hr = raw_LoadFromStream(Stream);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IMessage::SaveToStream ( IUnknown * Stream ) {
    HRESULT _hr = raw_SaveToStream(Stream);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IMessage::ParseMessage ( _bstr_t MessageSource ) {
    HRESULT _hr = raw_ParseMessage(MessageSource);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t IMessage::GetText ( ) {
    BSTR _result;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline IHeadersPtr IMessage::GetHeaders ( ) {
    struct IHeaders * _result;
    HRESULT _hr = get_Headers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IHeadersPtr(_result, false);
}

inline IRecipientsPtr IMessage::GetRecipients ( ) {
    struct IRecipients * _result;
    HRESULT _hr = get_Recipients(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IRecipientsPtr(_result, false);
}

inline IAttachmentsPtr IMessage::GetAttachments ( ) {
    struct IAttachments * _result;
    HRESULT _hr = get_Attachments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IAttachmentsPtr(_result, false);
}

inline _bstr_t IMessage::GetSubject ( ) {
    BSTR _result;
    HRESULT _hr = get_Subject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMessage::PutSubject ( _bstr_t Value ) {
    HRESULT _hr = put_Subject(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMessage::GetFrom ( ) {
    BSTR _result;
    HRESULT _hr = get_From(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMessage::PutFrom ( _bstr_t Value ) {
    HRESULT _hr = put_From(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMessage::GetFromName ( ) {
    BSTR _result;
    HRESULT _hr = get_FromName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMessage::PutFromName ( _bstr_t Value ) {
    HRESULT _hr = put_FromName(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMessage::GetBody ( ) {
    BSTR _result;
    HRESULT _hr = get_Body(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMessage::PutBody ( _bstr_t Value ) {
    HRESULT _hr = put_Body(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline unsigned char IMessage::GetPriority ( ) {
    unsigned char _result;
    HRESULT _hr = get_Priority(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMessage::PutPriority ( unsigned char Value ) {
    HRESULT _hr = put_Priority(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMessage::GetContentType ( ) {
    BSTR _result;
    HRESULT _hr = get_ContentType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMessage::PutContentType ( _bstr_t Value ) {
    HRESULT _hr = put_ContentType(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IMessage::Send ( _bstr_t mailServer, VARIANT_BOOL enque ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_Send(mailServer, enque, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t IMessage::GetBodyText ( ) {
    BSTR _result;
    HRESULT _hr = get_BodyText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t IMessage::DecodeHeader ( _bstr_t Header ) {
    BSTR _result;
    HRESULT _hr = raw_DecodeHeader(Header, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT IMessage::SendToNewsGroup ( _bstr_t ServerName, _bstr_t Newsgroups ) {
    HRESULT _hr = raw_SendToNewsGroup(ServerName, Newsgroups);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline IUnknownPtr IMessage::GetEnvelope ( ) {
    IUnknown * _result;
    HRESULT _hr = get_Envelope(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline void IMessage::PutEnvelope ( IUnknown * Value ) {
    HRESULT _hr = put_Envelope(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMessage::GetMsPickupdirectory ( ) {
    BSTR _result;
    HRESULT _hr = get_MsPickupdirectory(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMessage::PutMsPickupdirectory ( _bstr_t Value ) {
    HRESULT _hr = put_MsPickupdirectory(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT IMessage::nq ( ) {
    HRESULT _hr = raw_nq();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline IPGPKeysPtr IMessage::KeyInformation ( _bstr_t keyIdentifier ) {
    struct IPGPKeys * _result;
    HRESULT _hr = raw_KeyInformation(keyIdentifier, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IPGPKeysPtr(_result, false);
}

inline VARIANT_BOOL IMessage::GetPGPEncrypt ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_PGPEncrypt(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMessage::PutPGPEncrypt ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PGPEncrypt(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IMessage::GetPGPSign ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_PGPSign(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMessage::PutPGPSign ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PGPSign(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMessage::GetPGPPassphrase ( ) {
    BSTR _result;
    HRESULT _hr = get_PGPPassphrase(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMessage::PutPGPPassphrase ( _bstr_t passPhrase ) {
    HRESULT _hr = put_PGPPassphrase(passPhrase);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMessage::GetPGPSignkey ( ) {
    BSTR _result;
    HRESULT _hr = get_PGPSignkey(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMessage::PutPGPSignkey ( _bstr_t signKey ) {
    HRESULT _hr = put_PGPSignkey(signKey);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMessage::GetReplyTo ( ) {
    BSTR _result;
    HRESULT _hr = get_ReplyTo(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMessage::PutReplyTo ( _bstr_t Value ) {
    HRESULT _hr = put_ReplyTo(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMessage::GetHideRecipients ( ) {
    BSTR _result;
    HRESULT _hr = get_HideRecipients(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -