WeChatRobotCOM_i.h 44.3 KB
Newer Older
L
ljc545w 已提交
1 2 3 4


/* this ALWAYS GENERATED file contains the definitions for the interfaces */

5 6

 /* File created by MIDL compiler version 8.01.0622 */
L
ljc545w 已提交
7 8 9
/* at Tue Jan 19 11:14:07 2038
 */
/* Compiler settings for WeChatRobotCOM.idl:
10
    Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 8.01.0622 
L
ljc545w 已提交
11
    protocol : dce , ms_ext, c_ext, robust
12 13
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
L
ljc545w 已提交
14 15 16 17 18
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING(  ) */

19 20


L
ljc545w 已提交
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 500
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif /* __RPCNDR_H_VERSION__ */

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __WeChatRobotCOM_i_h__
#define __WeChatRobotCOM_i_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

45
/* Forward Declarations */ 
L
ljc545w 已提交
46 47 48 49 50

#ifndef __IWeChatRobot_FWD_DEFINED__
#define __IWeChatRobot_FWD_DEFINED__
typedef interface IWeChatRobot IWeChatRobot;

51 52
#endif 	/* __IWeChatRobot_FWD_DEFINED__ */

L
ljc545w 已提交
53

L
ljc545w 已提交
54 55 56 57
#ifndef __IRobotEvent_FWD_DEFINED__
#define __IRobotEvent_FWD_DEFINED__
typedef interface IRobotEvent IRobotEvent;

58 59
#endif 	/* __IRobotEvent_FWD_DEFINED__ */

L
ljc545w 已提交
60

L
ljc545w 已提交
61 62 63 64 65 66 67 68 69
#ifndef __WeChatRobot_FWD_DEFINED__
#define __WeChatRobot_FWD_DEFINED__

#ifdef __cplusplus
typedef class WeChatRobot WeChatRobot;
#else
typedef struct WeChatRobot WeChatRobot;
#endif /* __cplusplus */

70 71
#endif 	/* __WeChatRobot_FWD_DEFINED__ */

L
ljc545w 已提交
72

L
ljc545w 已提交
73 74 75 76
#ifndef ___IRobotEventEvents_FWD_DEFINED__
#define ___IRobotEventEvents_FWD_DEFINED__
typedef interface _IRobotEventEvents _IRobotEventEvents;

77 78
#endif 	/* ___IRobotEventEvents_FWD_DEFINED__ */

L
ljc545w 已提交
79 80 81 82 83 84 85 86 87 88

#ifndef __RobotEvent_FWD_DEFINED__
#define __RobotEvent_FWD_DEFINED__

#ifdef __cplusplus
typedef class RobotEvent RobotEvent;
#else
typedef struct RobotEvent RobotEvent;
#endif /* __cplusplus */

89 90
#endif 	/* __RobotEvent_FWD_DEFINED__ */

L
ljc545w 已提交
91

L
ljc545w 已提交
92 93 94 95 96 97
/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"
#include "shobjidl.h"

#ifdef __cplusplus
98 99 100
extern "C"{
#endif 

L
ljc545w 已提交
101 102 103 104

#ifndef __IWeChatRobot_INTERFACE_DEFINED__
#define __IWeChatRobot_INTERFACE_DEFINED__

105 106
/* interface IWeChatRobot */
/* [unique][nonextensible][dual][uuid][object] */ 
L
ljc545w 已提交
107 108


109
EXTERN_C const IID IID_IWeChatRobot;
110

111 112
#if defined(__cplusplus) && !defined(CINTERFACE)
    
L
ljc545w 已提交
113 114 115 116
    MIDL_INTERFACE("a836e359-59b2-4e01-9b0c-0e5a5a2efa22")
    IWeChatRobot : public IDispatch
    {
    public:
117
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CStartRobotService( 
L
ljc545w 已提交
118
            /* [in] */ DWORD pid,
L
ljc545w 已提交
119
            /* [retval][out] */ int *__result) = 0;
120 121
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CStopRobotService( 
L
ljc545w 已提交
122
            /* [in] */ DWORD pid,
L
ljc545w 已提交
123
            /* [retval][out] */ int *__result) = 0;
124 125
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CSendText( 
L
ljc545w 已提交
126
            /* [in] */ DWORD pid,
L
ljc545w 已提交
127 128 129
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR wxmsg,
            /* [retval][out] */ int *__result) = 0;
130 131
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CSendImage( 
L
ljc545w 已提交
132
            /* [in] */ DWORD pid,
L
ljc545w 已提交
133 134 135
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR imagepath,
            /* [retval][out] */ int *__result) = 0;
136 137
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CSendFile( 
L
ljc545w 已提交
138
            /* [in] */ DWORD pid,
L
ljc545w 已提交
139 140 141
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR filepath,
            /* [retval][out] */ int *__result) = 0;
142 143
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CSendArticle( 
L
ljc545w 已提交
144
            /* [in] */ DWORD pid,
L
ljc545w 已提交
145 146 147 148
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR title,
            /* [in] */ BSTR abstract,
            /* [in] */ BSTR url,
L
ljc545w 已提交
149
            /* [in] */ BSTR imgpath,
L
ljc545w 已提交
150
            /* [retval][out] */ int *__result) = 0;
151 152
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CSendCard( 
L
ljc545w 已提交
153
            /* [in] */ DWORD pid,
L
ljc545w 已提交
154 155 156 157
            /* [in] */ BSTR receiver,
            /* [in] */ BSTR sharedwxid,
            /* [in] */ BSTR nickname,
            /* [retval][out] */ int *__result) = 0;
158 159
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CGetFriendList( 
L
ljc545w 已提交
160
            /* [in] */ DWORD pid,
161 162 163
            /* [retval][out] */ VARIANT *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CGetFriendListString( 
L
ljc545w 已提交
164
            /* [in] */ DWORD pid,
165 166 167
            /* [retval][out] */ BSTR *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CGetWxUserInfo( 
L
ljc545w 已提交
168
            /* [in] */ DWORD pid,
L
ljc545w 已提交
169
            /* [in] */ BSTR wxid,
170 171 172
            /* [retval][out] */ BSTR *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CGetSelfInfo( 
L
ljc545w 已提交
173
            /* [in] */ DWORD pid,
174 175 176
            /* [retval][out] */ BSTR *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CCheckFriendStatus( 
L
ljc545w 已提交
177
            /* [in] */ DWORD pid,
L
ljc545w 已提交
178 179
            /* [in] */ BSTR wxid,
            /* [retval][out] */ int *__result) = 0;
180 181 182 183 184
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CGetComWorkPath( 
            /* [retval][out] */ BSTR *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CStartReceiveMessage( 
L
ljc545w 已提交
185
            /* [in] */ DWORD pid,
L
ljc545w 已提交
186
            /* [in] */ int port,
L
ljc545w 已提交
187
            /* [retval][out] */ int *__result) = 0;
188 189
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CStopReceiveMessage( 
L
ljc545w 已提交
190
            /* [in] */ DWORD pid,
L
ljc545w 已提交
191
            /* [retval][out] */ int *__result) = 0;
192 193
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CSendAtText( 
L
ljc545w 已提交
194
            /* [in] */ DWORD pid,
L
ljc545w 已提交
195
            /* [in] */ BSTR chatroomid,
196
            /* [in] */ VARIANT *wxid,
L
ljc545w 已提交
197
            /* [in] */ BSTR wxmsg,
L
ljc545w 已提交
198
            /* [in] */ BOOL AutoNickName,
L
ljc545w 已提交
199
            /* [retval][out] */ int *__result) = 0;
200 201
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CGetChatRoomMembers( 
L
ljc545w 已提交
202
            /* [in] */ DWORD pid,
L
ljc545w 已提交
203
            /* [in] */ BSTR chatroomid,
204 205 206
            /* [retval][out] */ VARIANT *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CGetDbHandles( 
L
ljc545w 已提交
207
            /* [in] */ DWORD pid,
208 209 210
            /* [retval][out] */ VARIANT *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CExecuteSQL( 
L
ljc545w 已提交
211
            /* [in] */ DWORD pid,
L
ljc545w 已提交
212 213
            /* [in] */ DWORD DbHandle,
            /* [in] */ BSTR sql,
214 215 216
            /* [retval][out] */ VARIANT *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CBackupSQLiteDB( 
L
ljc545w 已提交
217
            /* [in] */ DWORD pid,
L
ljc545w 已提交
218 219 220
            /* [in] */ DWORD DbHandle,
            /* [in] */ BSTR savepath,
            /* [retval][out] */ int *__result) = 0;
221 222
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CVerifyFriendApply( 
L
ljc545w 已提交
223
            /* [in] */ DWORD pid,
L
ljc545w 已提交
224 225 226
            /* [in] */ BSTR v3,
            /* [in] */ BSTR v4,
            /* [retval][out] */ int *__result) = 0;
227 228
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CAddFriendByWxid( 
L
ljc545w 已提交
229
            /* [in] */ DWORD pid,
L
ljc545w 已提交
230 231 232
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR message,
            /* [retval][out] */ int *__result) = 0;
233 234
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CAddFriendByV3( 
L
ljc545w 已提交
235
            /* [in] */ DWORD pid,
L
ljc545w 已提交
236 237 238 239
            /* [in] */ BSTR v3,
            /* [in] */ BSTR message,
            /* [in] */ int AddType,
            /* [retval][out] */ int *__result) = 0;
240 241 242 243 244
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CGetWeChatVer( 
            /* [retval][out] */ BSTR *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CStartWeChat( 
L
ljc545w 已提交
245
            /* [retval][out] */ int *__result) = 0;
246 247
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CSearchContactByNet( 
L
ljc545w 已提交
248
            /* [in] */ DWORD pid,
L
ljc545w 已提交
249
            /* [in] */ BSTR keyword,
250 251 252
            /* [retval][out] */ VARIANT *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CAddBrandContact( 
L
ljc545w 已提交
253
            /* [in] */ DWORD pid,
L
ljc545w 已提交
254 255
            /* [in] */ BSTR PublicId,
            /* [retval][out] */ int *__result) = 0;
256 257
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CHookVoiceMsg( 
L
ljc545w 已提交
258
            /* [in] */ DWORD pid,
L
ljc545w 已提交
259 260
            /* [in] */ BSTR savepath,
            /* [retval][out] */ int *__result) = 0;
261 262
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CUnHookVoiceMsg( 
L
ljc545w 已提交
263
            /* [in] */ DWORD pid,
L
ljc545w 已提交
264
            /* [retval][out] */ int *__result) = 0;
265 266
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CHookImageMsg( 
L
ljc545w 已提交
267
            /* [in] */ DWORD pid,
L
ljc545w 已提交
268 269
            /* [in] */ BSTR savepath,
            /* [retval][out] */ int *__result) = 0;
270 271
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CUnHookImageMsg( 
L
ljc545w 已提交
272
            /* [in] */ DWORD pid,
L
ljc545w 已提交
273
            /* [retval][out] */ int *__result) = 0;
274 275
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CChangeWeChatVer( 
L
ljc545w 已提交
276
            /* [in] */ DWORD pid,
L
ljc545w 已提交
277 278
            /* [in] */ BSTR verStr,
            /* [retval][out] */ int *__result) = 0;
279 280
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CSendAppMsg( 
L
ljc545w 已提交
281
            /* [in] */ DWORD pid,
L
ljc545w 已提交
282 283 284
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR appid,
            /* [retval][out] */ int *__result) = 0;
285 286
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CDeleteUser( 
L
ljc545w 已提交
287
            /* [in] */ DWORD pid,
L
ljc545w 已提交
288 289
            /* [in] */ BSTR wxid,
            /* [retval][out] */ int *__result) = 0;
290 291
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CIsWxLogin( 
L
ljc545w 已提交
292
            /* [in] */ DWORD pid,
L
ljc545w 已提交
293
            /* [retval][out] */ int *__result) = 0;
294 295
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CEditRemark( 
L
ljc545w 已提交
296
            /* [in] */ DWORD pid,
L
ljc545w 已提交
297 298 299
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR remark,
            /* [retval][out] */ int *__result) = 0;
300 301
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CSetChatRoomName( 
L
ljc545w 已提交
302
            /* [in] */ DWORD pid,
L
ljc545w 已提交
303 304 305
            /* [in] */ BSTR chatroomid,
            /* [in] */ BSTR name,
            /* [retval][out] */ int *__result) = 0;
306 307
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CSetChatRoomAnnouncement( 
L
ljc545w 已提交
308
            /* [in] */ DWORD pid,
L
ljc545w 已提交
309 310 311
            /* [in] */ BSTR chatroomid,
            /* [in] */ BSTR announcement,
            /* [retval][out] */ int *__result) = 0;
312 313
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CSetChatRoomSelfNickname( 
L
ljc545w 已提交
314
            /* [in] */ DWORD pid,
L
ljc545w 已提交
315 316 317
            /* [in] */ BSTR chatroomid,
            /* [in] */ BSTR nickname,
            /* [retval][out] */ int *__result) = 0;
318 319
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CGetChatRoomMemberNickname( 
L
ljc545w 已提交
320
            /* [in] */ DWORD pid,
L
ljc545w 已提交
321 322
            /* [in] */ BSTR chatroomid,
            /* [in] */ BSTR wxid,
323 324 325
            /* [retval][out] */ BSTR *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CDelChatRoomMember( 
L
ljc545w 已提交
326
            /* [in] */ DWORD pid,
L
ljc545w 已提交
327
            /* [in] */ BSTR chatroomid,
328
            /* [in] */ VARIANT *wxids,
L
ljc545w 已提交
329
            /* [retval][out] */ int *__result) = 0;
330 331
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CAddChatRoomMember( 
L
ljc545w 已提交
332
            /* [in] */ DWORD pid,
L
ljc545w 已提交
333
            /* [in] */ BSTR chatroomid,
334
            /* [in] */ VARIANT *wxids,
L
ljc545w 已提交
335
            /* [retval][out] */ int *__result) = 0;
336
        
L
ljc545w 已提交
337 338 339 340 341 342 343 344 345 346 347
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE COpenBrowser( 
            /* [in] */ DWORD pid,
            /* [in] */ BSTR url,
            /* [retval][out] */ int *__result) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CGetHistoryPublicMsg( 
            /* [in] */ DWORD pid,
            /* [in] */ BSTR PublicId,
            /* [in] */ BSTR Offset,
            /* [retval][out] */ VARIANT *__result) = 0;
        
348 349 350 351 352 353
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CForwardMessage( 
            /* [in] */ DWORD pid,
            /* [in] */ BSTR wxid,
            /* [in] */ int localId,
            /* [retval][out] */ int *__result) = 0;
        
L
ljc545w 已提交
354
    };
355 356 357
    
    
#else 	/* C style interface */
L
ljc545w 已提交
358 359 360 361

    typedef struct IWeChatRobotVtbl
    {
        BEGIN_INTERFACE
362 363 364
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IWeChatRobot * This,
L
ljc545w 已提交
365
            /* [in] */ REFIID riid,
366 367 368 369 370 371 372 373 374 375 376
            /* [annotation][iid_is][out] */ 
            _COM_Outptr_  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IWeChatRobot * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IWeChatRobot * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IWeChatRobot * This,
L
ljc545w 已提交
377
            /* [out] */ UINT *pctinfo);
378 379 380
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IWeChatRobot * This,
L
ljc545w 已提交
381 382 383
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
384 385 386
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IWeChatRobot * This,
L
ljc545w 已提交
387 388 389 390 391
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [range][in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IWeChatRobot * This,
            /* [annotation][in] */ 
            _In_  DISPID dispIdMember,
            /* [annotation][in] */ 
            _In_  REFIID riid,
            /* [annotation][in] */ 
            _In_  LCID lcid,
            /* [annotation][in] */ 
            _In_  WORD wFlags,
            /* [annotation][out][in] */ 
            _In_  DISPPARAMS *pDispParams,
            /* [annotation][out] */ 
            _Out_opt_  VARIANT *pVarResult,
            /* [annotation][out] */ 
            _Out_opt_  EXCEPINFO *pExcepInfo,
            /* [annotation][out] */ 
            _Out_opt_  UINT *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CStartRobotService )( 
            IWeChatRobot * This,
L
ljc545w 已提交
414
            /* [in] */ DWORD pid,
L
ljc545w 已提交
415
            /* [retval][out] */ int *__result);
416 417 418
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CStopRobotService )( 
            IWeChatRobot * This,
L
ljc545w 已提交
419
            /* [in] */ DWORD pid,
L
ljc545w 已提交
420
            /* [retval][out] */ int *__result);
421 422 423
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CSendText )( 
            IWeChatRobot * This,
L
ljc545w 已提交
424
            /* [in] */ DWORD pid,
L
ljc545w 已提交
425 426 427
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR wxmsg,
            /* [retval][out] */ int *__result);
428 429 430
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CSendImage )( 
            IWeChatRobot * This,
L
ljc545w 已提交
431
            /* [in] */ DWORD pid,
L
ljc545w 已提交
432 433 434
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR imagepath,
            /* [retval][out] */ int *__result);
435 436 437
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CSendFile )( 
            IWeChatRobot * This,
L
ljc545w 已提交
438
            /* [in] */ DWORD pid,
L
ljc545w 已提交
439 440 441
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR filepath,
            /* [retval][out] */ int *__result);
442 443 444
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CSendArticle )( 
            IWeChatRobot * This,
L
ljc545w 已提交
445
            /* [in] */ DWORD pid,
L
ljc545w 已提交
446 447 448 449
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR title,
            /* [in] */ BSTR abstract,
            /* [in] */ BSTR url,
L
ljc545w 已提交
450
            /* [in] */ BSTR imgpath,
L
ljc545w 已提交
451
            /* [retval][out] */ int *__result);
452 453 454
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CSendCard )( 
            IWeChatRobot * This,
L
ljc545w 已提交
455
            /* [in] */ DWORD pid,
L
ljc545w 已提交
456 457 458 459
            /* [in] */ BSTR receiver,
            /* [in] */ BSTR sharedwxid,
            /* [in] */ BSTR nickname,
            /* [retval][out] */ int *__result);
460 461 462
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CGetFriendList )( 
            IWeChatRobot * This,
L
ljc545w 已提交
463
            /* [in] */ DWORD pid,
L
ljc545w 已提交
464
            /* [retval][out] */ VARIANT *__result);
465 466 467
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CGetFriendListString )( 
            IWeChatRobot * This,
L
ljc545w 已提交
468
            /* [in] */ DWORD pid,
L
ljc545w 已提交
469
            /* [retval][out] */ BSTR *__result);
470 471 472
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CGetWxUserInfo )( 
            IWeChatRobot * This,
L
ljc545w 已提交
473
            /* [in] */ DWORD pid,
L
ljc545w 已提交
474 475
            /* [in] */ BSTR wxid,
            /* [retval][out] */ BSTR *__result);
476 477 478
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CGetSelfInfo )( 
            IWeChatRobot * This,
L
ljc545w 已提交
479
            /* [in] */ DWORD pid,
L
ljc545w 已提交
480
            /* [retval][out] */ BSTR *__result);
481 482 483
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CCheckFriendStatus )( 
            IWeChatRobot * This,
L
ljc545w 已提交
484
            /* [in] */ DWORD pid,
L
ljc545w 已提交
485 486
            /* [in] */ BSTR wxid,
            /* [retval][out] */ int *__result);
487 488 489
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CGetComWorkPath )( 
            IWeChatRobot * This,
L
ljc545w 已提交
490
            /* [retval][out] */ BSTR *__result);
491 492 493
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CStartReceiveMessage )( 
            IWeChatRobot * This,
L
ljc545w 已提交
494
            /* [in] */ DWORD pid,
L
ljc545w 已提交
495
            /* [in] */ int port,
L
ljc545w 已提交
496
            /* [retval][out] */ int *__result);
497 498 499
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CStopReceiveMessage )( 
            IWeChatRobot * This,
L
ljc545w 已提交
500
            /* [in] */ DWORD pid,
L
ljc545w 已提交
501
            /* [retval][out] */ int *__result);
502 503 504
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CSendAtText )( 
            IWeChatRobot * This,
L
ljc545w 已提交
505
            /* [in] */ DWORD pid,
L
ljc545w 已提交
506
            /* [in] */ BSTR chatroomid,
507
            /* [in] */ VARIANT *wxid,
L
ljc545w 已提交
508
            /* [in] */ BSTR wxmsg,
L
ljc545w 已提交
509
            /* [in] */ BOOL AutoNickName,
L
ljc545w 已提交
510
            /* [retval][out] */ int *__result);
511 512 513
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CGetChatRoomMembers )( 
            IWeChatRobot * This,
L
ljc545w 已提交
514
            /* [in] */ DWORD pid,
L
ljc545w 已提交
515 516
            /* [in] */ BSTR chatroomid,
            /* [retval][out] */ VARIANT *__result);
517 518 519
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CGetDbHandles )( 
            IWeChatRobot * This,
L
ljc545w 已提交
520
            /* [in] */ DWORD pid,
L
ljc545w 已提交
521
            /* [retval][out] */ VARIANT *__result);
522 523 524
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CExecuteSQL )( 
            IWeChatRobot * This,
L
ljc545w 已提交
525
            /* [in] */ DWORD pid,
L
ljc545w 已提交
526 527 528
            /* [in] */ DWORD DbHandle,
            /* [in] */ BSTR sql,
            /* [retval][out] */ VARIANT *__result);
529 530 531
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CBackupSQLiteDB )( 
            IWeChatRobot * This,
L
ljc545w 已提交
532
            /* [in] */ DWORD pid,
L
ljc545w 已提交
533 534 535
            /* [in] */ DWORD DbHandle,
            /* [in] */ BSTR savepath,
            /* [retval][out] */ int *__result);
536 537 538
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CVerifyFriendApply )( 
            IWeChatRobot * This,
L
ljc545w 已提交
539
            /* [in] */ DWORD pid,
L
ljc545w 已提交
540 541 542
            /* [in] */ BSTR v3,
            /* [in] */ BSTR v4,
            /* [retval][out] */ int *__result);
543 544 545
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CAddFriendByWxid )( 
            IWeChatRobot * This,
L
ljc545w 已提交
546
            /* [in] */ DWORD pid,
L
ljc545w 已提交
547 548 549
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR message,
            /* [retval][out] */ int *__result);
550 551 552
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CAddFriendByV3 )( 
            IWeChatRobot * This,
L
ljc545w 已提交
553
            /* [in] */ DWORD pid,
L
ljc545w 已提交
554 555 556 557
            /* [in] */ BSTR v3,
            /* [in] */ BSTR message,
            /* [in] */ int AddType,
            /* [retval][out] */ int *__result);
558 559 560
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CGetWeChatVer )( 
            IWeChatRobot * This,
L
ljc545w 已提交
561
            /* [retval][out] */ BSTR *__result);
562 563 564
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CStartWeChat )( 
            IWeChatRobot * This,
L
ljc545w 已提交
565
            /* [retval][out] */ int *__result);
566 567 568
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CSearchContactByNet )( 
            IWeChatRobot * This,
L
ljc545w 已提交
569
            /* [in] */ DWORD pid,
L
ljc545w 已提交
570 571
            /* [in] */ BSTR keyword,
            /* [retval][out] */ VARIANT *__result);
572 573 574
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CAddBrandContact )( 
            IWeChatRobot * This,
L
ljc545w 已提交
575
            /* [in] */ DWORD pid,
L
ljc545w 已提交
576 577
            /* [in] */ BSTR PublicId,
            /* [retval][out] */ int *__result);
578 579 580
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CHookVoiceMsg )( 
            IWeChatRobot * This,
L
ljc545w 已提交
581
            /* [in] */ DWORD pid,
L
ljc545w 已提交
582 583
            /* [in] */ BSTR savepath,
            /* [retval][out] */ int *__result);
584 585 586
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CUnHookVoiceMsg )( 
            IWeChatRobot * This,
L
ljc545w 已提交
587
            /* [in] */ DWORD pid,
L
ljc545w 已提交
588
            /* [retval][out] */ int *__result);
589 590 591
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CHookImageMsg )( 
            IWeChatRobot * This,
L
ljc545w 已提交
592
            /* [in] */ DWORD pid,
L
ljc545w 已提交
593 594
            /* [in] */ BSTR savepath,
            /* [retval][out] */ int *__result);
595 596 597
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CUnHookImageMsg )( 
            IWeChatRobot * This,
L
ljc545w 已提交
598
            /* [in] */ DWORD pid,
L
ljc545w 已提交
599
            /* [retval][out] */ int *__result);
600 601 602
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CChangeWeChatVer )( 
            IWeChatRobot * This,
L
ljc545w 已提交
603
            /* [in] */ DWORD pid,
L
ljc545w 已提交
604 605
            /* [in] */ BSTR verStr,
            /* [retval][out] */ int *__result);
606 607 608
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CSendAppMsg )( 
            IWeChatRobot * This,
L
ljc545w 已提交
609
            /* [in] */ DWORD pid,
L
ljc545w 已提交
610 611 612
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR appid,
            /* [retval][out] */ int *__result);
613 614 615
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CDeleteUser )( 
            IWeChatRobot * This,
L
ljc545w 已提交
616
            /* [in] */ DWORD pid,
L
ljc545w 已提交
617 618
            /* [in] */ BSTR wxid,
            /* [retval][out] */ int *__result);
619 620 621
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CIsWxLogin )( 
            IWeChatRobot * This,
L
ljc545w 已提交
622
            /* [in] */ DWORD pid,
L
ljc545w 已提交
623
            /* [retval][out] */ int *__result);
624 625 626
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CEditRemark )( 
            IWeChatRobot * This,
L
ljc545w 已提交
627
            /* [in] */ DWORD pid,
L
ljc545w 已提交
628 629 630
            /* [in] */ BSTR wxid,
            /* [in] */ BSTR remark,
            /* [retval][out] */ int *__result);
631 632 633
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CSetChatRoomName )( 
            IWeChatRobot * This,
L
ljc545w 已提交
634
            /* [in] */ DWORD pid,
L
ljc545w 已提交
635 636 637
            /* [in] */ BSTR chatroomid,
            /* [in] */ BSTR name,
            /* [retval][out] */ int *__result);
638 639 640
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CSetChatRoomAnnouncement )( 
            IWeChatRobot * This,
L
ljc545w 已提交
641
            /* [in] */ DWORD pid,
L
ljc545w 已提交
642 643 644
            /* [in] */ BSTR chatroomid,
            /* [in] */ BSTR announcement,
            /* [retval][out] */ int *__result);
645 646 647
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CSetChatRoomSelfNickname )( 
            IWeChatRobot * This,
L
ljc545w 已提交
648
            /* [in] */ DWORD pid,
L
ljc545w 已提交
649 650 651
            /* [in] */ BSTR chatroomid,
            /* [in] */ BSTR nickname,
            /* [retval][out] */ int *__result);
652 653 654
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CGetChatRoomMemberNickname )( 
            IWeChatRobot * This,
L
ljc545w 已提交
655
            /* [in] */ DWORD pid,
L
ljc545w 已提交
656 657 658
            /* [in] */ BSTR chatroomid,
            /* [in] */ BSTR wxid,
            /* [retval][out] */ BSTR *__result);
659 660 661
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CDelChatRoomMember )( 
            IWeChatRobot * This,
L
ljc545w 已提交
662
            /* [in] */ DWORD pid,
L
ljc545w 已提交
663 664 665
            /* [in] */ BSTR chatroomid,
            /* [in] */ VARIANT *wxids,
            /* [retval][out] */ int *__result);
666 667 668
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CAddChatRoomMember )( 
            IWeChatRobot * This,
L
ljc545w 已提交
669
            /* [in] */ DWORD pid,
L
ljc545w 已提交
670 671 672
            /* [in] */ BSTR chatroomid,
            /* [in] */ VARIANT *wxids,
            /* [retval][out] */ int *__result);
673
        
L
ljc545w 已提交
674 675 676 677 678 679 680 681 682 683 684 685 686
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *COpenBrowser )( 
            IWeChatRobot * This,
            /* [in] */ DWORD pid,
            /* [in] */ BSTR url,
            /* [retval][out] */ int *__result);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CGetHistoryPublicMsg )( 
            IWeChatRobot * This,
            /* [in] */ DWORD pid,
            /* [in] */ BSTR PublicId,
            /* [in] */ BSTR Offset,
            /* [retval][out] */ VARIANT *__result);
        
687 688 689 690 691 692 693
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CForwardMessage )( 
            IWeChatRobot * This,
            /* [in] */ DWORD pid,
            /* [in] */ BSTR wxid,
            /* [in] */ int localId,
            /* [retval][out] */ int *__result);
        
L
ljc545w 已提交
694 695 696 697 698 699 700 701
        END_INTERFACE
    } IWeChatRobotVtbl;

    interface IWeChatRobot
    {
        CONST_VTBL struct IWeChatRobotVtbl *lpVtbl;
    };

702 703
    

L
ljc545w 已提交
704 705 706
#ifdef COBJMACROS


707 708 709 710 711 712 713 714 715
#define IWeChatRobot_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IWeChatRobot_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IWeChatRobot_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 

L
ljc545w 已提交
716

717 718
#define IWeChatRobot_GetTypeInfoCount(This,pctinfo)	\
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 
L
ljc545w 已提交
719

720 721
#define IWeChatRobot_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 
L
ljc545w 已提交
722

723 724
#define IWeChatRobot_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 
L
ljc545w 已提交
725

726 727
#define IWeChatRobot_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 
L
ljc545w 已提交
728 729


730 731
#define IWeChatRobot_CStartRobotService(This,pid,__result)	\
    ( (This)->lpVtbl -> CStartRobotService(This,pid,__result) ) 
L
ljc545w 已提交
732

733 734
#define IWeChatRobot_CStopRobotService(This,pid,__result)	\
    ( (This)->lpVtbl -> CStopRobotService(This,pid,__result) ) 
L
ljc545w 已提交
735

736 737
#define IWeChatRobot_CSendText(This,pid,wxid,wxmsg,__result)	\
    ( (This)->lpVtbl -> CSendText(This,pid,wxid,wxmsg,__result) ) 
L
ljc545w 已提交
738

739 740
#define IWeChatRobot_CSendImage(This,pid,wxid,imagepath,__result)	\
    ( (This)->lpVtbl -> CSendImage(This,pid,wxid,imagepath,__result) ) 
L
ljc545w 已提交
741

742 743
#define IWeChatRobot_CSendFile(This,pid,wxid,filepath,__result)	\
    ( (This)->lpVtbl -> CSendFile(This,pid,wxid,filepath,__result) ) 
L
ljc545w 已提交
744

745 746
#define IWeChatRobot_CSendArticle(This,pid,wxid,title,abstract,url,imgpath,__result)	\
    ( (This)->lpVtbl -> CSendArticle(This,pid,wxid,title,abstract,url,imgpath,__result) ) 
L
ljc545w 已提交
747

748 749
#define IWeChatRobot_CSendCard(This,pid,receiver,sharedwxid,nickname,__result)	\
    ( (This)->lpVtbl -> CSendCard(This,pid,receiver,sharedwxid,nickname,__result) ) 
L
ljc545w 已提交
750

751 752
#define IWeChatRobot_CGetFriendList(This,pid,__result)	\
    ( (This)->lpVtbl -> CGetFriendList(This,pid,__result) ) 
L
ljc545w 已提交
753

754 755
#define IWeChatRobot_CGetFriendListString(This,pid,__result)	\
    ( (This)->lpVtbl -> CGetFriendListString(This,pid,__result) ) 
L
ljc545w 已提交
756

757 758
#define IWeChatRobot_CGetWxUserInfo(This,pid,wxid,__result)	\
    ( (This)->lpVtbl -> CGetWxUserInfo(This,pid,wxid,__result) ) 
L
ljc545w 已提交
759

760 761
#define IWeChatRobot_CGetSelfInfo(This,pid,__result)	\
    ( (This)->lpVtbl -> CGetSelfInfo(This,pid,__result) ) 
L
ljc545w 已提交
762

763 764
#define IWeChatRobot_CCheckFriendStatus(This,pid,wxid,__result)	\
    ( (This)->lpVtbl -> CCheckFriendStatus(This,pid,wxid,__result) ) 
L
ljc545w 已提交
765

766 767
#define IWeChatRobot_CGetComWorkPath(This,__result)	\
    ( (This)->lpVtbl -> CGetComWorkPath(This,__result) ) 
L
ljc545w 已提交
768

769 770
#define IWeChatRobot_CStartReceiveMessage(This,pid,port,__result)	\
    ( (This)->lpVtbl -> CStartReceiveMessage(This,pid,port,__result) ) 
L
ljc545w 已提交
771

772 773
#define IWeChatRobot_CStopReceiveMessage(This,pid,__result)	\
    ( (This)->lpVtbl -> CStopReceiveMessage(This,pid,__result) ) 
L
ljc545w 已提交
774

775 776
#define IWeChatRobot_CSendAtText(This,pid,chatroomid,wxid,wxmsg,AutoNickName,__result)	\
    ( (This)->lpVtbl -> CSendAtText(This,pid,chatroomid,wxid,wxmsg,AutoNickName,__result) ) 
L
ljc545w 已提交
777

778 779
#define IWeChatRobot_CGetChatRoomMembers(This,pid,chatroomid,__result)	\
    ( (This)->lpVtbl -> CGetChatRoomMembers(This,pid,chatroomid,__result) ) 
L
ljc545w 已提交
780

781 782
#define IWeChatRobot_CGetDbHandles(This,pid,__result)	\
    ( (This)->lpVtbl -> CGetDbHandles(This,pid,__result) ) 
L
ljc545w 已提交
783

784 785
#define IWeChatRobot_CExecuteSQL(This,pid,DbHandle,sql,__result)	\
    ( (This)->lpVtbl -> CExecuteSQL(This,pid,DbHandle,sql,__result) ) 
L
ljc545w 已提交
786

787 788
#define IWeChatRobot_CBackupSQLiteDB(This,pid,DbHandle,savepath,__result)	\
    ( (This)->lpVtbl -> CBackupSQLiteDB(This,pid,DbHandle,savepath,__result) ) 
L
ljc545w 已提交
789

790 791
#define IWeChatRobot_CVerifyFriendApply(This,pid,v3,v4,__result)	\
    ( (This)->lpVtbl -> CVerifyFriendApply(This,pid,v3,v4,__result) ) 
L
ljc545w 已提交
792

793 794
#define IWeChatRobot_CAddFriendByWxid(This,pid,wxid,message,__result)	\
    ( (This)->lpVtbl -> CAddFriendByWxid(This,pid,wxid,message,__result) ) 
L
ljc545w 已提交
795

796 797
#define IWeChatRobot_CAddFriendByV3(This,pid,v3,message,AddType,__result)	\
    ( (This)->lpVtbl -> CAddFriendByV3(This,pid,v3,message,AddType,__result) ) 
L
ljc545w 已提交
798

799 800
#define IWeChatRobot_CGetWeChatVer(This,__result)	\
    ( (This)->lpVtbl -> CGetWeChatVer(This,__result) ) 
L
ljc545w 已提交
801

802 803
#define IWeChatRobot_CStartWeChat(This,__result)	\
    ( (This)->lpVtbl -> CStartWeChat(This,__result) ) 
L
ljc545w 已提交
804

805 806
#define IWeChatRobot_CSearchContactByNet(This,pid,keyword,__result)	\
    ( (This)->lpVtbl -> CSearchContactByNet(This,pid,keyword,__result) ) 
L
ljc545w 已提交
807

808 809
#define IWeChatRobot_CAddBrandContact(This,pid,PublicId,__result)	\
    ( (This)->lpVtbl -> CAddBrandContact(This,pid,PublicId,__result) ) 
L
ljc545w 已提交
810

811 812
#define IWeChatRobot_CHookVoiceMsg(This,pid,savepath,__result)	\
    ( (This)->lpVtbl -> CHookVoiceMsg(This,pid,savepath,__result) ) 
L
ljc545w 已提交
813

814 815
#define IWeChatRobot_CUnHookVoiceMsg(This,pid,__result)	\
    ( (This)->lpVtbl -> CUnHookVoiceMsg(This,pid,__result) ) 
L
ljc545w 已提交
816

817 818
#define IWeChatRobot_CHookImageMsg(This,pid,savepath,__result)	\
    ( (This)->lpVtbl -> CHookImageMsg(This,pid,savepath,__result) ) 
L
ljc545w 已提交
819

820 821
#define IWeChatRobot_CUnHookImageMsg(This,pid,__result)	\
    ( (This)->lpVtbl -> CUnHookImageMsg(This,pid,__result) ) 
L
ljc545w 已提交
822

823 824
#define IWeChatRobot_CChangeWeChatVer(This,pid,verStr,__result)	\
    ( (This)->lpVtbl -> CChangeWeChatVer(This,pid,verStr,__result) ) 
L
ljc545w 已提交
825

826 827
#define IWeChatRobot_CSendAppMsg(This,pid,wxid,appid,__result)	\
    ( (This)->lpVtbl -> CSendAppMsg(This,pid,wxid,appid,__result) ) 
L
ljc545w 已提交
828

829 830
#define IWeChatRobot_CDeleteUser(This,pid,wxid,__result)	\
    ( (This)->lpVtbl -> CDeleteUser(This,pid,wxid,__result) ) 
L
ljc545w 已提交
831

832 833
#define IWeChatRobot_CIsWxLogin(This,pid,__result)	\
    ( (This)->lpVtbl -> CIsWxLogin(This,pid,__result) ) 
L
ljc545w 已提交
834

835 836
#define IWeChatRobot_CEditRemark(This,pid,wxid,remark,__result)	\
    ( (This)->lpVtbl -> CEditRemark(This,pid,wxid,remark,__result) ) 
L
ljc545w 已提交
837

838 839
#define IWeChatRobot_CSetChatRoomName(This,pid,chatroomid,name,__result)	\
    ( (This)->lpVtbl -> CSetChatRoomName(This,pid,chatroomid,name,__result) ) 
L
ljc545w 已提交
840

841 842
#define IWeChatRobot_CSetChatRoomAnnouncement(This,pid,chatroomid,announcement,__result)	\
    ( (This)->lpVtbl -> CSetChatRoomAnnouncement(This,pid,chatroomid,announcement,__result) ) 
L
ljc545w 已提交
843

844 845
#define IWeChatRobot_CSetChatRoomSelfNickname(This,pid,chatroomid,nickname,__result)	\
    ( (This)->lpVtbl -> CSetChatRoomSelfNickname(This,pid,chatroomid,nickname,__result) ) 
L
ljc545w 已提交
846

847 848
#define IWeChatRobot_CGetChatRoomMemberNickname(This,pid,chatroomid,wxid,__result)	\
    ( (This)->lpVtbl -> CGetChatRoomMemberNickname(This,pid,chatroomid,wxid,__result) ) 
L
ljc545w 已提交
849

850 851
#define IWeChatRobot_CDelChatRoomMember(This,pid,chatroomid,wxids,__result)	\
    ( (This)->lpVtbl -> CDelChatRoomMember(This,pid,chatroomid,wxids,__result) ) 
L
ljc545w 已提交
852

853 854
#define IWeChatRobot_CAddChatRoomMember(This,pid,chatroomid,wxids,__result)	\
    ( (This)->lpVtbl -> CAddChatRoomMember(This,pid,chatroomid,wxids,__result) ) 
L
ljc545w 已提交
855

L
ljc545w 已提交
856 857 858 859 860 861
#define IWeChatRobot_COpenBrowser(This,pid,url,__result)	\
    ( (This)->lpVtbl -> COpenBrowser(This,pid,url,__result) ) 

#define IWeChatRobot_CGetHistoryPublicMsg(This,pid,PublicId,Offset,__result)	\
    ( (This)->lpVtbl -> CGetHistoryPublicMsg(This,pid,PublicId,Offset,__result) ) 

862 863 864
#define IWeChatRobot_CForwardMessage(This,pid,wxid,localId,__result)	\
    ( (This)->lpVtbl -> CForwardMessage(This,pid,wxid,localId,__result) ) 

L
ljc545w 已提交
865 866 867
#endif /* COBJMACROS */


868 869 870 871 872 873 874
#endif 	/* C style interface */




#endif 	/* __IWeChatRobot_INTERFACE_DEFINED__ */

L
ljc545w 已提交
875

L
ljc545w 已提交
876 877 878
#ifndef __IRobotEvent_INTERFACE_DEFINED__
#define __IRobotEvent_INTERFACE_DEFINED__

879 880
/* interface IRobotEvent */
/* [unique][nonextensible][dual][uuid][object] */ 
L
ljc545w 已提交
881 882


883
EXTERN_C const IID IID_IRobotEvent;
884

885 886
#if defined(__cplusplus) && !defined(CINTERFACE)
    
L
ljc545w 已提交
887 888 889 890
    MIDL_INTERFACE("1a9d8d1b-d40e-4f3a-8ed4-b783e6a59830")
    IRobotEvent : public IDispatch
    {
    public:
891
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CPostMessage( 
892
            /* [in] */ DWORD pid,
L
ljc545w 已提交
893
            /* [in] */ int msgtype,
894
            /* [in] */ unsigned long long msgid,
L
ljc545w 已提交
895 896
            /* [in] */ VARIANT *msg,
            /* [retval][out] */ int *__result) = 0;
897 898
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CRegisterWxPidWithCookie( 
899 900 901
            /* [in] */ DWORD pid,
            /* [in] */ DWORD cookie,
            /* [retval][out] */ int *__result) = 0;
902
        
L
ljc545w 已提交
903
    };
904 905 906
    
    
#else 	/* C style interface */
L
ljc545w 已提交
907 908 909 910

    typedef struct IRobotEventVtbl
    {
        BEGIN_INTERFACE
911 912 913
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IRobotEvent * This,
L
ljc545w 已提交
914
            /* [in] */ REFIID riid,
915 916 917 918 919 920 921 922 923 924 925
            /* [annotation][iid_is][out] */ 
            _COM_Outptr_  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IRobotEvent * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IRobotEvent * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IRobotEvent * This,
L
ljc545w 已提交
926
            /* [out] */ UINT *pctinfo);
927 928 929
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IRobotEvent * This,
L
ljc545w 已提交
930 931 932
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
933 934 935
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IRobotEvent * This,
L
ljc545w 已提交
936 937 938 939 940
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [range][in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IRobotEvent * This,
            /* [annotation][in] */ 
            _In_  DISPID dispIdMember,
            /* [annotation][in] */ 
            _In_  REFIID riid,
            /* [annotation][in] */ 
            _In_  LCID lcid,
            /* [annotation][in] */ 
            _In_  WORD wFlags,
            /* [annotation][out][in] */ 
            _In_  DISPPARAMS *pDispParams,
            /* [annotation][out] */ 
            _Out_opt_  VARIANT *pVarResult,
            /* [annotation][out] */ 
            _Out_opt_  EXCEPINFO *pExcepInfo,
            /* [annotation][out] */ 
            _Out_opt_  UINT *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CPostMessage )( 
            IRobotEvent * This,
963
            /* [in] */ DWORD pid,
L
ljc545w 已提交
964
            /* [in] */ int msgtype,
965
            /* [in] */ unsigned long long msgid,
L
ljc545w 已提交
966 967
            /* [in] */ VARIANT *msg,
            /* [retval][out] */ int *__result);
968 969 970
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CRegisterWxPidWithCookie )( 
            IRobotEvent * This,
971 972 973
            /* [in] */ DWORD pid,
            /* [in] */ DWORD cookie,
            /* [retval][out] */ int *__result);
974
        
L
ljc545w 已提交
975 976 977 978 979 980 981 982
        END_INTERFACE
    } IRobotEventVtbl;

    interface IRobotEvent
    {
        CONST_VTBL struct IRobotEventVtbl *lpVtbl;
    };

983 984
    

L
ljc545w 已提交
985 986 987
#ifdef COBJMACROS


988 989 990 991 992
#define IRobotEvent_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IRobotEvent_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 
L
ljc545w 已提交
993

994 995
#define IRobotEvent_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 
L
ljc545w 已提交
996 997


998 999
#define IRobotEvent_GetTypeInfoCount(This,pctinfo)	\
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 
L
ljc545w 已提交
1000

1001 1002
#define IRobotEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 
L
ljc545w 已提交
1003

1004 1005
#define IRobotEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 
L
ljc545w 已提交
1006

1007 1008
#define IRobotEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 
L
ljc545w 已提交
1009

1010 1011 1012 1013 1014 1015

#define IRobotEvent_CPostMessage(This,pid,msgtype,msgid,msg,__result)	\
    ( (This)->lpVtbl -> CPostMessage(This,pid,msgtype,msgid,msg,__result) ) 

#define IRobotEvent_CRegisterWxPidWithCookie(This,pid,cookie,__result)	\
    ( (This)->lpVtbl -> CRegisterWxPidWithCookie(This,pid,cookie,__result) ) 
L
ljc545w 已提交
1016 1017 1018 1019

#endif /* COBJMACROS */


1020 1021 1022 1023 1024 1025 1026 1027
#endif 	/* C style interface */




#endif 	/* __IRobotEvent_INTERFACE_DEFINED__ */


L
ljc545w 已提交
1028 1029 1030 1031

#ifndef __WeChatRobotCOMLib_LIBRARY_DEFINED__
#define __WeChatRobotCOMLib_LIBRARY_DEFINED__

1032 1033
/* library WeChatRobotCOMLib */
/* [version][uuid] */ 
L
ljc545w 已提交
1034 1035


1036 1037 1038
EXTERN_C const IID LIBID_WeChatRobotCOMLib;

EXTERN_C const CLSID CLSID_WeChatRobot;
L
ljc545w 已提交
1039 1040 1041

#ifdef __cplusplus

1042 1043
class DECLSPEC_UUID("4ce7f5e1-2c93-4bfe-86ac-886452e47475")
WeChatRobot;
L
ljc545w 已提交
1044
#endif
L
ljc545w 已提交
1045 1046 1047 1048

#ifndef ___IRobotEventEvents_DISPINTERFACE_DEFINED__
#define ___IRobotEventEvents_DISPINTERFACE_DEFINED__

1049 1050 1051
/* dispinterface _IRobotEventEvents */
/* [uuid] */ 

L
ljc545w 已提交
1052

1053
EXTERN_C const IID DIID__IRobotEventEvents;
L
ljc545w 已提交
1054 1055 1056 1057

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("8fd26fd1-9169-4e4c-8a1d-d05093bacce5")
1058 1059 1060 1061 1062
    _IRobotEventEvents : public IDispatch
    {
    };
    
#else 	/* C style interface */
L
ljc545w 已提交
1063 1064 1065 1066

    typedef struct _IRobotEventEventsVtbl
    {
        BEGIN_INTERFACE
1067 1068 1069
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            _IRobotEventEvents * This,
L
ljc545w 已提交
1070
            /* [in] */ REFIID riid,
1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081
            /* [annotation][iid_is][out] */ 
            _COM_Outptr_  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            _IRobotEventEvents * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            _IRobotEventEvents * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            _IRobotEventEvents * This,
L
ljc545w 已提交
1082
            /* [out] */ UINT *pctinfo);
1083 1084 1085
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            _IRobotEventEvents * This,
L
ljc545w 已提交
1086 1087 1088
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
1089 1090 1091
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            _IRobotEventEvents * This,
L
ljc545w 已提交
1092 1093 1094 1095 1096
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [range][in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            _IRobotEventEvents * This,
            /* [annotation][in] */ 
            _In_  DISPID dispIdMember,
            /* [annotation][in] */ 
            _In_  REFIID riid,
            /* [annotation][in] */ 
            _In_  LCID lcid,
            /* [annotation][in] */ 
            _In_  WORD wFlags,
            /* [annotation][out][in] */ 
            _In_  DISPPARAMS *pDispParams,
            /* [annotation][out] */ 
            _Out_opt_  VARIANT *pVarResult,
            /* [annotation][out] */ 
            _Out_opt_  EXCEPINFO *pExcepInfo,
            /* [annotation][out] */ 
            _Out_opt_  UINT *puArgErr);
        
L
ljc545w 已提交
1117 1118 1119 1120 1121 1122 1123 1124
        END_INTERFACE
    } _IRobotEventEventsVtbl;

    interface _IRobotEventEvents
    {
        CONST_VTBL struct _IRobotEventEventsVtbl *lpVtbl;
    };

1125 1126
    

L
ljc545w 已提交
1127 1128 1129
#ifdef COBJMACROS


1130 1131 1132 1133 1134
#define _IRobotEventEvents_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define _IRobotEventEvents_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 
L
ljc545w 已提交
1135

1136 1137
#define _IRobotEventEvents_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 
L
ljc545w 已提交
1138 1139


1140 1141
#define _IRobotEventEvents_GetTypeInfoCount(This,pctinfo)	\
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 
L
ljc545w 已提交
1142

1143 1144
#define _IRobotEventEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 
L
ljc545w 已提交
1145

1146 1147 1148 1149 1150
#define _IRobotEventEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 

#define _IRobotEventEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 
L
ljc545w 已提交
1151 1152 1153 1154

#endif /* COBJMACROS */


1155 1156
#endif 	/* C style interface */

L
ljc545w 已提交
1157

1158 1159 1160 1161
#endif 	/* ___IRobotEventEvents_DISPINTERFACE_DEFINED__ */


EXTERN_C const CLSID CLSID_RobotEvent;
L
ljc545w 已提交
1162 1163 1164

#ifdef __cplusplus

1165 1166
class DECLSPEC_UUID("178001e8-5e64-4cec-8032-1de28801df55")
RobotEvent;
L
ljc545w 已提交
1167
#endif
L
ljc545w 已提交
1168 1169
#endif /* __WeChatRobotCOMLib_LIBRARY_DEFINED__ */

1170
/* Additional Prototypes for ALL interfaces */
L
ljc545w 已提交
1171

1172 1173 1174 1175
unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 
L
ljc545w 已提交
1176

1177 1178 1179 1180
unsigned long             __RPC_USER  VARIANT_UserSize(     unsigned long *, unsigned long            , VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserMarshal(  unsigned long *, unsigned char *, VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); 
void                      __RPC_USER  VARIANT_UserFree(     unsigned long *, VARIANT * ); 
L
ljc545w 已提交
1181

1182 1183 1184 1185
unsigned long             __RPC_USER  BSTR_UserSize64(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal64(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal64(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree64(     unsigned long *, BSTR * ); 
L
ljc545w 已提交
1186

1187 1188 1189 1190
unsigned long             __RPC_USER  VARIANT_UserSize64(     unsigned long *, unsigned long            , VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserMarshal64(  unsigned long *, unsigned char *, VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserUnmarshal64(unsigned long *, unsigned char *, VARIANT * ); 
void                      __RPC_USER  VARIANT_UserFree64(     unsigned long *, VARIANT * ); 
L
ljc545w 已提交
1191

1192
/* end of Additional Prototypes */
L
ljc545w 已提交
1193 1194 1195 1196 1197 1198

#ifdef __cplusplus
}
#endif

#endif
1199 1200