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