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
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
|
/****************************************************************************
*
* $Id: rmawin.h 7 2003-05-30 02:18:02Z gabest $
*
* Copyright (C) 1995-1999 RealNetworks, Inc. All rights reserved.
*
* http://www.real.com/devzone
*
* This program contains proprietary
* information of Progressive Networks, Inc, and is licensed
* subject to restrictions on use and distribution.
*
*
* RealMedia Architecture Simple Window Interfaces.
*
*/
#ifndef _RMAWIN_H_
#define _RMAWIN_H_
/*
* Forward declarations of some interfaces defined or used here-in.
*/
typedef _INTERFACE IRMASite IRMASite;
typedef _INTERFACE IRMASiteUser IRMASiteUser;
typedef _INTERFACE IRMASiteWindowed IRMASiteWindowed;
typedef _INTERFACE IRMASiteEventHandler IRMASiteEventHandler;
typedef _INTERFACE IRMASiteWindowless IRMASiteWindowless;
typedef _INTERFACE IRMASiteWatcher IRMASiteWatcher;
typedef _INTERFACE IRMAValues IRMAValues;
typedef _INTERFACE IRMASiteFullScreen IRMASiteFullScreen;
typedef _INTERFACE IRMALayoutSiteGroupManager IRMALayoutSiteGroupManager;
typedef _INTERFACE IRMAEventHook IRMAEventHook;
typedef struct _PNxWindow PNxWindow;
typedef struct _PNxSize PNxSize;
typedef struct _PNxPoint PNxPoint;
typedef struct _PNxRect PNxRect;
typedef void* PNxRegion;
/****************************************************************************
*
* Interface:
*
* IRMASiteWindowed
*
* Purpose:
*
* Interface for IRMASite objects which are associated with platform
* specific window objects on Microsoft Windows and X-Windows.
*
* IID_IRMASiteWindowed:
*
* {00000D01-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMASiteWindowed, 0x00000D01, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
#define CLSID_IRMASiteWindowed IID_IRMASiteWindowed
#undef INTERFACE
#define INTERFACE IRMASiteWindowed
DECLARE_INTERFACE_(IRMASiteWindowed, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMASiteWindowed methods called by site suppliers
* when they want the site associated with a
* previously created (and externally managed) window.
* This method will "sub-class" that window (Win32).
* On Unix, the site supplier must pass events from
* the externally managed window to the core via
* IRMAClientEngine::EventOccurred(). Please note that
* The PNxWindow ptr must remain in scope for the life
* of Site.
*
*/
STDMETHOD(AttachWindow) (THIS_
PNxWindow* /*IN*/ pWindow) PURE;
STDMETHOD(DetachWindow) (THIS) PURE;
/*
* IRMASiteWindowed methods called by Owners of the site
* in the event that want a default top level window created
* for the site.
*/
STDMETHOD(Create) (THIS_
void* ParentWindow,
UINT32 style) PURE;
STDMETHOD(Destroy) (THIS) PURE;
/*
* IRMASiteWindowed method. Returns actual window of the site.
*/
STDMETHOD_(PNxWindow*,GetWindow)(THIS) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMASiteWindowless
*
* Purpose:
*
* Interface for IRMASite objects which are "windowless" or not
* associated with platform specific window objects.
*
* IID_IRMASiteWindowless:
*
* {00000D02-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMASiteWindowless, 0x00000D02, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IRMASiteWindowless
#define CLSID_IRMASiteWindowless IID_IRMASiteWindowless
DECLARE_INTERFACE_(IRMASiteWindowless, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMASiteWindowless methods called by owners of the site.
*/
STDMETHOD(EventOccurred) (THIS_
PNxEvent* /*IN*/ pEvent) PURE;
/*
* IRMASiteWindowless method. Returns some parent window that
* owns the windowless site. Useful for right-click menus and
* dialog box calls.
*/
STDMETHOD_(PNxWindow*,GetParentWindow)(THIS) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMASite
*
* Purpose:
*
* Interface for IRMASite objects.
*
* IID_IRMASite:
*
* {00000D03-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMASite, 0x00000D03, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IRMASite
DECLARE_INTERFACE_(IRMASite, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMASite methods usually called by the "context" to
* associate users with the site, and to create child sites
* as appropriate.
*/
STDMETHOD(AttachUser) (THIS_
IRMASiteUser* /*IN*/ pUser) PURE;
STDMETHOD(DetachUser) (THIS) PURE;
STDMETHOD(GetUser) (THIS_
REF(IRMASiteUser*) /*OUT*/ pUser) PURE;
STDMETHOD(CreateChild) (THIS_
REF(IRMASite*) /*OUT*/ pChildSite) PURE;
STDMETHOD(DestroyChild) (THIS_
IRMASite* /*IN*/ pChildSite) PURE;
/*
* IRMASite methods called by the the "context" in which the site
* is displayed in order to manage its position. Site users should
* not generally call these methods.
*/
STDMETHOD(AttachWatcher) (THIS_
IRMASiteWatcher* /*IN*/ pWatcher) PURE;
STDMETHOD(DetachWatcher) (THIS) PURE;
STDMETHOD(SetPosition) (THIS_
PNxPoint position) PURE;
STDMETHOD(GetPosition) (THIS_
REF(PNxPoint) position) PURE;
/*
* IRMASite methods called by the user of the site to get
* information about the site, and to manipulate the site.
*/
STDMETHOD(SetSize) (THIS_
PNxSize size) PURE;
STDMETHOD(GetSize) (THIS_
REF(PNxSize) size) PURE;
STDMETHOD(DamageRect) (THIS_
PNxRect rect) PURE;
STDMETHOD(DamageRegion) (THIS_
PNxRegion region) PURE;
STDMETHOD(ForceRedraw) (THIS) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMASiteUser
*
* Purpose:
*
* Interface for the user of the IRMASite objects.
*
* IID_IRMASiteUser:
*
* {00000D04-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMASiteUser, 0x00000D04, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IRMASiteUser
DECLARE_INTERFACE_(IRMASiteUser, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMASiteUser methods usually called by the "context" to
* associate users with the site.
*/
STDMETHOD(AttachSite) (THIS_
IRMASite* /*IN*/ pSite) PURE;
STDMETHOD(DetachSite) (THIS) PURE;
/*
* IRMASiteUser methods called to inform user of an event.
*/
STDMETHOD(HandleEvent) (THIS_
PNxEvent* /*IN*/ pEvent) PURE;
STDMETHOD_(BOOL,NeedsWindowedSites) (THIS) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMASiteWatcher
*
* Purpose:
*
* Interface for IRMASiteWatcher objects.
*
* IID_IRMASite:
*
* {00000D05-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMASiteWatcher, 0x00000D05, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IRMASiteWatcher
DECLARE_INTERFACE_(IRMASiteWatcher, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMASiteWatcher methods called by the site when a watcher
* is attached to or detached from it.
*/
STDMETHOD(AttachSite) (THIS_
IRMASite* /*IN*/ pSite) PURE;
STDMETHOD(DetachSite) (THIS) PURE;
/*
* IRMASiteWatcher methods called by the site an attempt is
* made to change it's position or size. The site watcher must
* return PNR_OK for the change to occur. If the site watcher
* returns any value other than PNR_OK then the size or position
* will not change. The site watcher can also modify the new
* size of position.
*/
STDMETHOD(ChangingPosition) (THIS_
PNxPoint posOld,
REF(PNxPoint)/*IN-OUT*/ posNew) PURE;
STDMETHOD(ChangingSize) (THIS_
PNxSize sizeOld,
REF(PNxSize) /*IN-OUT*/ sizeNew) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMASiteUserSupplier
*
* Purpose:
*
* Interface implemented by renderers and objects with provide layouts to
* the client core. This interface is called by the core when it needs a
* new IRMASiteUser, or when it is done using an IRMASiteUser.
*
* IID_IRMASiteUserSupplier:
*
* {00000D06-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMASiteUserSupplier, 0x00000D06, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IRMASiteUserSupplier
DECLARE_INTERFACE_(IRMASiteUserSupplier, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMASiteUserSupplier methods usually called by the
* "context" to ask for additional or to release previously
* created site users.
*/
STDMETHOD(CreateSiteUser) (THIS_
REF(IRMASiteUser*)/*OUT*/ pSiteUser) PURE;
STDMETHOD(DestroySiteUser) (THIS_
IRMASiteUser* /*IN*/ pSiteUser) PURE;
STDMETHOD_(BOOL,NeedsWindowedSites) (THIS) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMASiteSupplier
*
* Purpose:
*
* Interface implemented by users of the client core. This interface is
* called by the core when it needs a new IRMASite, or when it is done
* using an IRMASite.
*
* IID_IRMASiteSupplier:
*
* {00000D07-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMASiteSupplier, 0x00000D07, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IRMASiteSupplier
DECLARE_INTERFACE_(IRMASiteSupplier, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMASiteSupplier methods
*/
/************************************************************************
* Method:
* IRMASiteSupplier::SitesNeeded
* Purpose:
* Called to inform the site supplier that a site with a particular
* set of characteristics is needed. If the site supplier can
* fulfill the request it should call the site manager and add one
* or more new sites.
* Note that the request for sites is associated with a Request ID
* the client core will inform the site supplier when this requested
* site is no longer needed.
*/
STDMETHOD(SitesNeeded) (THIS_
UINT32 uReqestID,
IRMAValues* pSiteProps) PURE;
/************************************************************************
* Method:
* IRMASiteSupplier::SitesNotNeeded
* Purpose:
* Called to inform the site supplier that all sites from a previos
* site request are no longer needed. If the site supplier had
* previously created non-persistant sites (like popup windows)
* to fulfill a request for sites it should call the site manager
* and remove those sites.
*/
STDMETHOD(SitesNotNeeded) (THIS_
UINT32 uReqestID) PURE;
/************************************************************************
* Method:
* IRMASiteSupplier::BeginChangeLayout
* Purpose:
* Called to inform the site supplier a layout change has beginning
* it can expect to recieve SitesNeeded() and SitesNotNeeded() calls
* while a layout change is in progress,
*/
STDMETHOD(BeginChangeLayout) (THIS) PURE;
/************************************************************************
* Method:
* IRMASiteSupplier::DoneChangeLayout
* Purpose:
* Called to inform the site supplier the layout change has been
* completed.
*/
STDMETHOD(DoneChangeLayout) (THIS) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMASiteManager
*
* Purpose:
*
* Interface implemented by the client core. This interface is called
* by users of the client core to inform it of IRMASite's which are
* available for layout of renderers
*
* IID_IRMASiteManager:
*
* {00000D08-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMASiteManager, 0x00000D08, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IRMASiteManager
DECLARE_INTERFACE_(IRMASiteManager, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMASiteManager methods
*/
/************************************************************************
* Method:
* IRMASiteManager::AddSite
* Purpose:
* Called to inform the site manager of the existance of a site.
*/
STDMETHOD(AddSite) (THIS_
IRMASite* pSite) PURE;
/************************************************************************
* Method:
* IRMASiteManager::RemoveSite
* Purpose:
* Called to inform the site manager that a site is no longer
* available.
*/
STDMETHOD(RemoveSite) (THIS_
IRMASite* pSite) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMAMultiInstanceSiteUserSupplier
*
* Purpose:
*
* This is the interface for a special default object which is available
* from the common class factory. This object will act as a site user
* supplier for any renderer (or other site user object) that wants
* default support for multiple instances. The site user must work as
* a windowless site for this default implementation to work. The
* default object also implements the IRMASite interfave to allow
* the site user object to control all the sites through a single
* interface instance.
*
* IID_IRMAMultiInstanceSiteUserSupplier:
*
* {00000D09-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMAMultiInstanceSiteUserSupplier, 0x00000D09, 0x901,
0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#define CLSID_IRMAMultiInstanceSiteUserSupplier \
IID_IRMAMultiInstanceSiteUserSupplier
#undef INTERFACE
#define INTERFACE IRMAMultiInstanceSiteUserSupplier
DECLARE_INTERFACE_(IRMAMultiInstanceSiteUserSupplier, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMAMultiInstanceSiteUserSupplier methods called by site users.
*/
STDMETHOD(SetSingleSiteUser) (THIS_
IUnknown* pUnknown) PURE;
STDMETHOD(ReleaseSingleSiteUser) (THIS) PURE;
};
/****************************************************************************
*
* Interface:
* IRMASiteFullScreen
*
* Purpose:
*
* This is the interface for turning on/off the full screen mode
*
* IID_IRMASiteFullScreen:
*
* {00000D0B-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMASiteFullScreen, 0x00000D0B, 0x901,
0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IRMASiteFullScreen
DECLARE_INTERFACE_(IRMASiteFullScreen, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMASiteFullScreen methods
*/
STDMETHOD(EnterFullScreen) (THIS) PURE;
STDMETHOD(ExitFullScreen) (THIS) PURE;
STDMETHOD(TestFullScreen) (THIS_
void* hTestBitmap,const char* pszStatusText) PURE;
STDMETHOD_(BOOL, IsFullScreen) (THIS) PURE;
};
/****************************************************************************
*
* Interface:
* IRMAEventHookMgr
*
* Purpose:
*
* Add ability to hook events from a named region
*
* IID_IRMAEventHookMgr:
*
* {00000D0D-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMAEventHookMgr, 0x00000D0D, 0x901,
0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IRMAEventHookMgr
DECLARE_INTERFACE_(IRMAEventHookMgr, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMAEventHookMgr methods
*/
STDMETHOD(AddHook) (THIS_
IRMAEventHook* pHook,
const char* pRegionName,
UINT16 uLayer) PURE;
STDMETHOD(RemoveHook) (THIS_
IRMAEventHook* pHook,
const char* pRegionName,
UINT16 uLayer) PURE;
};
/****************************************************************************
*
* Interface:
* IRMAEventHook
*
* Purpose:
*
* Object that gets hooked events sent by IRMAEventHookMgr
*
* IID_IRMAEventHookMgr:
*
* {00000D0E-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMAEventHook, 0x00000D0E, 0x901,
0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IRMAEventHook
DECLARE_INTERFACE_(IRMAEventHook, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMAEventHook methods
*/
STDMETHOD(SiteAdded) (THIS_
IRMASite* pSite) PURE;
STDMETHOD(HandleEvent) (THIS_
IRMASite* pSite,
PNxEvent* pEvent) PURE;
STDMETHOD(SiteRemoved) (THIS_
IRMASite* pSite) PURE;
};
/****************************************************************************
*
* Interface:
* IRMAStatusMessage
*
* Purpose:
*
* This is the interface for setting the status text.
*
* IID_IRMAStatusMessage:
*
* {00000D10-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMAStatusMessage, 0x00000D10, 0x901,
0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IRMAStatusMessage
DECLARE_INTERFACE_(IRMAStatusMessage, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMAStatusMessage methods
*/
STDMETHOD(SetStatus) (THIS_ const char* pText) PURE;
};
#endif /* _RMAWIN_H_ */
|