pEpCOMServerAdapter_i.h
author Volker Birk <vb@pep-project.org>
Sat, 30 May 2015 01:30:02 +0200
changeset 29 c4e98d9de729
parent 28 528c520d6374
child 30 5c5f423e79e6
permissions -rw-r--r--
bugfix
     1 
     2 
     3 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
     4 
     5 
     6  /* File created by MIDL compiler version 8.00.0603 */
     7 /* at Sat May 30 01:09:44 2015
     8  */
     9 /* Compiler settings for pEpCOMServerAdapter.idl:
    10     Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 8.00.0603 
    11     protocol : dce , ms_ext, c_ext, robust
    12     error checks: allocation ref bounds_check enum stub_data 
    13     VC __declspec() decoration level: 
    14          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
    15          DECLSPEC_UUID(), MIDL_INTERFACE()
    16 */
    17 /* @@MIDL_FILE_HEADING(  ) */
    18 
    19 #pragma warning( disable: 4049 )  /* more than 64k source lines */
    20 
    21 
    22 /* verify that the <rpcndr.h> version is high enough to compile this file*/
    23 #ifndef __REQUIRED_RPCNDR_H_VERSION__
    24 #define __REQUIRED_RPCNDR_H_VERSION__ 475
    25 #endif
    26 
    27 #include "rpc.h"
    28 #include "rpcndr.h"
    29 
    30 #ifndef __RPCNDR_H_VERSION__
    31 #error this stub requires an updated version of <rpcndr.h>
    32 #endif // __RPCNDR_H_VERSION__
    33 
    34 #ifndef COM_NO_WINDOWS_H
    35 #include "windows.h"
    36 #include "ole2.h"
    37 #endif /*COM_NO_WINDOWS_H*/
    38 
    39 #ifndef __pEpCOMServerAdapter_i_h__
    40 #define __pEpCOMServerAdapter_i_h__
    41 
    42 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
    43 #pragma once
    44 #endif
    45 
    46 /* Forward Declarations */ 
    47 
    48 #ifndef __ITextMessage_FWD_DEFINED__
    49 #define __ITextMessage_FWD_DEFINED__
    50 typedef interface ITextMessage ITextMessage;
    51 
    52 #endif 	/* __ITextMessage_FWD_DEFINED__ */
    53 
    54 
    55 #ifndef __IpEpEngine_FWD_DEFINED__
    56 #define __IpEpEngine_FWD_DEFINED__
    57 typedef interface IpEpEngine IpEpEngine;
    58 
    59 #endif 	/* __IpEpEngine_FWD_DEFINED__ */
    60 
    61 
    62 #ifndef ___IpEpEngineEvents_FWD_DEFINED__
    63 #define ___IpEpEngineEvents_FWD_DEFINED__
    64 typedef interface _IpEpEngineEvents _IpEpEngineEvents;
    65 
    66 #endif 	/* ___IpEpEngineEvents_FWD_DEFINED__ */
    67 
    68 
    69 #ifndef __pEpEngine_FWD_DEFINED__
    70 #define __pEpEngine_FWD_DEFINED__
    71 
    72 #ifdef __cplusplus
    73 typedef class pEpEngine pEpEngine;
    74 #else
    75 typedef struct pEpEngine pEpEngine;
    76 #endif /* __cplusplus */
    77 
    78 #endif 	/* __pEpEngine_FWD_DEFINED__ */
    79 
    80 
    81 #ifndef ___ITextMessageEvents_FWD_DEFINED__
    82 #define ___ITextMessageEvents_FWD_DEFINED__
    83 typedef interface _ITextMessageEvents _ITextMessageEvents;
    84 
    85 #endif 	/* ___ITextMessageEvents_FWD_DEFINED__ */
    86 
    87 
    88 #ifndef __TextMessage_FWD_DEFINED__
    89 #define __TextMessage_FWD_DEFINED__
    90 
    91 #ifdef __cplusplus
    92 typedef class TextMessage TextMessage;
    93 #else
    94 typedef struct TextMessage TextMessage;
    95 #endif /* __cplusplus */
    96 
    97 #endif 	/* __TextMessage_FWD_DEFINED__ */
    98 
    99 
   100 /* header files for imported files */
   101 #include "oaidl.h"
   102 #include "ocidl.h"
   103 
   104 #ifdef __cplusplus
   105 extern "C"{
   106 #endif 
   107 
   108 
   109 #ifndef __ITextMessage_INTERFACE_DEFINED__
   110 #define __ITextMessage_INTERFACE_DEFINED__
   111 
   112 /* interface ITextMessage */
   113 /* [unique][nonextensible][oleautomation][uuid][object] */ 
   114 
   115 typedef 
   116 enum _pEp_text_format
   117     {
   118         pEp_text_format_plain	= 0,
   119         pEp_text_format_html	= ( pEp_text_format_plain + 1 ) ,
   120         pEp_text_format_other	= 0xff
   121     } 	pEp_text_format;
   122 
   123 typedef 
   124 enum _pEp_msg_direction
   125     {
   126         pEp_dir_incoming	= 0,
   127         pEp_dir_outgoing	= ( pEp_dir_incoming + 1 ) 
   128     } 	pEp_msg_direction;
   129 
   130 typedef 
   131 enum _pEp_MIME_format
   132     {
   133         pEp_MIME_none	= 0,
   134         pEp_MIME_fields_omitted	= ( pEp_MIME_none + 1 ) ,
   135         pEp_MIME	= ( pEp_MIME_fields_omitted + 1 ) 
   136     } 	pEp_MIME_format;
   137 
   138 typedef 
   139 enum _pEp_enc_format
   140     {
   141         pEp_enc_none	= 0,
   142         pEp_enc_pieces	= ( pEp_enc_none + 1 ) ,
   143         pEp_enc_S_MIME	= ( pEp_enc_pieces + 1 ) ,
   144         pEp_enc_PGP_MIME	= ( pEp_enc_S_MIME + 1 ) ,
   145         pEp_enc_pEp	= ( pEp_enc_PGP_MIME + 1 ) 
   146     } 	pEp_enc_format;
   147 
   148 /* [uuid] */ struct  DECLSPEC_UUID("1292C31A-6486-427F-B29F-7F03607836DC") opt_field
   149     {
   150     BSTR name;
   151     BSTR value;
   152     } ;
   153 
   154 EXTERN_C const IID IID_ITextMessage;
   155 
   156 #if defined(__cplusplus) && !defined(CINTERFACE)
   157     
   158     MIDL_INTERFACE("161538F9-53C8-4D9C-8BA4-0FB43AEC7106")
   159     ITextMessage : public IUnknown
   160     {
   161     public:
   162         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_dir( 
   163             /* [retval][out] */ pEp_msg_direction *pVal) = 0;
   164         
   165         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_dir( 
   166             /* [in] */ pEp_msg_direction newVal) = 0;
   167         
   168         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_id( 
   169             /* [retval][out] */ BSTR *pVal) = 0;
   170         
   171         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_id( 
   172             /* [in] */ BSTR newVal) = 0;
   173         
   174         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_shortmsg( 
   175             /* [retval][out] */ BSTR *pVal) = 0;
   176         
   177         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_shortmsg( 
   178             /* [in] */ BSTR newVal) = 0;
   179         
   180         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_longmsg( 
   181             /* [retval][out] */ BSTR *pVal) = 0;
   182         
   183         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_longmsg( 
   184             /* [in] */ BSTR newVal) = 0;
   185         
   186         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_longmsg_formatted( 
   187             /* [retval][out] */ BSTR *pVal) = 0;
   188         
   189         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_longmsg_formatted( 
   190             /* [in] */ BSTR newVal) = 0;
   191         
   192         virtual HRESULT STDMETHODCALLTYPE add_attachment( 
   193             /* [in] */ SAFEARRAY * data,
   194             /* [in] */ BSTR mime_type,
   195             /* [in] */ BSTR filename) = 0;
   196         
   197         virtual HRESULT STDMETHODCALLTYPE has_attachments( 
   198             /* [retval][out] */ boolean *result) = 0;
   199         
   200         virtual HRESULT STDMETHODCALLTYPE next_attachment( 
   201             /* [out] */ SAFEARRAY * *data,
   202             /* [out] */ BSTR *mime_type,
   203             /* [out] */ BSTR *filename,
   204             /* [retval][out] */ boolean *result) = 0;
   205         
   206         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_sent( 
   207             /* [retval][out] */ hyper *result) = 0;
   208         
   209         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_sent( 
   210             /* [in] */ hyper val) = 0;
   211         
   212         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_recv( 
   213             /* [retval][out] */ hyper *result) = 0;
   214         
   215         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_recv( 
   216             /* [in] */ hyper val) = 0;
   217         
   218         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_from( 
   219             /* [retval][out] */ struct pEp_identity_s *pVal) = 0;
   220         
   221         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_from( 
   222             /* [in] */ struct pEp_identity_s *newVal) = 0;
   223         
   224         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_to( 
   225             /* [retval][out] */ SAFEARRAY * *pVal) = 0;
   226         
   227         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_to( 
   228             /* [in] */ SAFEARRAY * newVal) = 0;
   229         
   230         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_recv_by( 
   231             /* [retval][out] */ struct pEp_identity_s *pVal) = 0;
   232         
   233         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_recv_by( 
   234             /* [in] */ struct pEp_identity_s *newVal) = 0;
   235         
   236         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_cc( 
   237             /* [retval][out] */ SAFEARRAY * *pVal) = 0;
   238         
   239         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_cc( 
   240             /* [in] */ SAFEARRAY * newVal) = 0;
   241         
   242         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_bcc( 
   243             /* [retval][out] */ SAFEARRAY * *pVal) = 0;
   244         
   245         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_bcc( 
   246             /* [in] */ SAFEARRAY * newVal) = 0;
   247         
   248         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_reply_to( 
   249             /* [retval][out] */ SAFEARRAY * *pVal) = 0;
   250         
   251         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_reply_to( 
   252             /* [in] */ SAFEARRAY * newVal) = 0;
   253         
   254         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_references( 
   255             /* [retval][out] */ SAFEARRAY * *pVal) = 0;
   256         
   257         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_references( 
   258             /* [in] */ SAFEARRAY * newVal) = 0;
   259         
   260         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_keywords( 
   261             /* [retval][out] */ SAFEARRAY * *pVal) = 0;
   262         
   263         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_keywords( 
   264             /* [in] */ SAFEARRAY * newVal) = 0;
   265         
   266         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_comments( 
   267             /* [retval][out] */ BSTR *pVal) = 0;
   268         
   269         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_comments( 
   270             /* [in] */ BSTR newVal) = 0;
   271         
   272         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_opt_fields( 
   273             /* [retval][out] */ SAFEARRAY * *pVal) = 0;
   274         
   275         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_opt_fields( 
   276             /* [in] */ SAFEARRAY * newVal) = 0;
   277         
   278     };
   279     
   280     
   281 #else 	/* C style interface */
   282 
   283     typedef struct ITextMessageVtbl
   284     {
   285         BEGIN_INTERFACE
   286         
   287         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
   288             ITextMessage * This,
   289             /* [in] */ REFIID riid,
   290             /* [annotation][iid_is][out] */ 
   291             _COM_Outptr_  void **ppvObject);
   292         
   293         ULONG ( STDMETHODCALLTYPE *AddRef )( 
   294             ITextMessage * This);
   295         
   296         ULONG ( STDMETHODCALLTYPE *Release )( 
   297             ITextMessage * This);
   298         
   299         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_dir )( 
   300             ITextMessage * This,
   301             /* [retval][out] */ pEp_msg_direction *pVal);
   302         
   303         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_dir )( 
   304             ITextMessage * This,
   305             /* [in] */ pEp_msg_direction newVal);
   306         
   307         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_id )( 
   308             ITextMessage * This,
   309             /* [retval][out] */ BSTR *pVal);
   310         
   311         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_id )( 
   312             ITextMessage * This,
   313             /* [in] */ BSTR newVal);
   314         
   315         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_shortmsg )( 
   316             ITextMessage * This,
   317             /* [retval][out] */ BSTR *pVal);
   318         
   319         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_shortmsg )( 
   320             ITextMessage * This,
   321             /* [in] */ BSTR newVal);
   322         
   323         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_longmsg )( 
   324             ITextMessage * This,
   325             /* [retval][out] */ BSTR *pVal);
   326         
   327         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_longmsg )( 
   328             ITextMessage * This,
   329             /* [in] */ BSTR newVal);
   330         
   331         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_longmsg_formatted )( 
   332             ITextMessage * This,
   333             /* [retval][out] */ BSTR *pVal);
   334         
   335         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_longmsg_formatted )( 
   336             ITextMessage * This,
   337             /* [in] */ BSTR newVal);
   338         
   339         HRESULT ( STDMETHODCALLTYPE *add_attachment )( 
   340             ITextMessage * This,
   341             /* [in] */ SAFEARRAY * data,
   342             /* [in] */ BSTR mime_type,
   343             /* [in] */ BSTR filename);
   344         
   345         HRESULT ( STDMETHODCALLTYPE *has_attachments )( 
   346             ITextMessage * This,
   347             /* [retval][out] */ boolean *result);
   348         
   349         HRESULT ( STDMETHODCALLTYPE *next_attachment )( 
   350             ITextMessage * This,
   351             /* [out] */ SAFEARRAY * *data,
   352             /* [out] */ BSTR *mime_type,
   353             /* [out] */ BSTR *filename,
   354             /* [retval][out] */ boolean *result);
   355         
   356         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_sent )( 
   357             ITextMessage * This,
   358             /* [retval][out] */ hyper *result);
   359         
   360         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_sent )( 
   361             ITextMessage * This,
   362             /* [in] */ hyper val);
   363         
   364         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_recv )( 
   365             ITextMessage * This,
   366             /* [retval][out] */ hyper *result);
   367         
   368         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_recv )( 
   369             ITextMessage * This,
   370             /* [in] */ hyper val);
   371         
   372         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_from )( 
   373             ITextMessage * This,
   374             /* [retval][out] */ struct pEp_identity_s *pVal);
   375         
   376         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_from )( 
   377             ITextMessage * This,
   378             /* [in] */ struct pEp_identity_s *newVal);
   379         
   380         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_to )( 
   381             ITextMessage * This,
   382             /* [retval][out] */ SAFEARRAY * *pVal);
   383         
   384         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_to )( 
   385             ITextMessage * This,
   386             /* [in] */ SAFEARRAY * newVal);
   387         
   388         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_recv_by )( 
   389             ITextMessage * This,
   390             /* [retval][out] */ struct pEp_identity_s *pVal);
   391         
   392         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_recv_by )( 
   393             ITextMessage * This,
   394             /* [in] */ struct pEp_identity_s *newVal);
   395         
   396         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_cc )( 
   397             ITextMessage * This,
   398             /* [retval][out] */ SAFEARRAY * *pVal);
   399         
   400         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_cc )( 
   401             ITextMessage * This,
   402             /* [in] */ SAFEARRAY * newVal);
   403         
   404         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_bcc )( 
   405             ITextMessage * This,
   406             /* [retval][out] */ SAFEARRAY * *pVal);
   407         
   408         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_bcc )( 
   409             ITextMessage * This,
   410             /* [in] */ SAFEARRAY * newVal);
   411         
   412         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_reply_to )( 
   413             ITextMessage * This,
   414             /* [retval][out] */ SAFEARRAY * *pVal);
   415         
   416         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_reply_to )( 
   417             ITextMessage * This,
   418             /* [in] */ SAFEARRAY * newVal);
   419         
   420         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_references )( 
   421             ITextMessage * This,
   422             /* [retval][out] */ SAFEARRAY * *pVal);
   423         
   424         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_references )( 
   425             ITextMessage * This,
   426             /* [in] */ SAFEARRAY * newVal);
   427         
   428         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_keywords )( 
   429             ITextMessage * This,
   430             /* [retval][out] */ SAFEARRAY * *pVal);
   431         
   432         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_keywords )( 
   433             ITextMessage * This,
   434             /* [in] */ SAFEARRAY * newVal);
   435         
   436         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_comments )( 
   437             ITextMessage * This,
   438             /* [retval][out] */ BSTR *pVal);
   439         
   440         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_comments )( 
   441             ITextMessage * This,
   442             /* [in] */ BSTR newVal);
   443         
   444         /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_opt_fields )( 
   445             ITextMessage * This,
   446             /* [retval][out] */ SAFEARRAY * *pVal);
   447         
   448         /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_opt_fields )( 
   449             ITextMessage * This,
   450             /* [in] */ SAFEARRAY * newVal);
   451         
   452         END_INTERFACE
   453     } ITextMessageVtbl;
   454 
   455     interface ITextMessage
   456     {
   457         CONST_VTBL struct ITextMessageVtbl *lpVtbl;
   458     };
   459 
   460     
   461 
   462 #ifdef COBJMACROS
   463 
   464 
   465 #define ITextMessage_QueryInterface(This,riid,ppvObject)	\
   466     ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 
   467 
   468 #define ITextMessage_AddRef(This)	\
   469     ( (This)->lpVtbl -> AddRef(This) ) 
   470 
   471 #define ITextMessage_Release(This)	\
   472     ( (This)->lpVtbl -> Release(This) ) 
   473 
   474 
   475 #define ITextMessage_get_dir(This,pVal)	\
   476     ( (This)->lpVtbl -> get_dir(This,pVal) ) 
   477 
   478 #define ITextMessage_put_dir(This,newVal)	\
   479     ( (This)->lpVtbl -> put_dir(This,newVal) ) 
   480 
   481 #define ITextMessage_get_id(This,pVal)	\
   482     ( (This)->lpVtbl -> get_id(This,pVal) ) 
   483 
   484 #define ITextMessage_put_id(This,newVal)	\
   485     ( (This)->lpVtbl -> put_id(This,newVal) ) 
   486 
   487 #define ITextMessage_get_shortmsg(This,pVal)	\
   488     ( (This)->lpVtbl -> get_shortmsg(This,pVal) ) 
   489 
   490 #define ITextMessage_put_shortmsg(This,newVal)	\
   491     ( (This)->lpVtbl -> put_shortmsg(This,newVal) ) 
   492 
   493 #define ITextMessage_get_longmsg(This,pVal)	\
   494     ( (This)->lpVtbl -> get_longmsg(This,pVal) ) 
   495 
   496 #define ITextMessage_put_longmsg(This,newVal)	\
   497     ( (This)->lpVtbl -> put_longmsg(This,newVal) ) 
   498 
   499 #define ITextMessage_get_longmsg_formatted(This,pVal)	\
   500     ( (This)->lpVtbl -> get_longmsg_formatted(This,pVal) ) 
   501 
   502 #define ITextMessage_put_longmsg_formatted(This,newVal)	\
   503     ( (This)->lpVtbl -> put_longmsg_formatted(This,newVal) ) 
   504 
   505 #define ITextMessage_add_attachment(This,data,mime_type,filename)	\
   506     ( (This)->lpVtbl -> add_attachment(This,data,mime_type,filename) ) 
   507 
   508 #define ITextMessage_has_attachments(This,result)	\
   509     ( (This)->lpVtbl -> has_attachments(This,result) ) 
   510 
   511 #define ITextMessage_next_attachment(This,data,mime_type,filename,result)	\
   512     ( (This)->lpVtbl -> next_attachment(This,data,mime_type,filename,result) ) 
   513 
   514 #define ITextMessage_get_sent(This,result)	\
   515     ( (This)->lpVtbl -> get_sent(This,result) ) 
   516 
   517 #define ITextMessage_put_sent(This,val)	\
   518     ( (This)->lpVtbl -> put_sent(This,val) ) 
   519 
   520 #define ITextMessage_get_recv(This,result)	\
   521     ( (This)->lpVtbl -> get_recv(This,result) ) 
   522 
   523 #define ITextMessage_put_recv(This,val)	\
   524     ( (This)->lpVtbl -> put_recv(This,val) ) 
   525 
   526 #define ITextMessage_get_from(This,pVal)	\
   527     ( (This)->lpVtbl -> get_from(This,pVal) ) 
   528 
   529 #define ITextMessage_put_from(This,newVal)	\
   530     ( (This)->lpVtbl -> put_from(This,newVal) ) 
   531 
   532 #define ITextMessage_get_to(This,pVal)	\
   533     ( (This)->lpVtbl -> get_to(This,pVal) ) 
   534 
   535 #define ITextMessage_put_to(This,newVal)	\
   536     ( (This)->lpVtbl -> put_to(This,newVal) ) 
   537 
   538 #define ITextMessage_get_recv_by(This,pVal)	\
   539     ( (This)->lpVtbl -> get_recv_by(This,pVal) ) 
   540 
   541 #define ITextMessage_put_recv_by(This,newVal)	\
   542     ( (This)->lpVtbl -> put_recv_by(This,newVal) ) 
   543 
   544 #define ITextMessage_get_cc(This,pVal)	\
   545     ( (This)->lpVtbl -> get_cc(This,pVal) ) 
   546 
   547 #define ITextMessage_put_cc(This,newVal)	\
   548     ( (This)->lpVtbl -> put_cc(This,newVal) ) 
   549 
   550 #define ITextMessage_get_bcc(This,pVal)	\
   551     ( (This)->lpVtbl -> get_bcc(This,pVal) ) 
   552 
   553 #define ITextMessage_put_bcc(This,newVal)	\
   554     ( (This)->lpVtbl -> put_bcc(This,newVal) ) 
   555 
   556 #define ITextMessage_get_reply_to(This,pVal)	\
   557     ( (This)->lpVtbl -> get_reply_to(This,pVal) ) 
   558 
   559 #define ITextMessage_put_reply_to(This,newVal)	\
   560     ( (This)->lpVtbl -> put_reply_to(This,newVal) ) 
   561 
   562 #define ITextMessage_get_references(This,pVal)	\
   563     ( (This)->lpVtbl -> get_references(This,pVal) ) 
   564 
   565 #define ITextMessage_put_references(This,newVal)	\
   566     ( (This)->lpVtbl -> put_references(This,newVal) ) 
   567 
   568 #define ITextMessage_get_keywords(This,pVal)	\
   569     ( (This)->lpVtbl -> get_keywords(This,pVal) ) 
   570 
   571 #define ITextMessage_put_keywords(This,newVal)	\
   572     ( (This)->lpVtbl -> put_keywords(This,newVal) ) 
   573 
   574 #define ITextMessage_get_comments(This,pVal)	\
   575     ( (This)->lpVtbl -> get_comments(This,pVal) ) 
   576 
   577 #define ITextMessage_put_comments(This,newVal)	\
   578     ( (This)->lpVtbl -> put_comments(This,newVal) ) 
   579 
   580 #define ITextMessage_get_opt_fields(This,pVal)	\
   581     ( (This)->lpVtbl -> get_opt_fields(This,pVal) ) 
   582 
   583 #define ITextMessage_put_opt_fields(This,newVal)	\
   584     ( (This)->lpVtbl -> put_opt_fields(This,newVal) ) 
   585 
   586 #endif /* COBJMACROS */
   587 
   588 
   589 #endif 	/* C style interface */
   590 
   591 
   592 
   593 
   594 #endif 	/* __ITextMessage_INTERFACE_DEFINED__ */
   595 
   596 
   597 #ifndef __IpEpEngine_INTERFACE_DEFINED__
   598 #define __IpEpEngine_INTERFACE_DEFINED__
   599 
   600 /* interface IpEpEngine */
   601 /* [unique][nonextensible][oleautomation][uuid][object] */ 
   602 
   603 typedef 
   604 enum _pEp_STATUS
   605     {
   606         pEp_STATUS_OK	= 0,
   607         pEp_KEY_NOT_FOUND	= 0x201,
   608         pEp_KEY_HAS_AMBIG_NAME	= 0x202,
   609         pEp_GET_KEY_FAILED	= 0x203,
   610         pEp_UNENCRYPTED	= 0x400,
   611         pEp_VERIFIED	= 0x401,
   612         pEp_DECRYPTED	= 0x402,
   613         pEp_DECRYPTED_AND_VERIFIED	= 0x403,
   614         pEp_DECRYPT_WRONG_FORMAT	= 0x404,
   615         pEp_DECRYPT_NO_KEY	= 0x405,
   616         pEp_DECRYPT_SIGNATURE_DOES_NOT_MATCH	= 0x406,
   617         pEp_VERIFY_NO_KEY	= 0x407,
   618         pEp_VERIFIED_AND_TRUSTED	= 0x408,
   619         pEp_ILLEGAL_VALUE	= -4,
   620         pEp_BUFFER_TOO_SMALL	= -3,
   621         pEp_OUT_OF_MEMORY	= -2,
   622         pEp_UNKNOWN_ERROR	= -1
   623     } 	pEp_STATUS;
   624 
   625 typedef 
   626 enum _pEp_comm_type
   627     {
   628         pEp_ct_unknown	= 0,
   629         pEp_ct_no_encryption	= 0x1,
   630         pEp_ct_no_encrypted_channel	= 0x2,
   631         pEp_ct_key_not_found	= 0x3,
   632         pEp_ct_key_expired	= 0x4,
   633         pEp_ct_key_revoked	= 0x5,
   634         pEp_ct_key_b0rken	= 0x6,
   635         pEp_ct_my_key_not_included	= 0x9,
   636         pEp_ct_security_by_obscurity	= 0xa,
   637         pEp_ct_b0rken_crypto	= 0xb,
   638         pEp_ct_key_too_short	= 0xe,
   639         pEp_ct_compromized	= 0xf,
   640         pEp_ct_unconfirmed_encryption	= 0x10,
   641         pEp_ct_OpenPGP_1024_RSA_unconfirmed	= 0x11,
   642         pEp_ct_OpenPGP_unconfirmed	= 0x3f,
   643         pEp_ct_unconfirmed_enc_anon	= 0x40,
   644         pEp_ct_pEp_unconfirmed	= 0x7f,
   645         pEp_ct_confirmed	= 0x80,
   646         pEp_ct_confirmed_encryption	= 0x90,
   647         pEp_ct_OpenPGP_1024_RSA	= 0x91,
   648         pEp_ct_OpenPGP	= 0xbf,
   649         pEp_ct_confirmed_enc_anon	= 0xc0,
   650         pEp_ct_pEp	= 0xff
   651     } 	pEp_comm_type;
   652 
   653 /* [uuid] */ struct  DECLSPEC_UUID("0CB90E62-8A6A-4CA0-99D7-481704051FF0") pEp_identity_s
   654     {
   655     BSTR address;
   656     BSTR fpr;
   657     BSTR user_id;
   658     BSTR username;
   659     pEp_comm_type comm_type;
   660     BSTR lang;
   661     } ;
   662 typedef 
   663 enum _pEp_color
   664     {
   665         pEp_rating_undefined	= 0,
   666         pEp_rating_cannot_decrypt	= ( pEp_rating_undefined + 1 ) ,
   667         pEp_rating_have_no_key	= ( pEp_rating_cannot_decrypt + 1 ) ,
   668         pEp_rating_unencrypted	= ( pEp_rating_have_no_key + 1 ) ,
   669         pEp_rating_unreliable	= ( pEp_rating_unencrypted + 1 ) ,
   670         pEp_rating_reliable	= ( pEp_rating_unreliable + 1 ) ,
   671         pEp_rating_yellow	= pEp_rating_reliable,
   672         pEp_rating_trusted	= ( pEp_rating_yellow + 1 ) ,
   673         pEp_rating_green	= pEp_rating_trusted,
   674         pEp_rating_trusted_and_anonymized	= ( pEp_rating_green + 1 ) ,
   675         pEp_rating_fully_anonymous	= ( pEp_rating_trusted_and_anonymized + 1 ) ,
   676         pEp_rating_under_attack	= -1,
   677         pEp_rating_red	= pEp_rating_under_attack,
   678         pEp_rating_b0rken	= -2
   679     } 	pEp_color;
   680 
   681 
   682 EXTERN_C const IID IID_IpEpEngine;
   683 
   684 #if defined(__cplusplus) && !defined(CINTERFACE)
   685     
   686     MIDL_INTERFACE("9A9F4422-CF0A-45D7-90CD-1D1B7B2A4540")
   687     IpEpEngine : public IUnknown
   688     {
   689     public:
   690         virtual HRESULT STDMETHODCALLTYPE log( 
   691             /* [in] */ BSTR title,
   692             /* [in] */ BSTR entity,
   693             /* [defaultvalue][in] */ BSTR description = L"",
   694             /* [defaultvalue][in] */ BSTR comment = L"") = 0;
   695         
   696         virtual HRESULT STDMETHODCALLTYPE decrypt( 
   697             /* [in] */ BSTR ctext,
   698             /* [out] */ BSTR *ptext,
   699             /* [out] */ SAFEARRAY * *key_list,
   700             /* [retval][out] */ pEp_STATUS *decrypt_status) = 0;
   701         
   702         virtual HRESULT STDMETHODCALLTYPE decrypt_b( 
   703             /* [in] */ BSTR ctext,
   704             /* [out] */ SAFEARRAY * *ptext,
   705             /* [out] */ SAFEARRAY * *key_list,
   706             /* [retval][out] */ pEp_STATUS *decrypt_status) = 0;
   707         
   708         virtual HRESULT STDMETHODCALLTYPE encrypt( 
   709             /* [in] */ SAFEARRAY * key_list,
   710             /* [in] */ BSTR ptext,
   711             /* [out] */ BSTR *ctext,
   712             /* [retval][out] */ pEp_STATUS *status) = 0;
   713         
   714         virtual HRESULT STDMETHODCALLTYPE encrypt_b( 
   715             /* [in] */ SAFEARRAY * key_list,
   716             /* [in] */ SAFEARRAY * ptext,
   717             /* [out] */ BSTR *ctext,
   718             /* [retval][out] */ pEp_STATUS *status) = 0;
   719         
   720         virtual HRESULT STDMETHODCALLTYPE verify( 
   721             /* [in] */ BSTR text,
   722             /* [in] */ BSTR signature,
   723             /* [out] */ SAFEARRAY * *key_list,
   724             /* [retval][out] */ pEp_STATUS *verify_status) = 0;
   725         
   726         virtual HRESULT STDMETHODCALLTYPE trustword( 
   727             /* [in] */ LONG value,
   728             /* [defaultvalue][in] */ BSTR lang,
   729             /* [retval][out] */ BSTR *word) = 0;
   730         
   731         virtual HRESULT STDMETHODCALLTYPE trustwords( 
   732             /* [in] */ BSTR fpr,
   733             /* [defaultvalue][in] */ BSTR lang,
   734             /* [defaultvalue][in] */ LONG max_words,
   735             /* [retval][out] */ BSTR *words) = 0;
   736         
   737         virtual HRESULT STDMETHODCALLTYPE get_identity( 
   738             /* [in] */ BSTR address,
   739             /* [retval][out] */ struct pEp_identity_s *ident) = 0;
   740         
   741         virtual HRESULT STDMETHODCALLTYPE set_identity( 
   742             /* [in] */ struct pEp_identity_s *ident) = 0;
   743         
   744         virtual HRESULT STDMETHODCALLTYPE generate_keypair( 
   745             /* [in] */ struct pEp_identity_s *ident,
   746             /* [retval][out] */ BSTR *fpr) = 0;
   747         
   748         virtual HRESULT STDMETHODCALLTYPE delete_keypair( 
   749             /* [in] */ BSTR fpr) = 0;
   750         
   751         virtual HRESULT STDMETHODCALLTYPE import_key( 
   752             /* [in] */ BSTR key_data) = 0;
   753         
   754         virtual HRESULT STDMETHODCALLTYPE import_key_b( 
   755             /* [in] */ SAFEARRAY * key_data) = 0;
   756         
   757         virtual HRESULT STDMETHODCALLTYPE export_key( 
   758             /* [in] */ BSTR fpr,
   759             /* [retval][out] */ BSTR *key_data) = 0;
   760         
   761         virtual HRESULT STDMETHODCALLTYPE recv_key( 
   762             /* [in] */ BSTR pattern) = 0;
   763         
   764         virtual HRESULT STDMETHODCALLTYPE find_keys( 
   765             /* [in] */ BSTR pattern,
   766             /* [retval][out] */ SAFEARRAY * *key_list) = 0;
   767         
   768         virtual HRESULT STDMETHODCALLTYPE send_key( 
   769             /* [in] */ BSTR pattern) = 0;
   770         
   771         virtual HRESULT STDMETHODCALLTYPE start_keyserver_lookup( void) = 0;
   772         
   773         virtual HRESULT STDMETHODCALLTYPE stop_keyserver_lookup( void) = 0;
   774         
   775         virtual HRESULT STDMETHODCALLTYPE examine_identity( 
   776             /* [in] */ struct pEp_identity_s *ident) = 0;
   777         
   778         virtual HRESULT STDMETHODCALLTYPE examine_myself( 
   779             /* [in] */ struct pEp_identity_s *myself) = 0;
   780         
   781         virtual HRESULT STDMETHODCALLTYPE myself( 
   782             /* [in] */ struct pEp_identity_s *ident,
   783             /* [retval][out] */ struct pEp_identity_s *result) = 0;
   784         
   785         virtual HRESULT STDMETHODCALLTYPE update_identity( 
   786             /* [in] */ struct pEp_identity_s *ident,
   787             /* [retval][out] */ struct pEp_identity_s *result) = 0;
   788         
   789         virtual HRESULT STDMETHODCALLTYPE key_compromized( 
   790             /* [in] */ BSTR fpr) = 0;
   791         
   792         virtual HRESULT STDMETHODCALLTYPE encrypt_message( 
   793             /* [in] */ ITextMessage *src,
   794             /* [out] */ ITextMessage **dst,
   795             /* [in] */ SAFEARRAY * extra) = 0;
   796         
   797         virtual HRESULT STDMETHODCALLTYPE decrypt_message( 
   798             /* [in] */ ITextMessage *src,
   799             /* [out] */ ITextMessage **dst,
   800             /* [out] */ SAFEARRAY * *keylist,
   801             /* [retval][out] */ pEp_color *rating) = 0;
   802         
   803         virtual HRESULT STDMETHODCALLTYPE outgoing_message_color( 
   804             /* [in] */ ITextMessage *msg,
   805             /* [retval][out] */ pEp_color *pVal) = 0;
   806         
   807         virtual HRESULT STDMETHODCALLTYPE identity_color( 
   808             /* [in] */ struct pEp_identity_s *ident,
   809             /* [retval][out] */ pEp_color *pVal) = 0;
   810         
   811     };
   812     
   813     
   814 #else 	/* C style interface */
   815 
   816     typedef struct IpEpEngineVtbl
   817     {
   818         BEGIN_INTERFACE
   819         
   820         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
   821             IpEpEngine * This,
   822             /* [in] */ REFIID riid,
   823             /* [annotation][iid_is][out] */ 
   824             _COM_Outptr_  void **ppvObject);
   825         
   826         ULONG ( STDMETHODCALLTYPE *AddRef )( 
   827             IpEpEngine * This);
   828         
   829         ULONG ( STDMETHODCALLTYPE *Release )( 
   830             IpEpEngine * This);
   831         
   832         HRESULT ( STDMETHODCALLTYPE *log )( 
   833             IpEpEngine * This,
   834             /* [in] */ BSTR title,
   835             /* [in] */ BSTR entity,
   836             /* [defaultvalue][in] */ BSTR description,
   837             /* [defaultvalue][in] */ BSTR comment);
   838         
   839         HRESULT ( STDMETHODCALLTYPE *decrypt )( 
   840             IpEpEngine * This,
   841             /* [in] */ BSTR ctext,
   842             /* [out] */ BSTR *ptext,
   843             /* [out] */ SAFEARRAY * *key_list,
   844             /* [retval][out] */ pEp_STATUS *decrypt_status);
   845         
   846         HRESULT ( STDMETHODCALLTYPE *decrypt_b )( 
   847             IpEpEngine * This,
   848             /* [in] */ BSTR ctext,
   849             /* [out] */ SAFEARRAY * *ptext,
   850             /* [out] */ SAFEARRAY * *key_list,
   851             /* [retval][out] */ pEp_STATUS *decrypt_status);
   852         
   853         HRESULT ( STDMETHODCALLTYPE *encrypt )( 
   854             IpEpEngine * This,
   855             /* [in] */ SAFEARRAY * key_list,
   856             /* [in] */ BSTR ptext,
   857             /* [out] */ BSTR *ctext,
   858             /* [retval][out] */ pEp_STATUS *status);
   859         
   860         HRESULT ( STDMETHODCALLTYPE *encrypt_b )( 
   861             IpEpEngine * This,
   862             /* [in] */ SAFEARRAY * key_list,
   863             /* [in] */ SAFEARRAY * ptext,
   864             /* [out] */ BSTR *ctext,
   865             /* [retval][out] */ pEp_STATUS *status);
   866         
   867         HRESULT ( STDMETHODCALLTYPE *verify )( 
   868             IpEpEngine * This,
   869             /* [in] */ BSTR text,
   870             /* [in] */ BSTR signature,
   871             /* [out] */ SAFEARRAY * *key_list,
   872             /* [retval][out] */ pEp_STATUS *verify_status);
   873         
   874         HRESULT ( STDMETHODCALLTYPE *trustword )( 
   875             IpEpEngine * This,
   876             /* [in] */ LONG value,
   877             /* [defaultvalue][in] */ BSTR lang,
   878             /* [retval][out] */ BSTR *word);
   879         
   880         HRESULT ( STDMETHODCALLTYPE *trustwords )( 
   881             IpEpEngine * This,
   882             /* [in] */ BSTR fpr,
   883             /* [defaultvalue][in] */ BSTR lang,
   884             /* [defaultvalue][in] */ LONG max_words,
   885             /* [retval][out] */ BSTR *words);
   886         
   887         HRESULT ( STDMETHODCALLTYPE *get_identity )( 
   888             IpEpEngine * This,
   889             /* [in] */ BSTR address,
   890             /* [retval][out] */ struct pEp_identity_s *ident);
   891         
   892         HRESULT ( STDMETHODCALLTYPE *set_identity )( 
   893             IpEpEngine * This,
   894             /* [in] */ struct pEp_identity_s *ident);
   895         
   896         HRESULT ( STDMETHODCALLTYPE *generate_keypair )( 
   897             IpEpEngine * This,
   898             /* [in] */ struct pEp_identity_s *ident,
   899             /* [retval][out] */ BSTR *fpr);
   900         
   901         HRESULT ( STDMETHODCALLTYPE *delete_keypair )( 
   902             IpEpEngine * This,
   903             /* [in] */ BSTR fpr);
   904         
   905         HRESULT ( STDMETHODCALLTYPE *import_key )( 
   906             IpEpEngine * This,
   907             /* [in] */ BSTR key_data);
   908         
   909         HRESULT ( STDMETHODCALLTYPE *import_key_b )( 
   910             IpEpEngine * This,
   911             /* [in] */ SAFEARRAY * key_data);
   912         
   913         HRESULT ( STDMETHODCALLTYPE *export_key )( 
   914             IpEpEngine * This,
   915             /* [in] */ BSTR fpr,
   916             /* [retval][out] */ BSTR *key_data);
   917         
   918         HRESULT ( STDMETHODCALLTYPE *recv_key )( 
   919             IpEpEngine * This,
   920             /* [in] */ BSTR pattern);
   921         
   922         HRESULT ( STDMETHODCALLTYPE *find_keys )( 
   923             IpEpEngine * This,
   924             /* [in] */ BSTR pattern,
   925             /* [retval][out] */ SAFEARRAY * *key_list);
   926         
   927         HRESULT ( STDMETHODCALLTYPE *send_key )( 
   928             IpEpEngine * This,
   929             /* [in] */ BSTR pattern);
   930         
   931         HRESULT ( STDMETHODCALLTYPE *start_keyserver_lookup )( 
   932             IpEpEngine * This);
   933         
   934         HRESULT ( STDMETHODCALLTYPE *stop_keyserver_lookup )( 
   935             IpEpEngine * This);
   936         
   937         HRESULT ( STDMETHODCALLTYPE *examine_identity )( 
   938             IpEpEngine * This,
   939             /* [in] */ struct pEp_identity_s *ident);
   940         
   941         HRESULT ( STDMETHODCALLTYPE *examine_myself )( 
   942             IpEpEngine * This,
   943             /* [in] */ struct pEp_identity_s *myself);
   944         
   945         HRESULT ( STDMETHODCALLTYPE *myself )( 
   946             IpEpEngine * This,
   947             /* [in] */ struct pEp_identity_s *ident,
   948             /* [retval][out] */ struct pEp_identity_s *result);
   949         
   950         HRESULT ( STDMETHODCALLTYPE *update_identity )( 
   951             IpEpEngine * This,
   952             /* [in] */ struct pEp_identity_s *ident,
   953             /* [retval][out] */ struct pEp_identity_s *result);
   954         
   955         HRESULT ( STDMETHODCALLTYPE *key_compromized )( 
   956             IpEpEngine * This,
   957             /* [in] */ BSTR fpr);
   958         
   959         HRESULT ( STDMETHODCALLTYPE *encrypt_message )( 
   960             IpEpEngine * This,
   961             /* [in] */ ITextMessage *src,
   962             /* [out] */ ITextMessage **dst,
   963             /* [in] */ SAFEARRAY * extra);
   964         
   965         HRESULT ( STDMETHODCALLTYPE *decrypt_message )( 
   966             IpEpEngine * This,
   967             /* [in] */ ITextMessage *src,
   968             /* [out] */ ITextMessage **dst,
   969             /* [out] */ SAFEARRAY * *keylist,
   970             /* [retval][out] */ pEp_color *rating);
   971         
   972         HRESULT ( STDMETHODCALLTYPE *outgoing_message_color )( 
   973             IpEpEngine * This,
   974             /* [in] */ ITextMessage *msg,
   975             /* [retval][out] */ pEp_color *pVal);
   976         
   977         HRESULT ( STDMETHODCALLTYPE *identity_color )( 
   978             IpEpEngine * This,
   979             /* [in] */ struct pEp_identity_s *ident,
   980             /* [retval][out] */ pEp_color *pVal);
   981         
   982         END_INTERFACE
   983     } IpEpEngineVtbl;
   984 
   985     interface IpEpEngine
   986     {
   987         CONST_VTBL struct IpEpEngineVtbl *lpVtbl;
   988     };
   989 
   990     
   991 
   992 #ifdef COBJMACROS
   993 
   994 
   995 #define IpEpEngine_QueryInterface(This,riid,ppvObject)	\
   996     ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 
   997 
   998 #define IpEpEngine_AddRef(This)	\
   999     ( (This)->lpVtbl -> AddRef(This) ) 
  1000 
  1001 #define IpEpEngine_Release(This)	\
  1002     ( (This)->lpVtbl -> Release(This) ) 
  1003 
  1004 
  1005 #define IpEpEngine_log(This,title,entity,description,comment)	\
  1006     ( (This)->lpVtbl -> log(This,title,entity,description,comment) ) 
  1007 
  1008 #define IpEpEngine_decrypt(This,ctext,ptext,key_list,decrypt_status)	\
  1009     ( (This)->lpVtbl -> decrypt(This,ctext,ptext,key_list,decrypt_status) ) 
  1010 
  1011 #define IpEpEngine_decrypt_b(This,ctext,ptext,key_list,decrypt_status)	\
  1012     ( (This)->lpVtbl -> decrypt_b(This,ctext,ptext,key_list,decrypt_status) ) 
  1013 
  1014 #define IpEpEngine_encrypt(This,key_list,ptext,ctext,status)	\
  1015     ( (This)->lpVtbl -> encrypt(This,key_list,ptext,ctext,status) ) 
  1016 
  1017 #define IpEpEngine_encrypt_b(This,key_list,ptext,ctext,status)	\
  1018     ( (This)->lpVtbl -> encrypt_b(This,key_list,ptext,ctext,status) ) 
  1019 
  1020 #define IpEpEngine_verify(This,text,signature,key_list,verify_status)	\
  1021     ( (This)->lpVtbl -> verify(This,text,signature,key_list,verify_status) ) 
  1022 
  1023 #define IpEpEngine_trustword(This,value,lang,word)	\
  1024     ( (This)->lpVtbl -> trustword(This,value,lang,word) ) 
  1025 
  1026 #define IpEpEngine_trustwords(This,fpr,lang,max_words,words)	\
  1027     ( (This)->lpVtbl -> trustwords(This,fpr,lang,max_words,words) ) 
  1028 
  1029 #define IpEpEngine_get_identity(This,address,ident)	\
  1030     ( (This)->lpVtbl -> get_identity(This,address,ident) ) 
  1031 
  1032 #define IpEpEngine_set_identity(This,ident)	\
  1033     ( (This)->lpVtbl -> set_identity(This,ident) ) 
  1034 
  1035 #define IpEpEngine_generate_keypair(This,ident,fpr)	\
  1036     ( (This)->lpVtbl -> generate_keypair(This,ident,fpr) ) 
  1037 
  1038 #define IpEpEngine_delete_keypair(This,fpr)	\
  1039     ( (This)->lpVtbl -> delete_keypair(This,fpr) ) 
  1040 
  1041 #define IpEpEngine_import_key(This,key_data)	\
  1042     ( (This)->lpVtbl -> import_key(This,key_data) ) 
  1043 
  1044 #define IpEpEngine_import_key_b(This,key_data)	\
  1045     ( (This)->lpVtbl -> import_key_b(This,key_data) ) 
  1046 
  1047 #define IpEpEngine_export_key(This,fpr,key_data)	\
  1048     ( (This)->lpVtbl -> export_key(This,fpr,key_data) ) 
  1049 
  1050 #define IpEpEngine_recv_key(This,pattern)	\
  1051     ( (This)->lpVtbl -> recv_key(This,pattern) ) 
  1052 
  1053 #define IpEpEngine_find_keys(This,pattern,key_list)	\
  1054     ( (This)->lpVtbl -> find_keys(This,pattern,key_list) ) 
  1055 
  1056 #define IpEpEngine_send_key(This,pattern)	\
  1057     ( (This)->lpVtbl -> send_key(This,pattern) ) 
  1058 
  1059 #define IpEpEngine_start_keyserver_lookup(This)	\
  1060     ( (This)->lpVtbl -> start_keyserver_lookup(This) ) 
  1061 
  1062 #define IpEpEngine_stop_keyserver_lookup(This)	\
  1063     ( (This)->lpVtbl -> stop_keyserver_lookup(This) ) 
  1064 
  1065 #define IpEpEngine_examine_identity(This,ident)	\
  1066     ( (This)->lpVtbl -> examine_identity(This,ident) ) 
  1067 
  1068 #define IpEpEngine_examine_myself(This,myself)	\
  1069     ( (This)->lpVtbl -> examine_myself(This,myself) ) 
  1070 
  1071 #define IpEpEngine_myself(This,ident,result)	\
  1072     ( (This)->lpVtbl -> myself(This,ident,result) ) 
  1073 
  1074 #define IpEpEngine_update_identity(This,ident,result)	\
  1075     ( (This)->lpVtbl -> update_identity(This,ident,result) ) 
  1076 
  1077 #define IpEpEngine_key_compromized(This,fpr)	\
  1078     ( (This)->lpVtbl -> key_compromized(This,fpr) ) 
  1079 
  1080 #define IpEpEngine_encrypt_message(This,src,dst,extra)	\
  1081     ( (This)->lpVtbl -> encrypt_message(This,src,dst,extra) ) 
  1082 
  1083 #define IpEpEngine_decrypt_message(This,src,dst,keylist,rating)	\
  1084     ( (This)->lpVtbl -> decrypt_message(This,src,dst,keylist,rating) ) 
  1085 
  1086 #define IpEpEngine_outgoing_message_color(This,msg,pVal)	\
  1087     ( (This)->lpVtbl -> outgoing_message_color(This,msg,pVal) ) 
  1088 
  1089 #define IpEpEngine_identity_color(This,ident,pVal)	\
  1090     ( (This)->lpVtbl -> identity_color(This,ident,pVal) ) 
  1091 
  1092 #endif /* COBJMACROS */
  1093 
  1094 
  1095 #endif 	/* C style interface */
  1096 
  1097 
  1098 
  1099 
  1100 #endif 	/* __IpEpEngine_INTERFACE_DEFINED__ */
  1101 
  1102 
  1103 
  1104 #ifndef __pEpCOMServerAdapterLib_LIBRARY_DEFINED__
  1105 #define __pEpCOMServerAdapterLib_LIBRARY_DEFINED__
  1106 
  1107 /* library pEpCOMServerAdapterLib */
  1108 /* [version][uuid] */ 
  1109 
  1110 
  1111 EXTERN_C const IID LIBID_pEpCOMServerAdapterLib;
  1112 
  1113 #ifndef ___IpEpEngineEvents_DISPINTERFACE_DEFINED__
  1114 #define ___IpEpEngineEvents_DISPINTERFACE_DEFINED__
  1115 
  1116 /* dispinterface _IpEpEngineEvents */
  1117 /* [uuid] */ 
  1118 
  1119 
  1120 EXTERN_C const IID DIID__IpEpEngineEvents;
  1121 
  1122 #if defined(__cplusplus) && !defined(CINTERFACE)
  1123 
  1124     MIDL_INTERFACE("B6BC9B8E-D9E2-4419-A3A4-7B4B58175549")
  1125     _IpEpEngineEvents : public IDispatch
  1126     {
  1127     };
  1128     
  1129 #else 	/* C style interface */
  1130 
  1131     typedef struct _IpEpEngineEventsVtbl
  1132     {
  1133         BEGIN_INTERFACE
  1134         
  1135         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1136             _IpEpEngineEvents * This,
  1137             /* [in] */ REFIID riid,
  1138             /* [annotation][iid_is][out] */ 
  1139             _COM_Outptr_  void **ppvObject);
  1140         
  1141         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1142             _IpEpEngineEvents * This);
  1143         
  1144         ULONG ( STDMETHODCALLTYPE *Release )( 
  1145             _IpEpEngineEvents * This);
  1146         
  1147         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1148             _IpEpEngineEvents * This,
  1149             /* [out] */ UINT *pctinfo);
  1150         
  1151         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1152             _IpEpEngineEvents * This,
  1153             /* [in] */ UINT iTInfo,
  1154             /* [in] */ LCID lcid,
  1155             /* [out] */ ITypeInfo **ppTInfo);
  1156         
  1157         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1158             _IpEpEngineEvents * This,
  1159             /* [in] */ REFIID riid,
  1160             /* [size_is][in] */ LPOLESTR *rgszNames,
  1161             /* [range][in] */ UINT cNames,
  1162             /* [in] */ LCID lcid,
  1163             /* [size_is][out] */ DISPID *rgDispId);
  1164         
  1165         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1166             _IpEpEngineEvents * This,
  1167             /* [annotation][in] */ 
  1168             _In_  DISPID dispIdMember,
  1169             /* [annotation][in] */ 
  1170             _In_  REFIID riid,
  1171             /* [annotation][in] */ 
  1172             _In_  LCID lcid,
  1173             /* [annotation][in] */ 
  1174             _In_  WORD wFlags,
  1175             /* [annotation][out][in] */ 
  1176             _In_  DISPPARAMS *pDispParams,
  1177             /* [annotation][out] */ 
  1178             _Out_opt_  VARIANT *pVarResult,
  1179             /* [annotation][out] */ 
  1180             _Out_opt_  EXCEPINFO *pExcepInfo,
  1181             /* [annotation][out] */ 
  1182             _Out_opt_  UINT *puArgErr);
  1183         
  1184         END_INTERFACE
  1185     } _IpEpEngineEventsVtbl;
  1186 
  1187     interface _IpEpEngineEvents
  1188     {
  1189         CONST_VTBL struct _IpEpEngineEventsVtbl *lpVtbl;
  1190     };
  1191 
  1192     
  1193 
  1194 #ifdef COBJMACROS
  1195 
  1196 
  1197 #define _IpEpEngineEvents_QueryInterface(This,riid,ppvObject)	\
  1198     ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 
  1199 
  1200 #define _IpEpEngineEvents_AddRef(This)	\
  1201     ( (This)->lpVtbl -> AddRef(This) ) 
  1202 
  1203 #define _IpEpEngineEvents_Release(This)	\
  1204     ( (This)->lpVtbl -> Release(This) ) 
  1205 
  1206 
  1207 #define _IpEpEngineEvents_GetTypeInfoCount(This,pctinfo)	\
  1208     ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 
  1209 
  1210 #define _IpEpEngineEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
  1211     ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 
  1212 
  1213 #define _IpEpEngineEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
  1214     ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 
  1215 
  1216 #define _IpEpEngineEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
  1217     ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 
  1218 
  1219 #endif /* COBJMACROS */
  1220 
  1221 
  1222 #endif 	/* C style interface */
  1223 
  1224 
  1225 #endif 	/* ___IpEpEngineEvents_DISPINTERFACE_DEFINED__ */
  1226 
  1227 
  1228 EXTERN_C const CLSID CLSID_pEpEngine;
  1229 
  1230 #ifdef __cplusplus
  1231 
  1232 class DECLSPEC_UUID("EF1B073D-5058-4E0E-829E-B4D22CA21EA2")
  1233 pEpEngine;
  1234 #endif
  1235 
  1236 #ifndef ___ITextMessageEvents_DISPINTERFACE_DEFINED__
  1237 #define ___ITextMessageEvents_DISPINTERFACE_DEFINED__
  1238 
  1239 /* dispinterface _ITextMessageEvents */
  1240 /* [uuid] */ 
  1241 
  1242 
  1243 EXTERN_C const IID DIID__ITextMessageEvents;
  1244 
  1245 #if defined(__cplusplus) && !defined(CINTERFACE)
  1246 
  1247     MIDL_INTERFACE("844B5363-4EF4-4A39-A030-16452783A6F7")
  1248     _ITextMessageEvents : public IDispatch
  1249     {
  1250     };
  1251     
  1252 #else 	/* C style interface */
  1253 
  1254     typedef struct _ITextMessageEventsVtbl
  1255     {
  1256         BEGIN_INTERFACE
  1257         
  1258         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1259             _ITextMessageEvents * This,
  1260             /* [in] */ REFIID riid,
  1261             /* [annotation][iid_is][out] */ 
  1262             _COM_Outptr_  void **ppvObject);
  1263         
  1264         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1265             _ITextMessageEvents * This);
  1266         
  1267         ULONG ( STDMETHODCALLTYPE *Release )( 
  1268             _ITextMessageEvents * This);
  1269         
  1270         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1271             _ITextMessageEvents * This,
  1272             /* [out] */ UINT *pctinfo);
  1273         
  1274         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1275             _ITextMessageEvents * This,
  1276             /* [in] */ UINT iTInfo,
  1277             /* [in] */ LCID lcid,
  1278             /* [out] */ ITypeInfo **ppTInfo);
  1279         
  1280         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1281             _ITextMessageEvents * This,
  1282             /* [in] */ REFIID riid,
  1283             /* [size_is][in] */ LPOLESTR *rgszNames,
  1284             /* [range][in] */ UINT cNames,
  1285             /* [in] */ LCID lcid,
  1286             /* [size_is][out] */ DISPID *rgDispId);
  1287         
  1288         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1289             _ITextMessageEvents * This,
  1290             /* [annotation][in] */ 
  1291             _In_  DISPID dispIdMember,
  1292             /* [annotation][in] */ 
  1293             _In_  REFIID riid,
  1294             /* [annotation][in] */ 
  1295             _In_  LCID lcid,
  1296             /* [annotation][in] */ 
  1297             _In_  WORD wFlags,
  1298             /* [annotation][out][in] */ 
  1299             _In_  DISPPARAMS *pDispParams,
  1300             /* [annotation][out] */ 
  1301             _Out_opt_  VARIANT *pVarResult,
  1302             /* [annotation][out] */ 
  1303             _Out_opt_  EXCEPINFO *pExcepInfo,
  1304             /* [annotation][out] */ 
  1305             _Out_opt_  UINT *puArgErr);
  1306         
  1307         END_INTERFACE
  1308     } _ITextMessageEventsVtbl;
  1309 
  1310     interface _ITextMessageEvents
  1311     {
  1312         CONST_VTBL struct _ITextMessageEventsVtbl *lpVtbl;
  1313     };
  1314 
  1315     
  1316 
  1317 #ifdef COBJMACROS
  1318 
  1319 
  1320 #define _ITextMessageEvents_QueryInterface(This,riid,ppvObject)	\
  1321     ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 
  1322 
  1323 #define _ITextMessageEvents_AddRef(This)	\
  1324     ( (This)->lpVtbl -> AddRef(This) ) 
  1325 
  1326 #define _ITextMessageEvents_Release(This)	\
  1327     ( (This)->lpVtbl -> Release(This) ) 
  1328 
  1329 
  1330 #define _ITextMessageEvents_GetTypeInfoCount(This,pctinfo)	\
  1331     ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 
  1332 
  1333 #define _ITextMessageEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
  1334     ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 
  1335 
  1336 #define _ITextMessageEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
  1337     ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 
  1338 
  1339 #define _ITextMessageEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
  1340     ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 
  1341 
  1342 #endif /* COBJMACROS */
  1343 
  1344 
  1345 #endif 	/* C style interface */
  1346 
  1347 
  1348 #endif 	/* ___ITextMessageEvents_DISPINTERFACE_DEFINED__ */
  1349 
  1350 
  1351 EXTERN_C const CLSID CLSID_TextMessage;
  1352 
  1353 #ifdef __cplusplus
  1354 
  1355 class DECLSPEC_UUID("B6CC444F-FE14-4DFE-8315-81E4EA16C1CC")
  1356 TextMessage;
  1357 #endif
  1358 #endif /* __pEpCOMServerAdapterLib_LIBRARY_DEFINED__ */
  1359 
  1360 /* Additional Prototypes for ALL interfaces */
  1361 
  1362 unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
  1363 unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
  1364 unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
  1365 void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 
  1366 
  1367 unsigned long             __RPC_USER  LPSAFEARRAY_UserSize(     unsigned long *, unsigned long            , LPSAFEARRAY * ); 
  1368 unsigned char * __RPC_USER  LPSAFEARRAY_UserMarshal(  unsigned long *, unsigned char *, LPSAFEARRAY * ); 
  1369 unsigned char * __RPC_USER  LPSAFEARRAY_UserUnmarshal(unsigned long *, unsigned char *, LPSAFEARRAY * ); 
  1370 void                      __RPC_USER  LPSAFEARRAY_UserFree(     unsigned long *, LPSAFEARRAY * ); 
  1371 
  1372 /* end of Additional Prototypes */
  1373 
  1374 #ifdef __cplusplus
  1375 }
  1376 #endif
  1377 
  1378 #endif
  1379 
  1380