1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
|
/*** Autogenerated by WIDL 10.4 from include/thumbcache.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <rpc.h>
#include <rpcndr.h>
#endif
#ifndef COM_NO_WINDOWS_H
#include <windows.h>
#include <ole2.h>
#endif
#ifndef __thumbcache_h__
#define __thumbcache_h__
/* Forward declarations */
#ifndef __ISharedBitmap_FWD_DEFINED__
#define __ISharedBitmap_FWD_DEFINED__
typedef interface ISharedBitmap ISharedBitmap;
#ifdef __cplusplus
interface ISharedBitmap;
#endif /* __cplusplus */
#endif
#ifndef __IThumbnailCache_FWD_DEFINED__
#define __IThumbnailCache_FWD_DEFINED__
typedef interface IThumbnailCache IThumbnailCache;
#ifdef __cplusplus
interface IThumbnailCache;
#endif /* __cplusplus */
#endif
#ifndef __IThumbnailProvider_FWD_DEFINED__
#define __IThumbnailProvider_FWD_DEFINED__
typedef interface IThumbnailProvider IThumbnailProvider;
#ifdef __cplusplus
interface IThumbnailProvider;
#endif /* __cplusplus */
#endif
#ifndef __IThumbnailSettings_FWD_DEFINED__
#define __IThumbnailSettings_FWD_DEFINED__
typedef interface IThumbnailSettings IThumbnailSettings;
#ifdef __cplusplus
interface IThumbnailSettings;
#endif /* __cplusplus */
#endif
#ifndef __IThumbnailCachePrimer_FWD_DEFINED__
#define __IThumbnailCachePrimer_FWD_DEFINED__
typedef interface IThumbnailCachePrimer IThumbnailCachePrimer;
#ifdef __cplusplus
interface IThumbnailCachePrimer;
#endif /* __cplusplus */
#endif
#ifndef __LocalThumbnailCache_FWD_DEFINED__
#define __LocalThumbnailCache_FWD_DEFINED__
#ifdef __cplusplus
typedef class LocalThumbnailCache LocalThumbnailCache;
#else
typedef struct LocalThumbnailCache LocalThumbnailCache;
#endif /* defined __cplusplus */
#endif /* defined __LocalThumbnailCache_FWD_DEFINED__ */
#ifndef __SharedBitmap_FWD_DEFINED__
#define __SharedBitmap_FWD_DEFINED__
#ifdef __cplusplus
typedef class SharedBitmap SharedBitmap;
#else
typedef struct SharedBitmap SharedBitmap;
#endif /* defined __cplusplus */
#endif /* defined __SharedBitmap_FWD_DEFINED__ */
/* Headers for imported files */
#include <oaidl.h>
#include <shtypes.h>
#include <shobjidl.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum WTS_FLAGS {
WTS_NONE = 0x0,
WTS_EXTRACT = 0x0,
WTS_INCACHEONLY = 0x1,
WTS_FASTEXTRACT = 0x2,
WTS_FORCEEXTRACTION = 0x4,
WTS_SLOWRECLAIM = 0x8,
WTS_EXTRACTDONOTCACHE = 0x20,
WTS_SCALETOREQUESTEDSIZE = 0x40,
WTS_SKIPFASTEXTRACT = 0x80,
WTS_EXTRACTINPROC = 0x100,
WTS_CROPTOSQUARE = 0x200,
WTS_INSTANCESURROGATE = 0x400,
WTS_REQUIRESURROGATE = 0x800,
WTS_APPSTYLE = 0x2000,
WTS_WIDETHUMBNAILS = 0x4000,
WTS_IDEALCACHESIZEONLY = 0x8000,
WTS_SCALEUP = 0x10000
} WTS_FLAGS;
DEFINE_ENUM_FLAG_OPERATORS(WTS_FLAGS)
typedef enum WTS_CACHEFLAGS {
WTS_DEFAULT = 0x0,
WTS_LOWQUALITY = 0x1,
WTS_CACHED = 0x2
} WTS_CACHEFLAGS;
DEFINE_ENUM_FLAG_OPERATORS(WTS_CACHEFLAGS)
typedef enum WTS_CONTEXTFLAGS {
WTSCF_DEFAULT = 0x0,
WTSCF_APPSTYLE = 0x1,
WTSCF_SQUARE = 0x2,
WTSCF_WIDE = 0x4,
WTSCF_FAST = 0x8
} WTS_CONTEXTFLAGS;
DEFINE_ENUM_FLAG_OPERATORS(WTS_CONTEXTFLAGS)
typedef enum WTS_ALPHATYPE {
WTSAT_UNKNOWN = 0,
WTSAT_RGB = 1,
WTSAT_ARGB = 2
} WTS_ALPHATYPE;
typedef struct WTS_THUMBNAILID {
BYTE rgbKey[16];
} WTS_THUMBNAILID;
#define WTS_E_FAILEDEXTRACTION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xb200)
#define WTS_E_EXTRACTIONTIMEDOUT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xb201)
#define WTS_E_SURROGATEUNAVAILABLE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xb202)
#define WTS_E_FASTEXTRACTIONNOTSUPPORTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xb203)
#define WTS_E_DATAFILEUNAVAILABLE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xb204)
#define WTS_E_EXTRACTIONPENDING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xb205)
#define WTS_E_EXTRACTIONBLOCKED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xb206)
/*****************************************************************************
* ISharedBitmap interface
*/
#ifndef __ISharedBitmap_INTERFACE_DEFINED__
#define __ISharedBitmap_INTERFACE_DEFINED__
DEFINE_GUID(IID_ISharedBitmap, 0x091162a4, 0xbc96, 0x411f, 0xaa,0xe8, 0xc5,0x12,0x2c,0xd0,0x33,0x63);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("091162a4-bc96-411f-aae8-c5122cd03363")
ISharedBitmap : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE GetSharedBitmap(
HBITMAP *phbm) = 0;
virtual HRESULT STDMETHODCALLTYPE GetSize(
SIZE *pSize) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFormat(
WTS_ALPHATYPE *pat) = 0;
virtual HRESULT STDMETHODCALLTYPE InitializeBitmap(
HBITMAP hbm,
WTS_ALPHATYPE wtsAT) = 0;
virtual HRESULT STDMETHODCALLTYPE Detach(
HBITMAP *phbm) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ISharedBitmap, 0x091162a4, 0xbc96, 0x411f, 0xaa,0xe8, 0xc5,0x12,0x2c,0xd0,0x33,0x63)
#endif
#else
typedef struct ISharedBitmapVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ISharedBitmap *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ISharedBitmap *This);
ULONG (STDMETHODCALLTYPE *Release)(
ISharedBitmap *This);
/*** ISharedBitmap methods ***/
HRESULT (STDMETHODCALLTYPE *GetSharedBitmap)(
ISharedBitmap *This,
HBITMAP *phbm);
HRESULT (STDMETHODCALLTYPE *GetSize)(
ISharedBitmap *This,
SIZE *pSize);
HRESULT (STDMETHODCALLTYPE *GetFormat)(
ISharedBitmap *This,
WTS_ALPHATYPE *pat);
HRESULT (STDMETHODCALLTYPE *InitializeBitmap)(
ISharedBitmap *This,
HBITMAP hbm,
WTS_ALPHATYPE wtsAT);
HRESULT (STDMETHODCALLTYPE *Detach)(
ISharedBitmap *This,
HBITMAP *phbm);
END_INTERFACE
} ISharedBitmapVtbl;
interface ISharedBitmap {
CONST_VTBL ISharedBitmapVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ISharedBitmap_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ISharedBitmap_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ISharedBitmap_Release(This) (This)->lpVtbl->Release(This)
/*** ISharedBitmap methods ***/
#define ISharedBitmap_GetSharedBitmap(This,phbm) (This)->lpVtbl->GetSharedBitmap(This,phbm)
#define ISharedBitmap_GetSize(This,pSize) (This)->lpVtbl->GetSize(This,pSize)
#define ISharedBitmap_GetFormat(This,pat) (This)->lpVtbl->GetFormat(This,pat)
#define ISharedBitmap_InitializeBitmap(This,hbm,wtsAT) (This)->lpVtbl->InitializeBitmap(This,hbm,wtsAT)
#define ISharedBitmap_Detach(This,phbm) (This)->lpVtbl->Detach(This,phbm)
#else
/*** IUnknown methods ***/
static inline HRESULT ISharedBitmap_QueryInterface(ISharedBitmap* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static inline ULONG ISharedBitmap_AddRef(ISharedBitmap* This) {
return This->lpVtbl->AddRef(This);
}
static inline ULONG ISharedBitmap_Release(ISharedBitmap* This) {
return This->lpVtbl->Release(This);
}
/*** ISharedBitmap methods ***/
static inline HRESULT ISharedBitmap_GetSharedBitmap(ISharedBitmap* This,HBITMAP *phbm) {
return This->lpVtbl->GetSharedBitmap(This,phbm);
}
static inline HRESULT ISharedBitmap_GetSize(ISharedBitmap* This,SIZE *pSize) {
return This->lpVtbl->GetSize(This,pSize);
}
static inline HRESULT ISharedBitmap_GetFormat(ISharedBitmap* This,WTS_ALPHATYPE *pat) {
return This->lpVtbl->GetFormat(This,pat);
}
static inline HRESULT ISharedBitmap_InitializeBitmap(ISharedBitmap* This,HBITMAP hbm,WTS_ALPHATYPE wtsAT) {
return This->lpVtbl->InitializeBitmap(This,hbm,wtsAT);
}
static inline HRESULT ISharedBitmap_Detach(ISharedBitmap* This,HBITMAP *phbm) {
return This->lpVtbl->Detach(This,phbm);
}
#endif
#endif
#endif
#endif /* __ISharedBitmap_INTERFACE_DEFINED__ */
/*****************************************************************************
* IThumbnailCache interface
*/
#ifndef __IThumbnailCache_INTERFACE_DEFINED__
#define __IThumbnailCache_INTERFACE_DEFINED__
DEFINE_GUID(IID_IThumbnailCache, 0xf676c15d, 0x596a, 0x4ce2, 0x82,0x34, 0x33,0x99,0x6f,0x44,0x5d,0xb1);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("f676c15d-596a-4ce2-8234-33996f445db1")
IThumbnailCache : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE GetThumbnail(
IShellItem *pShellItem,
UINT cxyRequestedThumbSize,
WTS_FLAGS flags,
ISharedBitmap **ppvThumb,
WTS_CACHEFLAGS *pOutFlags,
WTS_THUMBNAILID *pThumbnailID) = 0;
virtual HRESULT STDMETHODCALLTYPE GetThumbnailByID(
WTS_THUMBNAILID thumbnailID,
UINT cxyRequestedThumbSize,
ISharedBitmap **ppvThumb,
WTS_CACHEFLAGS *pOutFlags) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IThumbnailCache, 0xf676c15d, 0x596a, 0x4ce2, 0x82,0x34, 0x33,0x99,0x6f,0x44,0x5d,0xb1)
#endif
#else
typedef struct IThumbnailCacheVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IThumbnailCache *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IThumbnailCache *This);
ULONG (STDMETHODCALLTYPE *Release)(
IThumbnailCache *This);
/*** IThumbnailCache methods ***/
HRESULT (STDMETHODCALLTYPE *GetThumbnail)(
IThumbnailCache *This,
IShellItem *pShellItem,
UINT cxyRequestedThumbSize,
WTS_FLAGS flags,
ISharedBitmap **ppvThumb,
WTS_CACHEFLAGS *pOutFlags,
WTS_THUMBNAILID *pThumbnailID);
HRESULT (STDMETHODCALLTYPE *GetThumbnailByID)(
IThumbnailCache *This,
WTS_THUMBNAILID thumbnailID,
UINT cxyRequestedThumbSize,
ISharedBitmap **ppvThumb,
WTS_CACHEFLAGS *pOutFlags);
END_INTERFACE
} IThumbnailCacheVtbl;
interface IThumbnailCache {
CONST_VTBL IThumbnailCacheVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IThumbnailCache_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IThumbnailCache_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IThumbnailCache_Release(This) (This)->lpVtbl->Release(This)
/*** IThumbnailCache methods ***/
#define IThumbnailCache_GetThumbnail(This,pShellItem,cxyRequestedThumbSize,flags,ppvThumb,pOutFlags,pThumbnailID) (This)->lpVtbl->GetThumbnail(This,pShellItem,cxyRequestedThumbSize,flags,ppvThumb,pOutFlags,pThumbnailID)
#define IThumbnailCache_GetThumbnailByID(This,thumbnailID,cxyRequestedThumbSize,ppvThumb,pOutFlags) (This)->lpVtbl->GetThumbnailByID(This,thumbnailID,cxyRequestedThumbSize,ppvThumb,pOutFlags)
#else
/*** IUnknown methods ***/
static inline HRESULT IThumbnailCache_QueryInterface(IThumbnailCache* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static inline ULONG IThumbnailCache_AddRef(IThumbnailCache* This) {
return This->lpVtbl->AddRef(This);
}
static inline ULONG IThumbnailCache_Release(IThumbnailCache* This) {
return This->lpVtbl->Release(This);
}
/*** IThumbnailCache methods ***/
static inline HRESULT IThumbnailCache_GetThumbnail(IThumbnailCache* This,IShellItem *pShellItem,UINT cxyRequestedThumbSize,WTS_FLAGS flags,ISharedBitmap **ppvThumb,WTS_CACHEFLAGS *pOutFlags,WTS_THUMBNAILID *pThumbnailID) {
return This->lpVtbl->GetThumbnail(This,pShellItem,cxyRequestedThumbSize,flags,ppvThumb,pOutFlags,pThumbnailID);
}
static inline HRESULT IThumbnailCache_GetThumbnailByID(IThumbnailCache* This,WTS_THUMBNAILID thumbnailID,UINT cxyRequestedThumbSize,ISharedBitmap **ppvThumb,WTS_CACHEFLAGS *pOutFlags) {
return This->lpVtbl->GetThumbnailByID(This,thumbnailID,cxyRequestedThumbSize,ppvThumb,pOutFlags);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE IThumbnailCache_RemoteGetThumbnail_Proxy(
IThumbnailCache* This,
IShellItem *pShellItem,
UINT cxyRequestedThumbSize,
WTS_FLAGS flags,
ISharedBitmap **ppvThumb,
WTS_CACHEFLAGS *pOutFlags,
WTS_THUMBNAILID *pThumbnailID);
void __RPC_STUB IThumbnailCache_RemoteGetThumbnail_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IThumbnailCache_RemoteGetThumbnailByID_Proxy(
IThumbnailCache* This,
WTS_THUMBNAILID thumbnailID,
UINT cxyRequestedThumbSize,
ISharedBitmap **ppvThumb,
WTS_CACHEFLAGS *pOutFlags);
void __RPC_STUB IThumbnailCache_RemoteGetThumbnailByID_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT CALLBACK IThumbnailCache_GetThumbnail_Proxy(
IThumbnailCache* This,
IShellItem *pShellItem,
UINT cxyRequestedThumbSize,
WTS_FLAGS flags,
ISharedBitmap **ppvThumb,
WTS_CACHEFLAGS *pOutFlags,
WTS_THUMBNAILID *pThumbnailID);
HRESULT __RPC_STUB IThumbnailCache_GetThumbnail_Stub(
IThumbnailCache* This,
IShellItem *pShellItem,
UINT cxyRequestedThumbSize,
WTS_FLAGS flags,
ISharedBitmap **ppvThumb,
WTS_CACHEFLAGS *pOutFlags,
WTS_THUMBNAILID *pThumbnailID);
HRESULT CALLBACK IThumbnailCache_GetThumbnailByID_Proxy(
IThumbnailCache* This,
WTS_THUMBNAILID thumbnailID,
UINT cxyRequestedThumbSize,
ISharedBitmap **ppvThumb,
WTS_CACHEFLAGS *pOutFlags);
HRESULT __RPC_STUB IThumbnailCache_GetThumbnailByID_Stub(
IThumbnailCache* This,
WTS_THUMBNAILID thumbnailID,
UINT cxyRequestedThumbSize,
ISharedBitmap **ppvThumb,
WTS_CACHEFLAGS *pOutFlags);
#endif /* __IThumbnailCache_INTERFACE_DEFINED__ */
/*****************************************************************************
* IThumbnailProvider interface
*/
#ifndef __IThumbnailProvider_INTERFACE_DEFINED__
#define __IThumbnailProvider_INTERFACE_DEFINED__
DEFINE_GUID(IID_IThumbnailProvider, 0xe357fccd, 0xa995, 0x4576, 0xb0,0x1f, 0x23,0x46,0x30,0x15,0x4e,0x96);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("e357fccd-a995-4576-b01f-234630154e96")
IThumbnailProvider : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE GetThumbnail(
UINT cx,
HBITMAP *phbmp,
WTS_ALPHATYPE *pdwAlpha) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IThumbnailProvider, 0xe357fccd, 0xa995, 0x4576, 0xb0,0x1f, 0x23,0x46,0x30,0x15,0x4e,0x96)
#endif
#else
typedef struct IThumbnailProviderVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IThumbnailProvider *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IThumbnailProvider *This);
ULONG (STDMETHODCALLTYPE *Release)(
IThumbnailProvider *This);
/*** IThumbnailProvider methods ***/
HRESULT (STDMETHODCALLTYPE *GetThumbnail)(
IThumbnailProvider *This,
UINT cx,
HBITMAP *phbmp,
WTS_ALPHATYPE *pdwAlpha);
END_INTERFACE
} IThumbnailProviderVtbl;
interface IThumbnailProvider {
CONST_VTBL IThumbnailProviderVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IThumbnailProvider_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IThumbnailProvider_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IThumbnailProvider_Release(This) (This)->lpVtbl->Release(This)
/*** IThumbnailProvider methods ***/
#define IThumbnailProvider_GetThumbnail(This,cx,phbmp,pdwAlpha) (This)->lpVtbl->GetThumbnail(This,cx,phbmp,pdwAlpha)
#else
/*** IUnknown methods ***/
static inline HRESULT IThumbnailProvider_QueryInterface(IThumbnailProvider* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static inline ULONG IThumbnailProvider_AddRef(IThumbnailProvider* This) {
return This->lpVtbl->AddRef(This);
}
static inline ULONG IThumbnailProvider_Release(IThumbnailProvider* This) {
return This->lpVtbl->Release(This);
}
/*** IThumbnailProvider methods ***/
static inline HRESULT IThumbnailProvider_GetThumbnail(IThumbnailProvider* This,UINT cx,HBITMAP *phbmp,WTS_ALPHATYPE *pdwAlpha) {
return This->lpVtbl->GetThumbnail(This,cx,phbmp,pdwAlpha);
}
#endif
#endif
#endif
#endif /* __IThumbnailProvider_INTERFACE_DEFINED__ */
/*****************************************************************************
* IThumbnailSettings interface
*/
#ifndef __IThumbnailSettings_INTERFACE_DEFINED__
#define __IThumbnailSettings_INTERFACE_DEFINED__
DEFINE_GUID(IID_IThumbnailSettings, 0xf4376f00, 0xbef5, 0x4d45, 0x80,0xf3, 0x1e,0x02,0x3b,0xbf,0x12,0x09);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("f4376f00-bef5-4d45-80f3-1e023bbf1209")
IThumbnailSettings : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE SetContext(
WTS_CONTEXTFLAGS dwContext) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IThumbnailSettings, 0xf4376f00, 0xbef5, 0x4d45, 0x80,0xf3, 0x1e,0x02,0x3b,0xbf,0x12,0x09)
#endif
#else
typedef struct IThumbnailSettingsVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IThumbnailSettings *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IThumbnailSettings *This);
ULONG (STDMETHODCALLTYPE *Release)(
IThumbnailSettings *This);
/*** IThumbnailSettings methods ***/
HRESULT (STDMETHODCALLTYPE *SetContext)(
IThumbnailSettings *This,
WTS_CONTEXTFLAGS dwContext);
END_INTERFACE
} IThumbnailSettingsVtbl;
interface IThumbnailSettings {
CONST_VTBL IThumbnailSettingsVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IThumbnailSettings_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IThumbnailSettings_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IThumbnailSettings_Release(This) (This)->lpVtbl->Release(This)
/*** IThumbnailSettings methods ***/
#define IThumbnailSettings_SetContext(This,dwContext) (This)->lpVtbl->SetContext(This,dwContext)
#else
/*** IUnknown methods ***/
static inline HRESULT IThumbnailSettings_QueryInterface(IThumbnailSettings* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static inline ULONG IThumbnailSettings_AddRef(IThumbnailSettings* This) {
return This->lpVtbl->AddRef(This);
}
static inline ULONG IThumbnailSettings_Release(IThumbnailSettings* This) {
return This->lpVtbl->Release(This);
}
/*** IThumbnailSettings methods ***/
static inline HRESULT IThumbnailSettings_SetContext(IThumbnailSettings* This,WTS_CONTEXTFLAGS dwContext) {
return This->lpVtbl->SetContext(This,dwContext);
}
#endif
#endif
#endif
#endif /* __IThumbnailSettings_INTERFACE_DEFINED__ */
/*****************************************************************************
* IThumbnailCachePrimer interface
*/
#ifndef __IThumbnailCachePrimer_INTERFACE_DEFINED__
#define __IThumbnailCachePrimer_INTERFACE_DEFINED__
DEFINE_GUID(IID_IThumbnailCachePrimer, 0x0f03f8fe, 0x2b26, 0x46f0, 0x96,0x5a, 0x21,0x2a,0xa8,0xd6,0x6b,0x76);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("0f03f8fe-2b26-46f0-965a-212aa8d66b76")
IThumbnailCachePrimer : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE PageInThumbnail(
IShellItem *psi,
WTS_FLAGS wtsFlags,
UINT cxyRequestedThumbSize) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IThumbnailCachePrimer, 0x0f03f8fe, 0x2b26, 0x46f0, 0x96,0x5a, 0x21,0x2a,0xa8,0xd6,0x6b,0x76)
#endif
#else
typedef struct IThumbnailCachePrimerVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IThumbnailCachePrimer *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IThumbnailCachePrimer *This);
ULONG (STDMETHODCALLTYPE *Release)(
IThumbnailCachePrimer *This);
/*** IThumbnailCachePrimer methods ***/
HRESULT (STDMETHODCALLTYPE *PageInThumbnail)(
IThumbnailCachePrimer *This,
IShellItem *psi,
WTS_FLAGS wtsFlags,
UINT cxyRequestedThumbSize);
END_INTERFACE
} IThumbnailCachePrimerVtbl;
interface IThumbnailCachePrimer {
CONST_VTBL IThumbnailCachePrimerVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IThumbnailCachePrimer_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IThumbnailCachePrimer_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IThumbnailCachePrimer_Release(This) (This)->lpVtbl->Release(This)
/*** IThumbnailCachePrimer methods ***/
#define IThumbnailCachePrimer_PageInThumbnail(This,psi,wtsFlags,cxyRequestedThumbSize) (This)->lpVtbl->PageInThumbnail(This,psi,wtsFlags,cxyRequestedThumbSize)
#else
/*** IUnknown methods ***/
static inline HRESULT IThumbnailCachePrimer_QueryInterface(IThumbnailCachePrimer* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static inline ULONG IThumbnailCachePrimer_AddRef(IThumbnailCachePrimer* This) {
return This->lpVtbl->AddRef(This);
}
static inline ULONG IThumbnailCachePrimer_Release(IThumbnailCachePrimer* This) {
return This->lpVtbl->Release(This);
}
/*** IThumbnailCachePrimer methods ***/
static inline HRESULT IThumbnailCachePrimer_PageInThumbnail(IThumbnailCachePrimer* This,IShellItem *psi,WTS_FLAGS wtsFlags,UINT cxyRequestedThumbSize) {
return This->lpVtbl->PageInThumbnail(This,psi,wtsFlags,cxyRequestedThumbSize);
}
#endif
#endif
#endif
#endif /* __IThumbnailCachePrimer_INTERFACE_DEFINED__ */
#ifndef __ThumbCacheLib_LIBRARY_DEFINED__
#define __ThumbCacheLib_LIBRARY_DEFINED__
DEFINE_GUID(LIBID_ThumbCacheLib, 0x4c857096, 0x0514, 0x4d4d, 0xab,0xd5, 0xdf,0xaa,0xa3,0xc3,0x26,0xd2);
/*****************************************************************************
* LocalThumbnailCache coclass
*/
DEFINE_GUID(CLSID_LocalThumbnailCache, 0x50ef4544, 0xac9f, 0x4a8e, 0xb2,0x1b, 0x8a,0x26,0x18,0x0d,0xb1,0x3f);
#ifdef __cplusplus
class DECLSPEC_UUID("50ef4544-ac9f-4a8e-b21b-8a26180db13f") LocalThumbnailCache;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(LocalThumbnailCache, 0x50ef4544, 0xac9f, 0x4a8e, 0xb2,0x1b, 0x8a,0x26,0x18,0x0d,0xb1,0x3f)
#endif
#endif
/*****************************************************************************
* SharedBitmap coclass
*/
DEFINE_GUID(CLSID_SharedBitmap, 0x4db26476, 0x6787, 0x4046, 0xb8,0x36, 0xe8,0x41,0x2a,0x9e,0x8a,0x27);
#ifdef __cplusplus
class DECLSPEC_UUID("4db26476-6787-4046-b836-e8412a9e8a27") SharedBitmap;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(SharedBitmap, 0x4db26476, 0x6787, 0x4046, 0xb8,0x36, 0xe8,0x41,0x2a,0x9e,0x8a,0x27)
#endif
#endif
#endif /* __ThumbCacheLib_LIBRARY_DEFINED__ */
/* Begin additional prototypes for all interfaces */
ULONG __RPC_USER HBITMAP_UserSize (ULONG *, ULONG, HBITMAP *);
unsigned char * __RPC_USER HBITMAP_UserMarshal (ULONG *, unsigned char *, HBITMAP *);
unsigned char * __RPC_USER HBITMAP_UserUnmarshal(ULONG *, unsigned char *, HBITMAP *);
void __RPC_USER HBITMAP_UserFree (ULONG *, HBITMAP *);
/* End additional prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __thumbcache_h__ */
|