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

📄 jmail.tlh

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

#pragma once
#pragma pack(push, 8)

#include <comdef.h>

namespace jmail {

//
// Forward references and typedefs
//

struct __declspec(uuid("607a06fe-2fda-4adc-854d-d016d98d83db"))
/* dual interface */ IPOP3;
struct /* coclass */ POP3;
struct __declspec(uuid("684130b2-2b8a-4e8d-be71-8f4052882076"))
/* dual interface */ IMessages;
struct /* coclass */ Messages;
struct __declspec(uuid("3a037057-57f0-4904-a1e0-ad0ea2fb564e"))
/* dual interface */ IMessage;
struct /* coclass */ Message;
struct __declspec(uuid("cf2ed965-e0ba-4fe4-ade2-38bd48f112e8"))
/* dual interface */ IHeaders;
struct /* coclass */ Headers;
struct __declspec(uuid("56930358-ad72-408f-83c4-a2b0dc8037b2"))
/* dual interface */ IRecipients;
struct /* coclass */ Recipients;
struct __declspec(uuid("65c53be7-ed21-4c25-b189-da0e8fad5231"))
/* dual interface */ IRecipient;
struct /* coclass */ Recipient;
struct __declspec(uuid("1e6d8684-755d-4847-bf40-68ec5e4bc1e9"))
/* dual interface */ IAttachments;
struct /* coclass */ Attachments;
struct __declspec(uuid("952f0b99-50b6-44b3-ae0d-700d5b98b416"))
/* dual interface */ IAttachment;
struct /* coclass */ Attachment;
struct __declspec(uuid("aed3a6b1-2171-11d2-b77c-0008c73aca8f"))
/* dual interface */ ISMTPMail;
struct /* coclass */ SMTPMail;
struct __declspec(uuid("14e61a41-8846-11d2-b7e4-0008c73aca8f"))
/* dual interface */ IPOP3Mail;
struct /* coclass */ POP3Mail;
struct __declspec(uuid("23e86816-772b-4b28-a924-a135cff6469a"))
/* dual interface */ IPGPKeys;
struct /* coclass */ PGPKeys;
struct __declspec(uuid("b89d0e7a-0f5b-40ee-8af3-08fa2ed9534f"))
/* dual interface */ IPGPKeyInfo;
struct /* coclass */ PGPKeyInfo;
struct __declspec(uuid("0c21b3b1-2b11-45f2-8a9e-dcc5032de98a"))
/* dual interface */ IMailMerge;
struct /* coclass */ MailMerge;
struct __declspec(uuid("821aafe5-2f19-47eb-aca9-3b4c1d64ac27"))
/* dual interface */ ISpeedMailer;
struct /* coclass */ SpeedMailer;
struct __declspec(uuid("e05aea1e-bcb1-473a-8b2a-4829d9e1ad23"))
/* dual interface */ IPGPDecodeResult;
struct /* coclass */ PGPDecodeResult;
struct __declspec(uuid("08b9999c-dad2-4353-b25b-8ccaffca4d16"))
/* dual interface */ IPGPDecodeResults;
struct /* coclass */ PGPDecodeResults;
struct __declspec(uuid("41dba1fa-44f6-4bd5-82df-1a7fdea0475d"))
/* dual interface */ IPGPDecodeResultCollection;
struct /* coclass */ PGPDecodeResultCollection;

//
// Smart pointer typedef declarations
//

_COM_SMARTPTR_TYPEDEF(IPOP3, __uuidof(IPOP3));
_COM_SMARTPTR_TYPEDEF(IMessages, __uuidof(IMessages));
_COM_SMARTPTR_TYPEDEF(IMessage, __uuidof(IMessage));
_COM_SMARTPTR_TYPEDEF(IHeaders, __uuidof(IHeaders));
_COM_SMARTPTR_TYPEDEF(IRecipients, __uuidof(IRecipients));
_COM_SMARTPTR_TYPEDEF(IRecipient, __uuidof(IRecipient));
_COM_SMARTPTR_TYPEDEF(IAttachments, __uuidof(IAttachments));
_COM_SMARTPTR_TYPEDEF(IAttachment, __uuidof(IAttachment));
_COM_SMARTPTR_TYPEDEF(ISMTPMail, __uuidof(ISMTPMail));
_COM_SMARTPTR_TYPEDEF(IPOP3Mail, __uuidof(IPOP3Mail));
_COM_SMARTPTR_TYPEDEF(IPGPKeys, __uuidof(IPGPKeys));
_COM_SMARTPTR_TYPEDEF(IPGPKeyInfo, __uuidof(IPGPKeyInfo));
_COM_SMARTPTR_TYPEDEF(IMailMerge, __uuidof(IMailMerge));
_COM_SMARTPTR_TYPEDEF(ISpeedMailer, __uuidof(ISpeedMailer));
_COM_SMARTPTR_TYPEDEF(IPGPDecodeResult, __uuidof(IPGPDecodeResult));
_COM_SMARTPTR_TYPEDEF(IPGPDecodeResults, __uuidof(IPGPDecodeResults));
_COM_SMARTPTR_TYPEDEF(IPGPDecodeResultCollection, __uuidof(IPGPDecodeResultCollection));

//
// Type library items
//

struct __declspec(uuid("607a06fe-2fda-4adc-854d-d016d98d83db"))
IPOP3 : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetCount))
    long Count;
    __declspec(property(get=GetSize))
    long Size;
    __declspec(property(get=GetMessages))
    IMessagesPtr Messages;
    __declspec(property(get=GetLog))
    _bstr_t Log;
    __declspec(property(get=GetLogging,put=PutLogging))
    VARIANT_BOOL Logging;
    __declspec(property(get=GetTimeout,put=PutTimeout))
    long Timeout;

    //
    // Wrapper methods for error-handling
    //

    HRESULT Connect (
        _bstr_t Username,
        _bstr_t Password,
        _bstr_t Server,
        long Port );
    HRESULT Disconnect ( );
    _bstr_t GetLog ( );
    VARIANT_BOOL GetLogging ( );
    void PutLogging (
        VARIANT_BOOL Log );
    long GetCount ( );
    long GetSize ( );
    IMessagesPtr GetMessages ( );
    long GetLastUnreadMessage ( );
    HRESULT DownloadSingleHeader (
        long MessageID );
    HRESULT DeleteSingleMessage (
        long MessageID );
    HRESULT DownloadHeaders ( );
    HRESULT DownloadMessages ( );
    _bstr_t GetMessageUID (
        long MessageID );
    HRESULT DeleteMessages ( );
    HRESULT DownloadUnreadMessages ( );
    IMessagePtr DownloadSingleMessage (
        long index );
    long GetTimeout ( );
    void PutTimeout (
        long Value );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall raw_Connect (
        BSTR Username,
        BSTR Password,
        BSTR Server,
        long Port ) = 0;
    virtual HRESULT __stdcall raw_Disconnect ( ) = 0;
    virtual HRESULT __stdcall get_Log (
        BSTR * Value ) = 0;
    virtual HRESULT __stdcall get_Logging (
        VARIANT_BOOL * Log ) = 0;
    virtual HRESULT __stdcall put_Logging (
        VARIANT_BOOL Log ) = 0;
    virtual HRESULT __stdcall get_Count (
        long * Value ) = 0;
    virtual HRESULT __stdcall get_Size (
        long * Value ) = 0;
    virtual HRESULT __stdcall get_Messages (
        struct IMessages * * Value ) = 0;
    virtual HRESULT __stdcall raw_GetLastUnreadMessage (
        long * Value ) = 0;
    virtual HRESULT __stdcall raw_DownloadSingleHeader (
        long MessageID ) = 0;
    virtual HRESULT __stdcall raw_DeleteSingleMessage (
        long MessageID ) = 0;
    virtual HRESULT __stdcall raw_DownloadHeaders ( ) = 0;
    virtual HRESULT __stdcall raw_DownloadMessages ( ) = 0;
    virtual HRESULT __stdcall raw_GetMessageUID (
        long MessageID,
        BSTR * Value ) = 0;
    virtual HRESULT __stdcall raw_DeleteMessages ( ) = 0;
    virtual HRESULT __stdcall raw_DownloadUnreadMessages ( ) = 0;
    virtual HRESULT __stdcall raw_DownloadSingleMessage (
        long index,
        struct IMessage * * result ) = 0;
    virtual HRESULT __stdcall get_Timeout (
        long * Value ) = 0;
    virtual HRESULT __stdcall put_Timeout (
        long Value ) = 0;
};

struct __declspec(uuid("f812b147-0e26-4222-8ee4-9f753cd2b39c"))
POP3;
    // [ default ] interface IPOP3

struct __declspec(uuid("684130b2-2b8a-4e8d-be71-8f4052882076"))
IMessages : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetItem,put=PutItem))
    IMessagePtr Item[];
    __declspec(property(get=GetCount))
    long Count;

    //
    // Wrapper methods for error-handling
    //

    long GetCount ( );
    HRESULT Clear ( );
    IMessagePtr GetItem (
        long index );
    void PutItem (
        long index,
        struct IMessage * Value );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Count (
        long * Value ) = 0;
    virtual HRESULT __stdcall raw_Clear ( ) = 0;
    virtual HRESULT __stdcall get_Item (
        long index,
        struct IMessage * * Value ) = 0;
    virtual HRESULT __stdcall put_Item (
        long index,
        struct IMessage * Value ) = 0;
};

struct __declspec(uuid("a62c8bdb-d1fc-4fdd-a2a2-eeff73262a41"))
Messages;
    // [ default ] interface IMessages

struct __declspec(uuid("3a037057-57f0-4904-a1e0-ad0ea2fb564e"))
IMessage : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetBodyText))
    _bstr_t BodyText;
    __declspec(property(get=GetDate))
    DATE Date;
    __declspec(property(get=GetEnvelope,put=PutEnvelope))
    IUnknownPtr Envelope;
    __declspec(property(get=GetSize))
    long Size;
    __declspec(property(get=GetHeaders))
    IHeadersPtr Headers;
    __declspec(property(get=GetRecipients))
    IRecipientsPtr Recipients;
    __declspec(property(get=GetAttachments))
    IAttachmentsPtr Attachments;
    __declspec(property(get=GetReplyTo,put=PutReplyTo))
    _bstr_t ReplyTo;
    __declspec(property(get=GetText))
    _bstr_t Text;
    __declspec(property(get=GetHideRecipients,put=PutHideRecipients))
    _bstr_t HideRecipients;
    __declspec(property(get=GetMailDomain,put=PutMailDomain))
    _bstr_t MailDomain;
    __declspec(property(get=GetCharset,put=PutCharset))
    _bstr_t Charset;
    __declspec(property(get=GetContentTransferEncoding,put=PutContentTransferEncoding))
    _bstr_t ContentTransferEncoding;
    __declspec(property(get=GetMimeVersion,put=PutMimeVersion))
    _bstr_t MimeVersion;
    __declspec(property(get=GetEncoding,put=PutEncoding))
    _bstr_t Encoding;
    __declspec(property(get=GetReturnReceipt,put=PutReturnReceipt))
    VARIANT_BOOL ReturnReceipt;
    __declspec(property(get=GetSubject,put=PutSubject))
    _bstr_t Subject;
    __declspec(property(get=GetFrom,put=PutFrom))
    _bstr_t From;
    __declspec(property(get=GetFromName,put=PutFromName))
    _bstr_t FromName;
    __declspec(property(get=GetBody,put=PutBody))
    _bstr_t Body;
    __declspec(property(get=GetPriority,put=PutPriority))
    unsigned char Priority;
    __declspec(property(get=GetContentType,put=PutContentType))
    _bstr_t ContentType;
    __declspec(property(get=GetLog))
    _bstr_t Log;
    __declspec(property(get=GetLogging,put=PutLogging))
    VARIANT_BOOL Logging;
    __declspec(property(get=GetHTMLBody,put=PutHTMLBody))
    _bstr_t HTMLBody;
    __declspec(property(get=GetISOEncodeHeaders,put=PutISOEncodeHeaders))
    VARIANT_BOOL ISOEncodeHeaders;
    __declspec(property(get=GetUsePipelining,put=PutUsePipelining))
    VARIANT_BOOL UsePipelining;
    __declspec(property(get=GetSilent,put=PutSilent))
    VARIANT_BOOL Silent;
    __declspec(property(get=GetErrorCode))
    long ErrorCode;
    __declspec(property(get=GetErrorMessage))
    _bstr_t ErrorMessage;
    __declspec(property(get=GetErrorSource))
    _bstr_t ErrorSource;
    __declspec(property(get=GetSimpleLayout,put=PutSimpleLayout))
    VARIANT_BOOL SimpleLayout;
    __declspec(property(get=GetRecipientsString))
    _bstr_t RecipientsString;
    __declspec(property(get=GetDeferredDelivery,put=PutDeferredDelivery))
    DATE DeferredDelivery;
    __declspec(property(get=GetMailData))
    _bstr_t MailData;
    __declspec(property(get=GetAbout))
    _bstr_t About;
    __declspec(property(get=GetEncryptAttachments,put=PutEncryptAttachments))
    VARIANT_BOOL EncryptAttachments;
    __declspec(property(get=GetMsPickupdirectory,put=PutMsPickupdirectory))
    _bstr_t MsPickupdirectory;
    __declspec(property(get=GetPGPEncrypt,put=PutPGPEncrypt))
    VARIANT_BOOL PGPEncrypt;
    __declspec(property(get=GetPGPSign,put=PutPGPSign))
    VARIANT_BOOL PGPSign;
    __declspec(property(get=GetPGPPassphrase,put=PutPGPPassphrase))
    _bstr_t PGPPassphrase;
    __declspec(property(get=GetPGPSignkey,put=PutPGPSignkey))
    _bstr_t PGPSignkey;
    __declspec(property(get=GetVersion))
    _bstr_t Version;
    __declspec(property(get=GetMailServerUserName,put=PutMailServerUserName))
    _bstr_t MailServerUserName;
    __declspec(property(get=GetMailServerPassWord,put=PutMailServerPassWord))
    _bstr_t MailServerPassWord;
    __declspec(property(get=GetEnableCharsetTranslation,put=PutEnableCharsetTranslation))
    VARIANT_BOOL EnableCharsetTranslation;

    //
    // Wrapper methods for error-handling
    //

    DATE GetDate ( );
    long GetSize ( );
    HRESULT LoadFromStream (
        IUnknown * Stream );
    HRESULT SaveToStream (
        IUnknown * Stream );
    HRESULT ParseMessage (
        _bstr_t MessageSource );
    _bstr_t GetText ( );
    IHeadersPtr GetHeaders ( );
    IRecipientsPtr GetRecipients ( );
    IAttachmentsPtr GetAttachments ( );
    _bstr_t GetSubject ( );
    void PutSubject (
        _bstr_t Value );
    _bstr_t GetFrom ( );
    void PutFrom (
        _bstr_t Value );
    _bstr_t GetFromName ( );
    void PutFromName (
        _bstr_t Value );
    _bstr_t GetBody ( );
    void PutBody (
        _bstr_t Value );
    unsigned char GetPriority ( );
    void PutPriority (
        unsigned char Value );
    _bstr_t GetContentType ( );
    void PutContentType (
        _bstr_t Value );
    VARIANT_BOOL Send (
        _bstr_t mailServer,
        VARIANT_BOOL enque );
    _bstr_t GetBodyText ( );
    _bstr_t DecodeHeader (
        _bstr_t Header );
    HRESULT SendToNewsGroup (
        _bstr_t ServerName,
        _bstr_t Newsgroups );
    IUnknownPtr GetEnvelope ( );
    void PutEnvelope (
        IUnknown * Value );
    _bstr_t GetMsPickupdirectory ( );
    void PutMsPickupdirectory (
        _bstr_t Value );
    HRESULT nq ( );
    IPGPKeysPtr KeyInformation (
        _bstr_t keyIdentifier );
    VARIANT_BOOL GetPGPEncrypt ( );
    void PutPGPEncrypt (
        VARIANT_BOOL Value );
    VARIANT_BOOL GetPGPSign ( );
    void PutPGPSign (
        VARIANT_BOOL Value );
    _bstr_t GetPGPPassphrase ( );
    void PutPGPPassphrase (
        _bstr_t passPhrase );
    _bstr_t GetPGPSignkey ( );
    void PutPGPSignkey (
        _bstr_t signKey );
    _bstr_t GetReplyTo ( );
    void PutReplyTo (
        _bstr_t Value );
    _bstr_t GetHideRecipients ( );
    void PutHideRecipients (
        _bstr_t Value );
    _bstr_t GetMailDomain ( );
    void PutMailDomain (
        _bstr_t Value );
    _bstr_t GetCharset ( );
    void PutCharset (
        _bstr_t Value );
    _bstr_t GetContentTransferEncoding ( );
    void PutContentTransferEncoding (
        _bstr_t Value );
    _bstr_t GetMimeVersion ( );
    void PutMimeVersion (
        _bstr_t Value );
    _bstr_t GetEncoding ( );
    void PutEncoding (
        _bstr_t Value );
    VARIANT_BOOL GetReturnReceipt ( );
    void PutReturnReceipt (
        VARIANT_BOOL Value );
    HRESULT LogCustomMessage (
        _bstr_t Message );
    _bstr_t GetLog ( );

⌨️ 快捷键说明

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