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