pEpCOMServerAdapter_i.h
author Volker Birk <vb@pep-project.org>
Thu, 23 Apr 2015 22:26:12 +0200
changeset 4 fdd8cf02d2cc
parent 2 e902fd924d9b
child 5 d959f594e4f7
permissions -rw-r--r--
key_compromized() added into IMessageAPI_Outlook
vb@2
     1
vb@2
     2
vb@2
     3
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
vb@2
     4
vb@2
     5
vb@2
     6
 /* File created by MIDL compiler version 8.00.0603 */
vb@4
     7
/* at Thu Apr 23 19:17:16 2015
vb@2
     8
 */
vb@2
     9
/* Compiler settings for pEpCOMServerAdapter.idl:
vb@2
    10
    Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 8.00.0603 
vb@2
    11
    protocol : dce , ms_ext, c_ext, robust
vb@2
    12
    error checks: allocation ref bounds_check enum stub_data 
vb@2
    13
    VC __declspec() decoration level: 
vb@2
    14
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
vb@2
    15
         DECLSPEC_UUID(), MIDL_INTERFACE()
vb@2
    16
*/
vb@2
    17
/* @@MIDL_FILE_HEADING(  ) */
vb@2
    18
vb@2
    19
#pragma warning( disable: 4049 )  /* more than 64k source lines */
vb@2
    20
vb@2
    21
vb@2
    22
/* verify that the <rpcndr.h> version is high enough to compile this file*/
vb@2
    23
#ifndef __REQUIRED_RPCNDR_H_VERSION__
vb@2
    24
#define __REQUIRED_RPCNDR_H_VERSION__ 475
vb@2
    25
#endif
vb@2
    26
vb@2
    27
#include "rpc.h"
vb@2
    28
#include "rpcndr.h"
vb@2
    29
vb@2
    30
#ifndef __RPCNDR_H_VERSION__
vb@2
    31
#error this stub requires an updated version of <rpcndr.h>
vb@2
    32
#endif // __RPCNDR_H_VERSION__
vb@2
    33
vb@2
    34
#ifndef COM_NO_WINDOWS_H
vb@2
    35
#include "windows.h"
vb@2
    36
#include "ole2.h"
vb@2
    37
#endif /*COM_NO_WINDOWS_H*/
vb@2
    38
vb@2
    39
#ifndef __pEpCOMServerAdapter_i_h__
vb@2
    40
#define __pEpCOMServerAdapter_i_h__
vb@2
    41
vb@2
    42
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
vb@2
    43
#pragma once
vb@2
    44
#endif
vb@2
    45
vb@2
    46
/* Forward Declarations */ 
vb@2
    47
vb@2
    48
#ifndef __IpEpEngine_FWD_DEFINED__
vb@2
    49
#define __IpEpEngine_FWD_DEFINED__
vb@2
    50
typedef interface IpEpEngine IpEpEngine;
vb@2
    51
vb@2
    52
#endif 	/* __IpEpEngine_FWD_DEFINED__ */
vb@2
    53
vb@2
    54
vb@4
    55
#ifndef __IMessageAPI_Outlook_FWD_DEFINED__
vb@4
    56
#define __IMessageAPI_Outlook_FWD_DEFINED__
vb@4
    57
typedef interface IMessageAPI_Outlook IMessageAPI_Outlook;
vb@4
    58
vb@4
    59
#endif 	/* __IMessageAPI_Outlook_FWD_DEFINED__ */
vb@4
    60
vb@4
    61
vb@2
    62
#ifndef ___IpEpEngineEvents_FWD_DEFINED__
vb@2
    63
#define ___IpEpEngineEvents_FWD_DEFINED__
vb@2
    64
typedef interface _IpEpEngineEvents _IpEpEngineEvents;
vb@2
    65
vb@2
    66
#endif 	/* ___IpEpEngineEvents_FWD_DEFINED__ */
vb@2
    67
vb@2
    68
vb@2
    69
#ifndef __pEpEngine_FWD_DEFINED__
vb@2
    70
#define __pEpEngine_FWD_DEFINED__
vb@2
    71
vb@2
    72
#ifdef __cplusplus
vb@2
    73
typedef class pEpEngine pEpEngine;
vb@2
    74
#else
vb@2
    75
typedef struct pEpEngine pEpEngine;
vb@2
    76
#endif /* __cplusplus */
vb@2
    77
vb@2
    78
#endif 	/* __pEpEngine_FWD_DEFINED__ */
vb@2
    79
vb@2
    80
vb@2
    81
/* header files for imported files */
vb@2
    82
#include "oaidl.h"
vb@2
    83
#include "ocidl.h"
vb@2
    84
vb@2
    85
#ifdef __cplusplus
vb@2
    86
extern "C"{
vb@2
    87
#endif 
vb@2
    88
vb@2
    89
vb@2
    90
#ifndef __IpEpEngine_INTERFACE_DEFINED__
vb@2
    91
#define __IpEpEngine_INTERFACE_DEFINED__
vb@2
    92
vb@2
    93
/* interface IpEpEngine */
vb@2
    94
/* [unique][nonextensible][oleautomation][uuid][object] */ 
vb@2
    95
vb@2
    96
typedef 
vb@2
    97
enum _pEp_STATUS
vb@2
    98
    {
vb@2
    99
        pEp_STATUS_OK	= 0,
vb@2
   100
        pEp_KEY_NOT_FOUND	= 0x201,
vb@2
   101
        pEp_KEY_HAS_AMBIG_NAME	= 0x202,
vb@2
   102
        pEp_GET_KEY_FAILED	= 0x203,
vb@2
   103
        pEp_UNENCRYPTED	= 0x400,
vb@2
   104
        pEp_VERIFIED	= 0x401,
vb@2
   105
        pEp_DECRYPTED	= 0x402,
vb@2
   106
        pEp_DECRYPTED_AND_VERIFIED	= 0x403,
vb@2
   107
        pEp_DECRYPT_WRONG_FORMAT	= 0x404,
vb@2
   108
        pEp_DECRYPT_NO_KEY	= 0x405,
vb@2
   109
        pEp_DECRYPT_SIGNATURE_DOES_NOT_MATCH	= 0x406,
vb@2
   110
        pEp_VERIFY_NO_KEY	= 0x407,
vb@2
   111
        pEp_VERIFIED_AND_TRUSTED	= 0x408,
vb@2
   112
        pEp_ILLEGAL_VALUE	= -4,
vb@2
   113
        pEp_BUFFER_TOO_SMALL	= -3,
vb@2
   114
        pEp_OUT_OF_MEMORY	= -2,
vb@2
   115
        pEp_UNKNOWN_ERROR	= -1
vb@2
   116
    } 	pEp_STATUS;
vb@2
   117
vb@2
   118
typedef 
vb@2
   119
enum _pEp_comm_type
vb@2
   120
    {
vb@2
   121
        pEp_ct_unknown	= 0,
vb@2
   122
        pEp_ct_no_encryption	= 0x1,
vb@2
   123
        pEp_ct_no_encrypted_channel	= 0x2,
vb@2
   124
        pEp_ct_key_not_found	= 0x3,
vb@2
   125
        pEp_ct_key_expired	= 0x4,
vb@2
   126
        pEp_ct_key_revoked	= 0x5,
vb@2
   127
        pEp_ct_key_b0rken	= 0x6,
vb@2
   128
        pEp_ct_my_key_not_included	= 0x9,
vb@2
   129
        pEp_ct_security_by_obscurity	= 0xa,
vb@2
   130
        pEp_ct_b0rken_crypto	= 0xb,
vb@2
   131
        pEp_ct_key_too_short	= 0xe,
vb@2
   132
        pEp_ct_compromized	= 0xf,
vb@2
   133
        pEp_ct_unconfirmed_encryption	= 0x10,
vb@2
   134
        pEp_ct_OpenPGP_1024_RSA_unconfirmed	= 0x11,
vb@2
   135
        pEp_ct_OpenPGP_unconfirmed	= 0x3f,
vb@2
   136
        pEp_ct_unconfirmed_enc_anon	= 0x40,
vb@2
   137
        pEp_ct_pEp_unconfirmed	= 0x7f,
vb@2
   138
        pEp_ct_confirmed	= 0x80,
vb@2
   139
        pEp_ct_confirmed_encryption	= 0x90,
vb@2
   140
        pEp_ct_OpenPGP_1024_RSA	= 0x91,
vb@2
   141
        pEp_ct_OpenPGP	= 0xbf,
vb@2
   142
        pEp_ct_confirmed_enc_anon	= 0xc0,
vb@2
   143
        pEp_ct_pEp	= 0xff
vb@2
   144
    } 	pEp_comm_type;
vb@2
   145
vb@2
   146
struct pEp_identity_s
vb@2
   147
    {
vb@2
   148
    BSTR address;
vb@2
   149
    BSTR fpr;
vb@2
   150
    BSTR user_id;
vb@2
   151
    BSTR username;
vb@2
   152
    pEp_comm_type comm_type;
vb@2
   153
    BSTR lang;
vb@2
   154
    } ;
vb@2
   155
vb@2
   156
EXTERN_C const IID IID_IpEpEngine;
vb@2
   157
vb@2
   158
#if defined(__cplusplus) && !defined(CINTERFACE)
vb@2
   159
    
vb@2
   160
    MIDL_INTERFACE("9A9F4422-CF0A-45D7-90CD-1D1B7B2A4540")
vb@2
   161
    IpEpEngine : public IUnknown
vb@2
   162
    {
vb@2
   163
    public:
vb@4
   164
        virtual HRESULT STDMETHODCALLTYPE log( 
vb@2
   165
            /* [in] */ BSTR title,
vb@2
   166
            /* [in] */ BSTR entity,
vb@2
   167
            /* [defaultvalue][in] */ BSTR description = L"",
vb@2
   168
            /* [defaultvalue][in] */ BSTR comment = L"") = 0;
vb@2
   169
        
vb@4
   170
        virtual HRESULT STDMETHODCALLTYPE decrypt( 
vb@2
   171
            /* [in] */ BSTR ctext,
vb@2
   172
            /* [out] */ BSTR *ptext,
vb@2
   173
            /* [out] */ SAFEARRAY * *key_list,
vb@2
   174
            /* [retval][out] */ pEp_STATUS *decrypt_status) = 0;
vb@2
   175
        
vb@4
   176
        virtual HRESULT STDMETHODCALLTYPE decrypt_b( 
vb@2
   177
            /* [in] */ BSTR ctext,
vb@2
   178
            /* [out] */ SAFEARRAY * *ptext,
vb@2
   179
            /* [out] */ SAFEARRAY * *key_list,
vb@2
   180
            /* [retval][out] */ pEp_STATUS *decrypt_status) = 0;
vb@2
   181
        
vb@4
   182
        virtual HRESULT STDMETHODCALLTYPE encrypt( 
vb@2
   183
            /* [in] */ SAFEARRAY * key_list,
vb@2
   184
            /* [in] */ BSTR ptext,
vb@2
   185
            /* [out] */ BSTR *ctext,
vb@2
   186
            /* [retval][out] */ pEp_STATUS *status) = 0;
vb@2
   187
        
vb@4
   188
        virtual HRESULT STDMETHODCALLTYPE encrypt_b( 
vb@2
   189
            /* [in] */ SAFEARRAY * key_list,
vb@2
   190
            /* [in] */ SAFEARRAY * ptext,
vb@2
   191
            /* [out] */ BSTR *ctext,
vb@2
   192
            /* [retval][out] */ pEp_STATUS *status) = 0;
vb@2
   193
        
vb@4
   194
        virtual HRESULT STDMETHODCALLTYPE verify( 
vb@2
   195
            /* [in] */ BSTR text,
vb@2
   196
            /* [in] */ BSTR signature,
vb@2
   197
            /* [out] */ SAFEARRAY * *key_list,
vb@2
   198
            /* [retval][out] */ pEp_STATUS *verify_status) = 0;
vb@2
   199
        
vb@4
   200
        virtual HRESULT STDMETHODCALLTYPE safeword( 
vb@2
   201
            /* [in] */ LONG value,
vb@2
   202
            /* [defaultvalue][in] */ BSTR lang,
vb@2
   203
            /* [retval][out] */ BSTR *word) = 0;
vb@2
   204
        
vb@4
   205
        virtual HRESULT STDMETHODCALLTYPE safewords( 
vb@2
   206
            /* [in] */ BSTR fpr,
vb@2
   207
            /* [defaultvalue][in] */ BSTR lang,
vb@2
   208
            /* [defaultvalue][in] */ LONG max_words,
vb@2
   209
            /* [retval][out] */ BSTR *words) = 0;
vb@2
   210
        
vb@4
   211
        virtual HRESULT STDMETHODCALLTYPE get_identity( 
vb@2
   212
            /* [in] */ BSTR address,
vb@2
   213
            /* [retval][out] */ struct pEp_identity_s *ident) = 0;
vb@2
   214
        
vb@4
   215
        virtual HRESULT STDMETHODCALLTYPE set_identity( 
vb@2
   216
            /* [in] */ struct pEp_identity_s *ident) = 0;
vb@2
   217
        
vb@4
   218
        virtual HRESULT STDMETHODCALLTYPE generate_keypair( 
vb@2
   219
            /* [in] */ struct pEp_identity_s *ident,
vb@2
   220
            /* [retval][out] */ BSTR *fpr) = 0;
vb@2
   221
        
vb@4
   222
        virtual HRESULT STDMETHODCALLTYPE delete_keypair( 
vb@2
   223
            /* [in] */ BSTR fpr) = 0;
vb@2
   224
        
vb@4
   225
        virtual HRESULT STDMETHODCALLTYPE import_key( 
vb@2
   226
            /* [in] */ BSTR key_data) = 0;
vb@2
   227
        
vb@4
   228
        virtual HRESULT STDMETHODCALLTYPE import_key_b( 
vb@2
   229
            /* [in] */ SAFEARRAY * key_data) = 0;
vb@2
   230
        
vb@4
   231
        virtual HRESULT STDMETHODCALLTYPE export_key( 
vb@2
   232
            /* [in] */ BSTR fpr,
vb@2
   233
            /* [retval][out] */ BSTR *key_data) = 0;
vb@2
   234
        
vb@4
   235
        virtual HRESULT STDMETHODCALLTYPE recv_key( 
vb@2
   236
            /* [in] */ BSTR pattern) = 0;
vb@2
   237
        
vb@4
   238
        virtual HRESULT STDMETHODCALLTYPE find_keys( 
vb@2
   239
            /* [in] */ BSTR pattern,
vb@2
   240
            /* [retval][out] */ SAFEARRAY * *key_list) = 0;
vb@2
   241
        
vb@4
   242
        virtual HRESULT STDMETHODCALLTYPE send_key( 
vb@2
   243
            /* [in] */ BSTR pattern) = 0;
vb@2
   244
        
vb@4
   245
        virtual HRESULT STDMETHODCALLTYPE examine_identity( 
vb@2
   246
            /* [in] */ struct pEp_identity_s *ident) = 0;
vb@2
   247
        
vb@4
   248
        virtual HRESULT STDMETHODCALLTYPE examine_myself( 
vb@2
   249
            /* [in] */ struct pEp_identity_s *myself) = 0;
vb@2
   250
        
vb@4
   251
        virtual HRESULT STDMETHODCALLTYPE myself( 
vb@2
   252
            /* [in] */ struct pEp_identity_s *ident,
vb@2
   253
            /* [retval][out] */ struct pEp_identity_s *result) = 0;
vb@2
   254
        
vb@4
   255
        virtual HRESULT STDMETHODCALLTYPE update_identity( 
vb@2
   256
            /* [in] */ struct pEp_identity_s *ident,
vb@2
   257
            /* [retval][out] */ struct pEp_identity_s *result) = 0;
vb@2
   258
        
vb@2
   259
    };
vb@2
   260
    
vb@2
   261
    
vb@2
   262
#else 	/* C style interface */
vb@2
   263
vb@2
   264
    typedef struct IpEpEngineVtbl
vb@2
   265
    {
vb@2
   266
        BEGIN_INTERFACE
vb@2
   267
        
vb@2
   268
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
vb@2
   269
            IpEpEngine * This,
vb@2
   270
            /* [in] */ REFIID riid,
vb@2
   271
            /* [annotation][iid_is][out] */ 
vb@2
   272
            _COM_Outptr_  void **ppvObject);
vb@2
   273
        
vb@2
   274
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
vb@2
   275
            IpEpEngine * This);
vb@2
   276
        
vb@2
   277
        ULONG ( STDMETHODCALLTYPE *Release )( 
vb@2
   278
            IpEpEngine * This);
vb@2
   279
        
vb@4
   280
        HRESULT ( STDMETHODCALLTYPE *log )( 
vb@2
   281
            IpEpEngine * This,
vb@2
   282
            /* [in] */ BSTR title,
vb@2
   283
            /* [in] */ BSTR entity,
vb@2
   284
            /* [defaultvalue][in] */ BSTR description,
vb@2
   285
            /* [defaultvalue][in] */ BSTR comment);
vb@2
   286
        
vb@4
   287
        HRESULT ( STDMETHODCALLTYPE *decrypt )( 
vb@2
   288
            IpEpEngine * This,
vb@2
   289
            /* [in] */ BSTR ctext,
vb@2
   290
            /* [out] */ BSTR *ptext,
vb@2
   291
            /* [out] */ SAFEARRAY * *key_list,
vb@2
   292
            /* [retval][out] */ pEp_STATUS *decrypt_status);
vb@2
   293
        
vb@4
   294
        HRESULT ( STDMETHODCALLTYPE *decrypt_b )( 
vb@2
   295
            IpEpEngine * This,
vb@2
   296
            /* [in] */ BSTR ctext,
vb@2
   297
            /* [out] */ SAFEARRAY * *ptext,
vb@2
   298
            /* [out] */ SAFEARRAY * *key_list,
vb@2
   299
            /* [retval][out] */ pEp_STATUS *decrypt_status);
vb@2
   300
        
vb@4
   301
        HRESULT ( STDMETHODCALLTYPE *encrypt )( 
vb@2
   302
            IpEpEngine * This,
vb@2
   303
            /* [in] */ SAFEARRAY * key_list,
vb@2
   304
            /* [in] */ BSTR ptext,
vb@2
   305
            /* [out] */ BSTR *ctext,
vb@2
   306
            /* [retval][out] */ pEp_STATUS *status);
vb@2
   307
        
vb@4
   308
        HRESULT ( STDMETHODCALLTYPE *encrypt_b )( 
vb@2
   309
            IpEpEngine * This,
vb@2
   310
            /* [in] */ SAFEARRAY * key_list,
vb@2
   311
            /* [in] */ SAFEARRAY * ptext,
vb@2
   312
            /* [out] */ BSTR *ctext,
vb@2
   313
            /* [retval][out] */ pEp_STATUS *status);
vb@2
   314
        
vb@4
   315
        HRESULT ( STDMETHODCALLTYPE *verify )( 
vb@2
   316
            IpEpEngine * This,
vb@2
   317
            /* [in] */ BSTR text,
vb@2
   318
            /* [in] */ BSTR signature,
vb@2
   319
            /* [out] */ SAFEARRAY * *key_list,
vb@2
   320
            /* [retval][out] */ pEp_STATUS *verify_status);
vb@2
   321
        
vb@4
   322
        HRESULT ( STDMETHODCALLTYPE *safeword )( 
vb@2
   323
            IpEpEngine * This,
vb@2
   324
            /* [in] */ LONG value,
vb@2
   325
            /* [defaultvalue][in] */ BSTR lang,
vb@2
   326
            /* [retval][out] */ BSTR *word);
vb@2
   327
        
vb@4
   328
        HRESULT ( STDMETHODCALLTYPE *safewords )( 
vb@2
   329
            IpEpEngine * This,
vb@2
   330
            /* [in] */ BSTR fpr,
vb@2
   331
            /* [defaultvalue][in] */ BSTR lang,
vb@2
   332
            /* [defaultvalue][in] */ LONG max_words,
vb@2
   333
            /* [retval][out] */ BSTR *words);
vb@2
   334
        
vb@4
   335
        HRESULT ( STDMETHODCALLTYPE *get_identity )( 
vb@2
   336
            IpEpEngine * This,
vb@2
   337
            /* [in] */ BSTR address,
vb@2
   338
            /* [retval][out] */ struct pEp_identity_s *ident);
vb@2
   339
        
vb@4
   340
        HRESULT ( STDMETHODCALLTYPE *set_identity )( 
vb@2
   341
            IpEpEngine * This,
vb@2
   342
            /* [in] */ struct pEp_identity_s *ident);
vb@2
   343
        
vb@4
   344
        HRESULT ( STDMETHODCALLTYPE *generate_keypair )( 
vb@2
   345
            IpEpEngine * This,
vb@2
   346
            /* [in] */ struct pEp_identity_s *ident,
vb@2
   347
            /* [retval][out] */ BSTR *fpr);
vb@2
   348
        
vb@4
   349
        HRESULT ( STDMETHODCALLTYPE *delete_keypair )( 
vb@2
   350
            IpEpEngine * This,
vb@2
   351
            /* [in] */ BSTR fpr);
vb@2
   352
        
vb@4
   353
        HRESULT ( STDMETHODCALLTYPE *import_key )( 
vb@2
   354
            IpEpEngine * This,
vb@2
   355
            /* [in] */ BSTR key_data);
vb@2
   356
        
vb@4
   357
        HRESULT ( STDMETHODCALLTYPE *import_key_b )( 
vb@2
   358
            IpEpEngine * This,
vb@2
   359
            /* [in] */ SAFEARRAY * key_data);
vb@2
   360
        
vb@4
   361
        HRESULT ( STDMETHODCALLTYPE *export_key )( 
vb@2
   362
            IpEpEngine * This,
vb@2
   363
            /* [in] */ BSTR fpr,
vb@2
   364
            /* [retval][out] */ BSTR *key_data);
vb@2
   365
        
vb@4
   366
        HRESULT ( STDMETHODCALLTYPE *recv_key )( 
vb@2
   367
            IpEpEngine * This,
vb@2
   368
            /* [in] */ BSTR pattern);
vb@2
   369
        
vb@4
   370
        HRESULT ( STDMETHODCALLTYPE *find_keys )( 
vb@2
   371
            IpEpEngine * This,
vb@2
   372
            /* [in] */ BSTR pattern,
vb@2
   373
            /* [retval][out] */ SAFEARRAY * *key_list);
vb@2
   374
        
vb@4
   375
        HRESULT ( STDMETHODCALLTYPE *send_key )( 
vb@2
   376
            IpEpEngine * This,
vb@2
   377
            /* [in] */ BSTR pattern);
vb@2
   378
        
vb@4
   379
        HRESULT ( STDMETHODCALLTYPE *examine_identity )( 
vb@2
   380
            IpEpEngine * This,
vb@2
   381
            /* [in] */ struct pEp_identity_s *ident);
vb@2
   382
        
vb@4
   383
        HRESULT ( STDMETHODCALLTYPE *examine_myself )( 
vb@2
   384
            IpEpEngine * This,
vb@2
   385
            /* [in] */ struct pEp_identity_s *myself);
vb@2
   386
        
vb@4
   387
        HRESULT ( STDMETHODCALLTYPE *myself )( 
vb@2
   388
            IpEpEngine * This,
vb@2
   389
            /* [in] */ struct pEp_identity_s *ident,
vb@2
   390
            /* [retval][out] */ struct pEp_identity_s *result);
vb@2
   391
        
vb@4
   392
        HRESULT ( STDMETHODCALLTYPE *update_identity )( 
vb@2
   393
            IpEpEngine * This,
vb@2
   394
            /* [in] */ struct pEp_identity_s *ident,
vb@2
   395
            /* [retval][out] */ struct pEp_identity_s *result);
vb@2
   396
        
vb@2
   397
        END_INTERFACE
vb@2
   398
    } IpEpEngineVtbl;
vb@2
   399
vb@2
   400
    interface IpEpEngine
vb@2
   401
    {
vb@2
   402
        CONST_VTBL struct IpEpEngineVtbl *lpVtbl;
vb@2
   403
    };
vb@2
   404
vb@2
   405
    
vb@2
   406
vb@2
   407
#ifdef COBJMACROS
vb@2
   408
vb@2
   409
vb@2
   410
#define IpEpEngine_QueryInterface(This,riid,ppvObject)	\
vb@2
   411
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 
vb@2
   412
vb@2
   413
#define IpEpEngine_AddRef(This)	\
vb@2
   414
    ( (This)->lpVtbl -> AddRef(This) ) 
vb@2
   415
vb@2
   416
#define IpEpEngine_Release(This)	\
vb@2
   417
    ( (This)->lpVtbl -> Release(This) ) 
vb@2
   418
vb@2
   419
vb@2
   420
#define IpEpEngine_log(This,title,entity,description,comment)	\
vb@2
   421
    ( (This)->lpVtbl -> log(This,title,entity,description,comment) ) 
vb@2
   422
vb@2
   423
#define IpEpEngine_decrypt(This,ctext,ptext,key_list,decrypt_status)	\
vb@2
   424
    ( (This)->lpVtbl -> decrypt(This,ctext,ptext,key_list,decrypt_status) ) 
vb@2
   425
vb@2
   426
#define IpEpEngine_decrypt_b(This,ctext,ptext,key_list,decrypt_status)	\
vb@2
   427
    ( (This)->lpVtbl -> decrypt_b(This,ctext,ptext,key_list,decrypt_status) ) 
vb@2
   428
vb@2
   429
#define IpEpEngine_encrypt(This,key_list,ptext,ctext,status)	\
vb@2
   430
    ( (This)->lpVtbl -> encrypt(This,key_list,ptext,ctext,status) ) 
vb@2
   431
vb@2
   432
#define IpEpEngine_encrypt_b(This,key_list,ptext,ctext,status)	\
vb@2
   433
    ( (This)->lpVtbl -> encrypt_b(This,key_list,ptext,ctext,status) ) 
vb@2
   434
vb@2
   435
#define IpEpEngine_verify(This,text,signature,key_list,verify_status)	\
vb@2
   436
    ( (This)->lpVtbl -> verify(This,text,signature,key_list,verify_status) ) 
vb@2
   437
vb@2
   438
#define IpEpEngine_safeword(This,value,lang,word)	\
vb@2
   439
    ( (This)->lpVtbl -> safeword(This,value,lang,word) ) 
vb@2
   440
vb@2
   441
#define IpEpEngine_safewords(This,fpr,lang,max_words,words)	\
vb@2
   442
    ( (This)->lpVtbl -> safewords(This,fpr,lang,max_words,words) ) 
vb@2
   443
vb@2
   444
#define IpEpEngine_get_identity(This,address,ident)	\
vb@2
   445
    ( (This)->lpVtbl -> get_identity(This,address,ident) ) 
vb@2
   446
vb@2
   447
#define IpEpEngine_set_identity(This,ident)	\
vb@2
   448
    ( (This)->lpVtbl -> set_identity(This,ident) ) 
vb@2
   449
vb@2
   450
#define IpEpEngine_generate_keypair(This,ident,fpr)	\
vb@2
   451
    ( (This)->lpVtbl -> generate_keypair(This,ident,fpr) ) 
vb@2
   452
vb@2
   453
#define IpEpEngine_delete_keypair(This,fpr)	\
vb@2
   454
    ( (This)->lpVtbl -> delete_keypair(This,fpr) ) 
vb@2
   455
vb@2
   456
#define IpEpEngine_import_key(This,key_data)	\
vb@2
   457
    ( (This)->lpVtbl -> import_key(This,key_data) ) 
vb@2
   458
vb@2
   459
#define IpEpEngine_import_key_b(This,key_data)	\
vb@2
   460
    ( (This)->lpVtbl -> import_key_b(This,key_data) ) 
vb@2
   461
vb@2
   462
#define IpEpEngine_export_key(This,fpr,key_data)	\
vb@2
   463
    ( (This)->lpVtbl -> export_key(This,fpr,key_data) ) 
vb@2
   464
vb@2
   465
#define IpEpEngine_recv_key(This,pattern)	\
vb@2
   466
    ( (This)->lpVtbl -> recv_key(This,pattern) ) 
vb@2
   467
vb@2
   468
#define IpEpEngine_find_keys(This,pattern,key_list)	\
vb@2
   469
    ( (This)->lpVtbl -> find_keys(This,pattern,key_list) ) 
vb@2
   470
vb@2
   471
#define IpEpEngine_send_key(This,pattern)	\
vb@2
   472
    ( (This)->lpVtbl -> send_key(This,pattern) ) 
vb@2
   473
vb@2
   474
#define IpEpEngine_examine_identity(This,ident)	\
vb@2
   475
    ( (This)->lpVtbl -> examine_identity(This,ident) ) 
vb@2
   476
vb@2
   477
#define IpEpEngine_examine_myself(This,myself)	\
vb@2
   478
    ( (This)->lpVtbl -> examine_myself(This,myself) ) 
vb@2
   479
vb@2
   480
#define IpEpEngine_myself(This,ident,result)	\
vb@2
   481
    ( (This)->lpVtbl -> myself(This,ident,result) ) 
vb@2
   482
vb@2
   483
#define IpEpEngine_update_identity(This,ident,result)	\
vb@2
   484
    ( (This)->lpVtbl -> update_identity(This,ident,result) ) 
vb@2
   485
vb@2
   486
#endif /* COBJMACROS */
vb@2
   487
vb@2
   488
vb@2
   489
#endif 	/* C style interface */
vb@2
   490
vb@2
   491
vb@2
   492
vb@2
   493
vb@2
   494
#endif 	/* __IpEpEngine_INTERFACE_DEFINED__ */
vb@2
   495
vb@2
   496
vb@4
   497
#ifndef __IMessageAPI_Outlook_INTERFACE_DEFINED__
vb@4
   498
#define __IMessageAPI_Outlook_INTERFACE_DEFINED__
vb@4
   499
vb@4
   500
/* interface IMessageAPI_Outlook */
vb@4
   501
/* [unique][nonextensible][oleautomation][uuid][object] */ 
vb@4
   502
vb@4
   503
typedef 
vb@4
   504
enum _pEp_text_format
vb@4
   505
    {
vb@4
   506
        pEp_text_format_plain	= 0,
vb@4
   507
        pEp_text_format_html	= ( pEp_text_format_plain + 1 ) ,
vb@4
   508
        pEp_text_format_other	= 0xff
vb@4
   509
    } 	pEp_text_format;
vb@4
   510
vb@4
   511
typedef 
vb@4
   512
enum _pEp_msg_direction
vb@4
   513
    {
vb@4
   514
        pEp_dir_incoming	= 0,
vb@4
   515
        pEp_dir_outgoing	= ( pEp_dir_incoming + 1 ) 
vb@4
   516
    } 	pEp_msg_direction;
vb@4
   517
vb@4
   518
typedef 
vb@4
   519
enum _pEp_MIME_format
vb@4
   520
    {
vb@4
   521
        pEp_MIME_none	= 0,
vb@4
   522
        pEp_MIME_fields_omitted	= ( pEp_MIME_none + 1 ) ,
vb@4
   523
        pEp_MIME	= ( pEp_MIME_fields_omitted + 1 ) 
vb@4
   524
    } 	pEp_MIME_format;
vb@4
   525
vb@4
   526
typedef 
vb@4
   527
enum _pEp_enc_format
vb@4
   528
    {
vb@4
   529
        pEp_enc_none	= 0,
vb@4
   530
        pEp_enc_pieces	= ( pEp_enc_none + 1 ) ,
vb@4
   531
        pEp_enc_S_MIME	= ( pEp_enc_pieces + 1 ) ,
vb@4
   532
        pEp_enc_PGP_MIME	= ( pEp_enc_S_MIME + 1 ) ,
vb@4
   533
        pEp_enc_pEp	= ( pEp_enc_PGP_MIME + 1 ) 
vb@4
   534
    } 	pEp_enc_format;
vb@4
   535
vb@4
   536
vb@4
   537
EXTERN_C const IID IID_IMessageAPI_Outlook;
vb@4
   538
vb@4
   539
#if defined(__cplusplus) && !defined(CINTERFACE)
vb@4
   540
    
vb@4
   541
    MIDL_INTERFACE("BC9AB54D-2CDA-47A5-AB40-64857B9E9555")
vb@4
   542
    IMessageAPI_Outlook : public IUnknown
vb@4
   543
    {
vb@4
   544
    public:
vb@4
   545
        virtual HRESULT STDMETHODCALLTYPE key_compromized( 
vb@4
   546
            /* [in] */ BSTR fpr) = 0;
vb@4
   547
        
vb@4
   548
    };
vb@4
   549
    
vb@4
   550
    
vb@4
   551
#else 	/* C style interface */
vb@4
   552
vb@4
   553
    typedef struct IMessageAPI_OutlookVtbl
vb@4
   554
    {
vb@4
   555
        BEGIN_INTERFACE
vb@4
   556
        
vb@4
   557
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
vb@4
   558
            IMessageAPI_Outlook * This,
vb@4
   559
            /* [in] */ REFIID riid,
vb@4
   560
            /* [annotation][iid_is][out] */ 
vb@4
   561
            _COM_Outptr_  void **ppvObject);
vb@4
   562
        
vb@4
   563
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
vb@4
   564
            IMessageAPI_Outlook * This);
vb@4
   565
        
vb@4
   566
        ULONG ( STDMETHODCALLTYPE *Release )( 
vb@4
   567
            IMessageAPI_Outlook * This);
vb@4
   568
        
vb@4
   569
        HRESULT ( STDMETHODCALLTYPE *key_compromized )( 
vb@4
   570
            IMessageAPI_Outlook * This,
vb@4
   571
            /* [in] */ BSTR fpr);
vb@4
   572
        
vb@4
   573
        END_INTERFACE
vb@4
   574
    } IMessageAPI_OutlookVtbl;
vb@4
   575
vb@4
   576
    interface IMessageAPI_Outlook
vb@4
   577
    {
vb@4
   578
        CONST_VTBL struct IMessageAPI_OutlookVtbl *lpVtbl;
vb@4
   579
    };
vb@4
   580
vb@4
   581
    
vb@4
   582
vb@4
   583
#ifdef COBJMACROS
vb@4
   584
vb@4
   585
vb@4
   586
#define IMessageAPI_Outlook_QueryInterface(This,riid,ppvObject)	\
vb@4
   587
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 
vb@4
   588
vb@4
   589
#define IMessageAPI_Outlook_AddRef(This)	\
vb@4
   590
    ( (This)->lpVtbl -> AddRef(This) ) 
vb@4
   591
vb@4
   592
#define IMessageAPI_Outlook_Release(This)	\
vb@4
   593
    ( (This)->lpVtbl -> Release(This) ) 
vb@4
   594
vb@4
   595
vb@4
   596
#define IMessageAPI_Outlook_key_compromized(This,fpr)	\
vb@4
   597
    ( (This)->lpVtbl -> key_compromized(This,fpr) ) 
vb@4
   598
vb@4
   599
#endif /* COBJMACROS */
vb@4
   600
vb@4
   601
vb@4
   602
#endif 	/* C style interface */
vb@4
   603
vb@4
   604
vb@4
   605
vb@4
   606
vb@4
   607
#endif 	/* __IMessageAPI_Outlook_INTERFACE_DEFINED__ */
vb@4
   608
vb@4
   609
vb@2
   610
vb@2
   611
#ifndef __pEpCOMServerAdapterLib_LIBRARY_DEFINED__
vb@2
   612
#define __pEpCOMServerAdapterLib_LIBRARY_DEFINED__
vb@2
   613
vb@2
   614
/* library pEpCOMServerAdapterLib */
vb@2
   615
/* [version][uuid] */ 
vb@2
   616
vb@2
   617
vb@2
   618
EXTERN_C const IID LIBID_pEpCOMServerAdapterLib;
vb@2
   619
vb@2
   620
#ifndef ___IpEpEngineEvents_DISPINTERFACE_DEFINED__
vb@2
   621
#define ___IpEpEngineEvents_DISPINTERFACE_DEFINED__
vb@2
   622
vb@2
   623
/* dispinterface _IpEpEngineEvents */
vb@2
   624
/* [uuid] */ 
vb@2
   625
vb@2
   626
vb@2
   627
EXTERN_C const IID DIID__IpEpEngineEvents;
vb@2
   628
vb@2
   629
#if defined(__cplusplus) && !defined(CINTERFACE)
vb@2
   630
vb@2
   631
    MIDL_INTERFACE("B6BC9B8E-D9E2-4419-A3A4-7B4B58175549")
vb@2
   632
    _IpEpEngineEvents : public IDispatch
vb@2
   633
    {
vb@2
   634
    };
vb@2
   635
    
vb@2
   636
#else 	/* C style interface */
vb@2
   637
vb@2
   638
    typedef struct _IpEpEngineEventsVtbl
vb@2
   639
    {
vb@2
   640
        BEGIN_INTERFACE
vb@2
   641
        
vb@2
   642
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
vb@2
   643
            _IpEpEngineEvents * This,
vb@2
   644
            /* [in] */ REFIID riid,
vb@2
   645
            /* [annotation][iid_is][out] */ 
vb@2
   646
            _COM_Outptr_  void **ppvObject);
vb@2
   647
        
vb@2
   648
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
vb@2
   649
            _IpEpEngineEvents * This);
vb@2
   650
        
vb@2
   651
        ULONG ( STDMETHODCALLTYPE *Release )( 
vb@2
   652
            _IpEpEngineEvents * This);
vb@2
   653
        
vb@2
   654
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
vb@2
   655
            _IpEpEngineEvents * This,
vb@2
   656
            /* [out] */ UINT *pctinfo);
vb@2
   657
        
vb@2
   658
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
vb@2
   659
            _IpEpEngineEvents * This,
vb@2
   660
            /* [in] */ UINT iTInfo,
vb@2
   661
            /* [in] */ LCID lcid,
vb@2
   662
            /* [out] */ ITypeInfo **ppTInfo);
vb@2
   663
        
vb@2
   664
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
vb@2
   665
            _IpEpEngineEvents * This,
vb@2
   666
            /* [in] */ REFIID riid,
vb@2
   667
            /* [size_is][in] */ LPOLESTR *rgszNames,
vb@2
   668
            /* [range][in] */ UINT cNames,
vb@2
   669
            /* [in] */ LCID lcid,
vb@2
   670
            /* [size_is][out] */ DISPID *rgDispId);
vb@2
   671
        
vb@2
   672
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
vb@2
   673
            _IpEpEngineEvents * This,
vb@2
   674
            /* [annotation][in] */ 
vb@2
   675
            _In_  DISPID dispIdMember,
vb@2
   676
            /* [annotation][in] */ 
vb@2
   677
            _In_  REFIID riid,
vb@2
   678
            /* [annotation][in] */ 
vb@2
   679
            _In_  LCID lcid,
vb@2
   680
            /* [annotation][in] */ 
vb@2
   681
            _In_  WORD wFlags,
vb@2
   682
            /* [annotation][out][in] */ 
vb@2
   683
            _In_  DISPPARAMS *pDispParams,
vb@2
   684
            /* [annotation][out] */ 
vb@2
   685
            _Out_opt_  VARIANT *pVarResult,
vb@2
   686
            /* [annotation][out] */ 
vb@2
   687
            _Out_opt_  EXCEPINFO *pExcepInfo,
vb@2
   688
            /* [annotation][out] */ 
vb@2
   689
            _Out_opt_  UINT *puArgErr);
vb@2
   690
        
vb@2
   691
        END_INTERFACE
vb@2
   692
    } _IpEpEngineEventsVtbl;
vb@2
   693
vb@2
   694
    interface _IpEpEngineEvents
vb@2
   695
    {
vb@2
   696
        CONST_VTBL struct _IpEpEngineEventsVtbl *lpVtbl;
vb@2
   697
    };
vb@2
   698
vb@2
   699
    
vb@2
   700
vb@2
   701
#ifdef COBJMACROS
vb@2
   702
vb@2
   703
vb@2
   704
#define _IpEpEngineEvents_QueryInterface(This,riid,ppvObject)	\
vb@2
   705
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 
vb@2
   706
vb@2
   707
#define _IpEpEngineEvents_AddRef(This)	\
vb@2
   708
    ( (This)->lpVtbl -> AddRef(This) ) 
vb@2
   709
vb@2
   710
#define _IpEpEngineEvents_Release(This)	\
vb@2
   711
    ( (This)->lpVtbl -> Release(This) ) 
vb@2
   712
vb@2
   713
vb@2
   714
#define _IpEpEngineEvents_GetTypeInfoCount(This,pctinfo)	\
vb@2
   715
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 
vb@2
   716
vb@2
   717
#define _IpEpEngineEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
vb@2
   718
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 
vb@2
   719
vb@2
   720
#define _IpEpEngineEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
vb@2
   721
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 
vb@2
   722
vb@2
   723
#define _IpEpEngineEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
vb@2
   724
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 
vb@2
   725
vb@2
   726
#endif /* COBJMACROS */
vb@2
   727
vb@2
   728
vb@2
   729
#endif 	/* C style interface */
vb@2
   730
vb@2
   731
vb@2
   732
#endif 	/* ___IpEpEngineEvents_DISPINTERFACE_DEFINED__ */
vb@2
   733
vb@2
   734
vb@2
   735
EXTERN_C const CLSID CLSID_pEpEngine;
vb@2
   736
vb@2
   737
#ifdef __cplusplus
vb@2
   738
vb@2
   739
class DECLSPEC_UUID("EF1B073D-5058-4E0E-829E-B4D22CA21EA2")
vb@2
   740
pEpEngine;
vb@2
   741
#endif
vb@2
   742
#endif /* __pEpCOMServerAdapterLib_LIBRARY_DEFINED__ */
vb@2
   743
vb@2
   744
/* Additional Prototypes for ALL interfaces */
vb@2
   745
vb@2
   746
unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
vb@2
   747
unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
vb@2
   748
unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
vb@2
   749
void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 
vb@2
   750
vb@2
   751
unsigned long             __RPC_USER  LPSAFEARRAY_UserSize(     unsigned long *, unsigned long            , LPSAFEARRAY * ); 
vb@2
   752
unsigned char * __RPC_USER  LPSAFEARRAY_UserMarshal(  unsigned long *, unsigned char *, LPSAFEARRAY * ); 
vb@2
   753
unsigned char * __RPC_USER  LPSAFEARRAY_UserUnmarshal(unsigned long *, unsigned char *, LPSAFEARRAY * ); 
vb@2
   754
void                      __RPC_USER  LPSAFEARRAY_UserFree(     unsigned long *, LPSAFEARRAY * ); 
vb@2
   755
vb@2
   756
/* end of Additional Prototypes */
vb@2
   757
vb@2
   758
#ifdef __cplusplus
vb@2
   759
}
vb@2
   760
#endif
vb@2
   761
vb@2
   762
#endif
vb@2
   763
vb@2
   764