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

📄 msnmsgr.tlh

📁 获取MSN Messenger的联系人列表的C++程序源代码
💻 TLH
📖 第 1 页 / 共 2 页
字号:
        IDispatch * pMContact,
        MISTATUS mStatus );
    HRESULT OnContactPropertyChange (
        long hr,
        IDispatch * pContact,
        MCONTACTPROPERTY ePropType,
        const _variant_t & vPropVal );
    HRESULT OnContactBlockChange (
        long hr,
        IDispatch * pContact,
        VARIANT_BOOL pBoolBlock );
    HRESULT OnContactPagerChange (
        long hr,
        IDispatch * pContact,
        VARIANT_BOOL pBoolPage );
    HRESULT OnContactPhoneChange (
        long hr,
        IDispatch * pContact,
        MPHONE_TYPE PhoneType,
        _bstr_t bstrNumber );
    HRESULT OnUnreadEmailChange (
        MUAFOLDER mFolder,
        long cUnreadEmail,
        VARIANT_BOOL * pBoolfEnableDefault );
};

struct __declspec(uuid("d6b0e4c8-fad6-4885-b271-0dc5a584adf8"))
IMessengerWindow : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetHWND))
    long HWND;
    __declspec(property(get=GetLeft,put=PutLeft))
    long Left;
    __declspec(property(get=GetTop,put=PutTop))
    long Top;
    __declspec(property(get=GetWidth,put=PutWidth))
    long Width;
    __declspec(property(get=GetHeight,put=PutHeight))
    long Height;
    __declspec(property(get=GetIsClosed))
    VARIANT_BOOL IsClosed;
    __declspec(property(get=GetProperty,put=PutProperty))
    _variant_t Property[];

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

    HRESULT Close ( );
    long GetHWND ( );
    long GetLeft ( );
    void PutLeft (
        long plLeft );
    long GetTop ( );
    void PutTop (
        long plTop );
    long GetWidth ( );
    void PutWidth (
        long plWidth );
    long GetHeight ( );
    void PutHeight (
        long plHeight );
    VARIANT_BOOL GetIsClosed ( );
    HRESULT Show ( );
    _variant_t GetProperty (
        MWINDOWPROPERTY ePropType );
    void PutProperty (
        MWINDOWPROPERTY ePropType,
        const _variant_t & pvPropVal );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall raw_Close ( ) = 0;
    virtual HRESULT __stdcall get_HWND (
        long * phWnd ) = 0;
    virtual HRESULT __stdcall get_Left (
        long * plLeft ) = 0;
    virtual HRESULT __stdcall put_Left (
        long plLeft ) = 0;
    virtual HRESULT __stdcall get_Top (
        long * plTop ) = 0;
    virtual HRESULT __stdcall put_Top (
        long plTop ) = 0;
    virtual HRESULT __stdcall get_Width (
        long * plWidth ) = 0;
    virtual HRESULT __stdcall put_Width (
        long plWidth ) = 0;
    virtual HRESULT __stdcall get_Height (
        long * plHeight ) = 0;
    virtual HRESULT __stdcall put_Height (
        long plHeight ) = 0;
    virtual HRESULT __stdcall get_IsClosed (
        VARIANT_BOOL * pBoolClose ) = 0;
    virtual HRESULT __stdcall raw_Show ( ) = 0;
    virtual HRESULT __stdcall get_Property (
        MWINDOWPROPERTY ePropType,
        VARIANT * pvPropVal ) = 0;
    virtual HRESULT __stdcall put_Property (
        MWINDOWPROPERTY ePropType,
        VARIANT pvPropVal ) = 0;
};

enum __MIDL___MIDL_itf_msgrua_0000_0005
{
    MWINDOWPROP_INVALID_PROPERTY = -1,
    MWINDOWPROP_VIEW_SIDEBAR = 0,
    MWINDOWPROP_VIEW_TOOLBAR = 1
};

struct __declspec(uuid("d6b0e4c9-fad6-4885-b271-0dc5a584adf8"))
IMessengerConversationWnd : IMessengerWindow
{
    //
    // Property data
    //

    __declspec(property(get=GetContacts))
    IDispatchPtr Contacts;
    __declspec(property(get=GetHistory))
    _bstr_t History;

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

    IDispatchPtr GetContacts ( );
    _bstr_t GetHistory ( );
    HRESULT AddContact (
        const _variant_t & vContact );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Contacts (
        IDispatch * * pContacts ) = 0;
    virtual HRESULT __stdcall get_History (
        BSTR * bstrHistoryText ) = 0;
    virtual HRESULT __stdcall raw_AddContact (
        VARIANT vContact ) = 0;
};

struct __declspec(uuid("e7479a0f-bb19-44a5-968f-6f41d93ee0bc"))
IMessengerContact : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetFriendlyName))
    _bstr_t FriendlyName;
    __declspec(property(get=GetStatus))
    MISTATUS Status;
    __declspec(property(get=GetSigninName))
    _bstr_t SigninName;
    __declspec(property(get=GetServiceName))
    _bstr_t ServiceName;
    __declspec(property(get=GetBlocked,put=PutBlocked))
    VARIANT_BOOL Blocked;
    __declspec(property(get=GetIsSelf))
    VARIANT_BOOL IsSelf;
    __declspec(property(get=GetProperty,put=PutProperty))
    _variant_t Property[];
    __declspec(property(get=GetCanPage))
    VARIANT_BOOL CanPage;
    __declspec(property(get=GetPhoneNumber))
    _bstr_t PhoneNumber[];
    __declspec(property(get=GetServiceId))
    _bstr_t ServiceId;

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

    _bstr_t GetFriendlyName ( );
    MISTATUS GetStatus ( );
    _bstr_t GetSigninName ( );
    _bstr_t GetServiceName ( );
    VARIANT_BOOL GetBlocked ( );
    void PutBlocked (
        VARIANT_BOOL pBoolBlock );
    VARIANT_BOOL GetCanPage ( );
    _bstr_t GetPhoneNumber (
        MPHONE_TYPE PhoneType );
    VARIANT_BOOL GetIsSelf ( );
    _variant_t GetProperty (
        MCONTACTPROPERTY ePropType );
    void PutProperty (
        MCONTACTPROPERTY ePropType,
        const _variant_t & pvPropVal );
    _bstr_t GetServiceId ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_FriendlyName (
        BSTR * pbstrFriendlyName ) = 0;
    virtual HRESULT __stdcall get_Status (
        MISTATUS * pMstate ) = 0;
    virtual HRESULT __stdcall get_SigninName (
        BSTR * pbstrSigninName ) = 0;
    virtual HRESULT __stdcall get_ServiceName (
        BSTR * pbstrServiceName ) = 0;
    virtual HRESULT __stdcall get_Blocked (
        VARIANT_BOOL * pBoolBlock ) = 0;
    virtual HRESULT __stdcall put_Blocked (
        VARIANT_BOOL pBoolBlock ) = 0;
    virtual HRESULT __stdcall get_CanPage (
        VARIANT_BOOL * pBoolPage ) = 0;
    virtual HRESULT __stdcall get_PhoneNumber (
        MPHONE_TYPE PhoneType,
        BSTR * bstrNumber ) = 0;
    virtual HRESULT __stdcall get_IsSelf (
        VARIANT_BOOL * pBoolSelf ) = 0;
    virtual HRESULT __stdcall get_Property (
        MCONTACTPROPERTY ePropType,
        VARIANT * pvPropVal ) = 0;
    virtual HRESULT __stdcall put_Property (
        MCONTACTPROPERTY ePropType,
        VARIANT pvPropVal ) = 0;
    virtual HRESULT __stdcall get_ServiceId (
        BSTR * pbstrServiceId ) = 0;
};

struct __declspec(uuid("e7479a0d-bb19-44a5-968f-6f41d93ee0bc"))
IMessengerContacts : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetCount))
    long Count;
    __declspec(property(get=Get_NewEnum))
    IUnknownPtr _NewEnum;

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

    long GetCount ( );
    IDispatchPtr Item (
        long Index );
    HRESULT Remove (
        IDispatch * pMContact );
    IUnknownPtr Get_NewEnum ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Count (
        long * pcContacts ) = 0;
    virtual HRESULT __stdcall raw_Item (
        long Index,
        IDispatch * * ppMContact ) = 0;
    virtual HRESULT __stdcall raw_Remove (
        IDispatch * pMContact ) = 0;
    virtual HRESULT __stdcall get__NewEnum (
        IUnknown * * ppUnknown ) = 0;
};

struct __declspec(uuid("2e50547c-a8aa-4f60-b57e-1f414711007b"))
IMessengerService : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetServiceName))
    _bstr_t ServiceName;
    __declspec(property(get=GetMyFriendlyName))
    _bstr_t MyFriendlyName;
    __declspec(property(get=GetMyStatus))
    MISTATUS MyStatus;
    __declspec(property(get=GetProperty,put=PutProperty))
    _variant_t Property[];
    __declspec(property(get=GetServiceId))
    _bstr_t ServiceId;
    __declspec(property(get=GetMySigninName))
    _bstr_t MySigninName;

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

    _bstr_t GetServiceName ( );
    _bstr_t GetServiceId ( );
    _bstr_t GetMyFriendlyName ( );
    MISTATUS GetMyStatus ( );
    _bstr_t GetMySigninName ( );
    _variant_t GetProperty (
        MSERVICEPROPERTY ePropType );
    void PutProperty (
        MSERVICEPROPERTY ePropType,
        const _variant_t & pvPropVal );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_ServiceName (
        BSTR * pbstrServiceName ) = 0;
    virtual HRESULT __stdcall get_ServiceId (
        BSTR * pbstrID ) = 0;
    virtual HRESULT __stdcall get_MyFriendlyName (
        BSTR * pbstrName ) = 0;
    virtual HRESULT __stdcall get_MyStatus (
        MISTATUS * pmiStatus ) = 0;
    virtual HRESULT __stdcall get_MySigninName (
        BSTR * pbstrName ) = 0;
    virtual HRESULT __stdcall get_Property (
        MSERVICEPROPERTY ePropType,
        VARIANT * pvPropVal ) = 0;
    virtual HRESULT __stdcall put_Property (
        MSERVICEPROPERTY ePropType,
        VARIANT pvPropVal ) = 0;
};

enum __MIDL___MIDL_itf_msgrua_0000_0009
{
    MSERVICEPROP_INVALID_PROPERTY = -1
};

struct __declspec(uuid("2e50547b-a8aa-4f60-b57e-1f414711007b"))
IMessengerServices : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetPrimaryService))
    IDispatchPtr PrimaryService;
    __declspec(property(get=GetCount))
    long Count;
    __declspec(property(get=Get_NewEnum))
    IUnknownPtr _NewEnum;

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

    IDispatchPtr GetPrimaryService ( );
    long GetCount ( );
    IDispatchPtr Item (
        long Index );
    IUnknownPtr Get_NewEnum ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_PrimaryService (
        IDispatch * * ppService ) = 0;
    virtual HRESULT __stdcall get_Count (
        long * pcServices ) = 0;
    virtual HRESULT __stdcall raw_Item (
        long Index,
        IDispatch * * ppService ) = 0;
    virtual HRESULT __stdcall get__NewEnum (
        IUnknown * * ppUnknown ) = 0;
};

struct __declspec(uuid("e1af1038-b884-44cb-a535-1c3c11a3d1db"))
IMessengerGroup : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetContacts))
    IDispatchPtr Contacts;
    __declspec(property(get=GetName,put=PutName))
    _bstr_t Name;
    __declspec(property(get=GetService))
    IDispatchPtr Service;

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

    IDispatchPtr GetContacts ( );
    _bstr_t GetName ( );
    void PutName (
        _bstr_t bstrName );
    HRESULT AddContact (
        const _variant_t & vContact );
    HRESULT RemoveContact (
        const _variant_t & vContact );
    IDispatchPtr GetService ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall get_Contacts (
        IDispatch * * ppMContacts ) = 0;
    virtual HRESULT __stdcall get_Name (
        BSTR * bstrName ) = 0;
    virtual HRESULT __stdcall put_Name (
        BSTR bstrName ) = 0;
    virtual HRESULT __stdcall raw_AddContact (
        VARIANT vContact ) = 0;
    virtual HRESULT __stdcall raw_RemoveContact (
        VARIANT vContact ) = 0;
    virtual HRESULT __stdcall get_Service (
        IDispatch * * pService ) = 0;
};

struct __declspec(uuid("e1af1028-b884-44cb-a535-1c3c11a3d1db"))
IMessengerGroups : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetCount))
    long Count;
    __declspec(property(get=Get_NewEnum))
    IUnknownPtr _NewEnum;

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

    HRESULT Remove (
        IDispatch * pGroup );
    long GetCount ( );
    IDispatchPtr Item (
        long Index );
    IUnknownPtr Get_NewEnum ( );

    //
    // Raw methods provided by interface
    //

    virtual HRESULT __stdcall raw_Remove (
        IDispatch * pGroup ) = 0;
    virtual HRESULT __stdcall get_Count (
        long * pcCount ) = 0;
    virtual HRESULT __stdcall raw_Item (
        long Index,
        IDispatch * * ppMGroup ) = 0;
    virtual HRESULT __stdcall get__NewEnum (
        IUnknown * * ppUnknown ) = 0;
};

struct __declspec(uuid("b69003b3-c55e-4b48-836c-bc5946fc3b28"))
Messenger;
    // [ default ] interface IMessenger3
    // [ default, source ] dispinterface DMessengerEvents

//
// Wrapper method implementations
//

#include "msnmsgr.tli"

#pragma pack(pop)

⌨️ 快捷键说明

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