Fix compilation errors on FreeBSD.
[wine] / include / strmif.h
1 #ifndef __WINE__
2 #include "rpc.h"
3 #include "rpcndr.h"
4 #ifndef COM_NO_WINDOWS_H
5 #include "windows.h"
6 #include "ole2.h"
7 #endif
8 #endif
9
10 #ifndef __WINE_STRMIF_H_
11 #define __WINE_STRMIF_H_
12
13 #include "wine/obj_base.h"
14 #include "wine/obj_misc.h"
15 #include "wine/obj_storage.h"
16 #include "wine/obj_moniker.h"
17 #include "wine/obj_oleaut.h"
18 #include "wine/obj_property.h"
19 #include "wine/obj_ksproperty.h"
20
21 /* undef GetTimeFormat - FIXME? */
22 #undef GetTimeFormat
23
24 /* FIXME - far from complete. */
25
26 /* forward decls. */
27
28 typedef struct IAMAnalogVideoDecoder IAMAnalogVideoDecoder;
29 typedef struct IAMAnalogVideoEncoder IAMAnalogVideoEncoder;
30 typedef struct IAMAudioInputMixer IAMAudioInputMixer;
31 typedef struct IAMAudioRendererStats IAMAudioRendererStats;
32 typedef struct IAMBufferNegotiation IAMBufferNegotiation;
33 typedef struct IAMCameraControl IAMCameraControl;
34 typedef struct IAMClockAdjust IAMClockAdjust;
35 typedef struct IAMCopyCaptureFileProgress IAMCopyCaptureFileProgress;
36 typedef struct IAMCrossbar IAMCrossbar;
37 typedef struct IAMDeviceRemoval IAMDeviceRemoval;
38 typedef struct IAMDevMemoryAllocator IAMDevMemoryAllocator;
39 typedef struct IAMDevMemoryControl IAMDevMemoryControl;
40 typedef struct IAMDroppedFrames IAMDroppedFrames;
41 typedef struct IAMExtDevice IAMExtDevice;
42 typedef struct IAMExtTransport IAMExtTransport;
43 typedef struct IAMFilterMiscFlags IAMFilterMiscFlags;
44 typedef struct IAMGraphStreams IAMGraphStreams;
45 typedef struct IAMLatency IAMLatency;
46 typedef struct IAMOpenProgress IAMOpenProgress;
47 typedef struct IAMOverlayFX IAMOverlayFX;
48 typedef struct IAMovie IAMovie;
49 typedef struct IAMovieSetup IAMovieSetup;
50 typedef struct IAMPhysicalPinInfo IAMPhysicalPinInfo;
51 typedef struct IAMPushSource IAMPushSource;
52 typedef struct IAMResourceControl IAMResourceControl;
53 typedef struct IAMStreamConfig IAMStreamConfig;
54 typedef struct IAMStreamControl IAMStreamControl;
55 typedef struct IAMStreamSelect IAMStreamSelect;
56 typedef struct IAMTimecodeDisplay IAMTimecodeDisplay;
57 typedef struct IAMTimecodeGenerator IAMTimecodeGenerator;
58 typedef struct IAMTimecodeReader IAMTimecodeReader;
59 typedef struct IAMTuner IAMTuner;
60 typedef struct IAMTunerNotification IAMTunerNotification;
61 typedef struct IAMTVAudio IAMTVAudio;
62 typedef struct IAMTVAudioNotification IAMTVAudioNotification;
63 typedef struct IAMTVTuner IAMTVTuner;
64 typedef struct IAMVfwCaptureDialogs IAMVfwCaptureDialogs;
65 typedef struct IAMVfwCompressDialogs IAMVfwCompressDialogs;
66 typedef struct IAMVideoCompression IAMVideoCompression;
67 typedef struct IAMVideoControl IAMVideoControl;
68 typedef struct IAMVideoDecimationProperties IAMVideoDecimationProperties;
69 typedef struct IAMVideoProcAmp IAMVideoProcAmp;
70 typedef struct IAsyncReader IAsyncReader;
71 typedef struct IMediaFilter IMediaFilter;
72 typedef struct IBaseFilter IBaseFilter;
73 typedef struct IBPCSatelliteTuner IBPCSatelliteTuner;
74 typedef struct ICaptureGraphBuilder ICaptureGraphBuilder;
75 typedef struct ICaptureGraphBuilder2 ICaptureGraphBuilder2;
76 typedef struct IConfigAviMux IConfigAviMux;
77 typedef struct IConfigInterleaving IConfigInterleaving;
78 typedef struct ICreateDevEnum ICreateDevEnum;
79 typedef struct IDDrawExclModeVideo IDDrawExclModeVideo;
80 typedef struct IDDrawExclModeVideoCallback IDDrawExclModeVideoCallback;
81 typedef struct IDecimateVideoImage IDecimateVideoImage;
82 typedef struct IDistributorNotify IDistributorNotify;
83 typedef struct IDrawVideoImage IDrawVideoImage;
84 typedef struct IDvdCmd IDvdCmd;
85 typedef struct IDvdControl IDvdControl;
86 typedef struct IDvdControl2 IDvdControl2;
87 typedef struct IDvdGraphBuilder IDvdGraphBuilder;
88 typedef struct IDvdInfo IDvdInfo;
89 typedef struct IDvdInfo2 IDvdInfo2;
90 typedef struct IDvdState IDvdState;
91 typedef struct IDVEnc IDVEnc;
92 typedef struct IDVSplitter IDVSplitter;
93 typedef struct IEnumFilters IEnumFilters;
94 typedef struct IEnumMediaTypes IEnumMediaTypes;
95 typedef struct IEnumPins IEnumPins;
96 typedef struct IEnumRegFilters IEnumRegFilters;
97 typedef struct IEnumStreamIdMap IEnumStreamIdMap;
98 typedef struct IFileSinkFilter IFileSinkFilter;
99 typedef struct IFileSinkFilter2 IFileSinkFilter2;
100 typedef struct IFileSourceFilter IFileSourceFilter;
101 typedef struct IFilterChain IFilterChain;
102 typedef struct IFilterGraph IFilterGraph;
103 typedef struct IFilterGraph2 IFilterGraph2;
104 typedef struct IFilterMapper IFilterMapper;
105 typedef struct IFilterMapper2 IFilterMapper2;
106 typedef struct IFilterMapper3 IFilterMapper3;
107 typedef struct IGraphBuilder IGraphBuilder;
108 typedef struct IGraphConfig IGraphConfig;
109 typedef struct IGraphConfigCallback IGraphConfigCallback;
110 typedef struct IGraphVersion IGraphVersion;
111 typedef struct IIPDVDec IIPDVDec;
112 typedef struct IMediaEventSink IMediaEventSink;
113 typedef struct IMediaPropertyBag IMediaPropertyBag;
114 typedef struct IMediaSample IMediaSample;
115 typedef struct IMediaSample2 IMediaSample2;
116 typedef struct IMediaSeeking IMediaSeeking;
117 typedef struct IMemAllocator IMemAllocator;
118 typedef struct IMemAllocatorCallbackTemp IMemAllocatorCallbackTemp;
119 typedef struct IMemAllocatorNotifyCallbackTemp IMemAllocatorNotifyCallbackTemp;
120 typedef struct IMemInputPin IMemInputPin;
121 typedef struct IMpeg2Demultiplexer IMpeg2Demultiplexer;
122 typedef struct IMPEG2StreamIdMap IMPEG2StreamIdMap;
123 typedef struct IOverlay IOverlay;
124 typedef struct IOverlayNotify IOverlayNotify;
125 typedef struct IOverlayNotify2 IOverlayNotify2;
126 typedef struct IPersistMediaPropertyBag IPersistMediaPropertyBag;
127 typedef struct IPin IPin;
128 typedef struct IPinConnection IPinConnection;
129 typedef struct IPinFlowControl IPinFlowControl;
130 typedef struct IQualityControl IQualityControl;
131 typedef struct IReferenceClock IReferenceClock;
132 typedef struct IReferenceClock2 IReferenceClock2;
133 typedef struct IResourceConsumer IResourceConsumer;
134 typedef struct IResourceManager IResourceManager;
135 typedef struct ISeekingPassThru ISeekingPassThru;
136 typedef struct IStreamBuilder IStreamBuilder;
137 typedef struct IVideoFrameStep IVideoFrameStep;
138
139 /* GUIDs. */
140
141 DEFINE_GUID(IID_IAMAnalogVideoDecoder,0xC6E13350,0x30AC,0x11D0,0xA1,0x8C,0x00,0xA0,0xC9,0x11,0x89,0x56);
142 DEFINE_GUID(IID_IAMAnalogVideoEncoder,0xC6E133B0,0x30AC,0x11D0,0xA1,0x8C,0x00,0xA0,0xC9,0x11,0x89,0x56);
143 DEFINE_GUID(IID_IAMAudioInputMixer,0x54C39221,0x8380,0x11D0,0xB3,0xF0,0x00,0xAA,0x00,0x37,0x61,0xC5);
144 DEFINE_GUID(IID_IAMAudioRendererStats,0x22320CB2,0xD41A,0x11D2,0xBF,0x7C,0xD7,0xCB,0x9D,0xF0,0xBF,0x93);
145 DEFINE_GUID(IID_IAMBufferNegotiation,0x56ED71A0,0xAF5F,0x11D0,0xB3,0xF0,0x00,0xAA,0x00,0x37,0x61,0xC5);
146 DEFINE_GUID(IID_IAMCameraControl,0xC6E13370,0x30AC,0x11D0,0xA1,0x8C,0x00,0xA0,0xC9,0x11,0x89,0x56);
147 DEFINE_GUID(IID_IAMClockAdjust,0x4D5466B0,0xA49C,0x11D1,0xAB,0xE8,0x00,0xA0,0xC9,0x05,0xF3,0x75);
148 DEFINE_GUID(IID_IAMCopyCaptureFileProgress,0x670D1D20,0xA068,0x11D0,0xB3,0xF0,0x00,0xAA,0x00,0x37,0x61,0xC5);
149 DEFINE_GUID(IID_IAMCrossbar,0xC6E13380,0x30AC,0x11D0,0xA1,0x8C,0x00,0xA0,0xC9,0x11,0x89,0x56);
150 DEFINE_GUID(IID_IAMDeviceRemoval,0xF90A6130,0xB658,0x11D2,0xAE,0x49,0x00,0x00,0xF8,0x75,0x4B,0x99);
151 DEFINE_GUID(IID_IAMDevMemoryAllocator,0xC6545BF0,0xE76B,0x11D0,0xBD,0x52,0x00,0xA0,0xC9,0x11,0xCE,0x86);
152 DEFINE_GUID(IID_IAMDevMemoryControl,0xC6545BF1,0xE76B,0x11D0,0xBD,0x52,0x00,0xA0,0xC9,0x11,0xCE,0x86);
153 DEFINE_GUID(IID_IAMDroppedFrames,0xC6E13344,0x30AC,0x11D0,0xA1,0x8C,0x00,0xA0,0xC9,0x11,0x89,0x56);
154 DEFINE_GUID(IID_IAMExtDevice,0xB5730A90,0x1A2C,0x11CF,0x8C,0x23,0x00,0xAA,0x00,0x6B,0x68,0x14);
155 DEFINE_GUID(IID_IAMExtTransport,0xA03CD5F0,0x3045,0x11CF,0x8C,0x44,0x00,0xAA,0x00,0x6B,0x68,0x14);
156 DEFINE_GUID(IID_IAMFilterMiscFlags,0x2DD74950,0xA890,0x11D1,0xAB,0xE8,0x00,0xA0,0xC9,0x05,0xF3,0x75);
157 DEFINE_GUID(IID_IAMGraphStreams,0x632105FA,0x072E,0x11D3,0x8A,0xF9,0x00,0xC0,0x4F,0xB6,0xBD,0x3D);
158 DEFINE_GUID(IID_IAMLatency,0x62EA93BA,0xEC62,0x11D2,0xB7,0x70,0x00,0xC0,0x4F,0xB6,0xBD,0x3D);
159 DEFINE_GUID(IID_IAMOpenProgress,0x8E1C39A1,0xDE53,0x11CF,0xAA,0x63,0x00,0x80,0xC7,0x44,0x52,0x8D);
160 DEFINE_GUID(IID_IAMOverlayFX,0x62FAE250,0x7E65,0x4460,0xBF,0xC9,0x63,0x98,0xB3,0x22,0x07,0x3C);
161 DEFINE_GUID(IID_IAMovie,0x359ACE10,0x7688,0x11CF,0x8B,0x23,0x00,0x80,0x5F,0x6C,0xEF,0x60);
162 DEFINE_GUID(IID_IAMovieSetup,0xA3D8CEC0,0x7E5A,0x11CF,0xBB,0xC5,0x00,0x80,0x5F,0x6C,0xEF,0x20);
163 DEFINE_GUID(IID_IAMPhysicalPinInfo,0xF938C991,0x3029,0x11CF,0x8C,0x44,0x00,0xAA,0x00,0x6B,0x68,0x14);
164 DEFINE_GUID(IID_IAMPushSource,0xF185FE76,0xE64E,0x11D2,0xB7,0x6E,0x00,0xC0,0x4F,0xB6,0xBD,0x3D);
165 DEFINE_GUID(IID_IAMResourceControl,0x8389D2D0,0x77D7,0x11D1,0xAB,0xE6,0x00,0xA0,0xC9,0x05,0xF3,0x75);
166 DEFINE_GUID(IID_IAMStreamConfig,0xC6E13340,0x30AC,0x11D0,0xA1,0x8C,0x00,0xA0,0xC9,0x11,0x89,0x56);
167 DEFINE_GUID(IID_IAMStreamControl,0x36B73881,0xC2C8,0x11CF,0x8B,0x46,0x00,0x80,0x5F,0x6C,0xEF,0x60);
168 DEFINE_GUID(IID_IAMStreamSelect,0xC1960960,0x17F5,0x11D1,0xAB,0xE1,0x00,0xA0,0xC9,0x05,0xF3,0x75);
169 DEFINE_GUID(IID_IAMTimecodeDisplay,0x9B496CE2,0x811B,0x11CF,0x8C,0x77,0x00,0xAA,0x00,0x6B,0x68,0x14);
170 DEFINE_GUID(IID_IAMTimecodeGenerator,0x9B496CE0,0x811B,0x11CF,0x8C,0x77,0x00,0xAA,0x00,0x6B,0x68,0x14);
171 DEFINE_GUID(IID_IAMTimecodeReader,0x9B496CE1,0x811B,0x11CF,0x8C,0x77,0x00,0xAA,0x00,0x6B,0x68,0x14);
172 DEFINE_GUID(IID_IAMTuner,0x211A8761,0x03AC,0x11D1,0x8D,0x13,0x00,0xAA,0x00,0xBD,0x83,0x39);
173 DEFINE_GUID(IID_IAMTunerNotification,0x211A8760,0x03AC,0x11D1,0x8D,0x13,0x00,0xAA,0x00,0xBD,0x83,0x39);
174 DEFINE_GUID(IID_IAMTVAudio,0x83EC1C30,0x23D1,0x11D1,0x99,0xE6,0x00,0xA0,0xC9,0x56,0x02,0x66);
175 DEFINE_GUID(IID_IAMTVAudioNotification,0x83EC1C33,0x23D1,0x11D1,0x99,0xE6,0x00,0xA0,0xC9,0x56,0x02,0x66);
176 DEFINE_GUID(IID_IAMTVTuner,0x211A8766,0x03AC,0x11D1,0x8D,0x13,0x00,0xAA,0x00,0xBD,0x83,0x39);
177 DEFINE_GUID(IID_IAMVfwCaptureDialogs,0xD8D715A0,0x6E5E,0x11D0,0xB3,0xF0,0x00,0xAA,0x00,0x37,0x61,0xC5);
178 DEFINE_GUID(IID_IAMVfwCompressDialogs,0xD8D715A3,0x6E5E,0x11D0,0xB3,0xF0,0x00,0xAA,0x00,0x37,0x61,0xC5);
179 DEFINE_GUID(IID_IAMVideoCompression,0xC6E13343,0x30AC,0x11D0,0xA1,0x8C,0x00,0xA0,0xC9,0x11,0x89,0x56);
180 DEFINE_GUID(IID_IAMVideoControl,0x6A2E0670,0x28E4,0x11D0,0xA1,0x8C,0x00,0xA0,0xC9,0x11,0x89,0x56);
181 DEFINE_GUID(IID_IAMVideoDecimationProperties,0x60D32930,0x13DA,0x11D3,0x9E,0xC6,0xC4,0xFC,0xAE,0xF5,0xC7,0xBE);
182 DEFINE_GUID(IID_IAMVideoProcAmp,0xC6E13360,0x30AC,0x11D0,0xA1,0x8C,0x00,0xA0,0xC9,0x11,0x89,0x56);
183 DEFINE_GUID(IID_IAsyncReader,0x56A868AA,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
184 DEFINE_GUID(IID_IMediaFilter,0x56A86899,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
185 DEFINE_GUID(IID_IBaseFilter,0x56A86895,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
186 DEFINE_GUID(IID_IBPCSatelliteTuner,0x211A8765,0x03AC,0x11D1,0x8D,0x13,0x00,0xAA,0x00,0xBD,0x83,0x39);
187 DEFINE_GUID(IID_ICaptureGraphBuilder,0xBF87B6E0,0x8C27,0x11D0,0xB3,0xF0,0x00,0xAA,0x00,0x37,0x61,0xC5);
188 DEFINE_GUID(IID_ICaptureGraphBuilder2,0x93E5A4E0,0x2D50,0x11D2,0xAB,0xFA,0x00,0xA0,0xC9,0xC6,0xE3,0x8D);
189 DEFINE_GUID(IID_IConfigAviMux,0x5ACD6AA0,0xF482,0x11CE,0x8B,0x67,0x00,0xAA,0x00,0xA3,0xF1,0xA6);
190 DEFINE_GUID(IID_IConfigInterleaving,0xBEE3D220,0x157B,0x11D0,0xBD,0x23,0x00,0xA0,0xC9,0x11,0xCE,0x86);
191 DEFINE_GUID(IID_ICreateDevEnum,0x29840822,0x5B84,0x11D0,0xBD,0x3B,0x00,0xA0,0xC9,0x11,0xCE,0x86);
192 DEFINE_GUID(IID_IDDrawExclModeVideo,0x153ACC21,0xD83B,0x11D1,0x82,0xBF,0x00,0xA0,0xC9,0x69,0x6C,0x8F);
193 DEFINE_GUID(IID_IDDrawExclModeVideoCallback,0x913C24A0,0x20AB,0x11D2,0x90,0x38,0x00,0xA0,0xC9,0x69,0x72,0x98);
194 DEFINE_GUID(IID_IDecimateVideoImage,0x2E5EA3E0,0xE924,0x11D2,0xB6,0xDA,0x00,0xA0,0xC9,0x95,0xE8,0xDF);
195 DEFINE_GUID(IID_IDistributorNotify,0x56A868AF,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
196 DEFINE_GUID(IID_IDrawVideoImage,0x48EFB120,0xAB49,0x11D2,0xAE,0xD2,0x00,0xA0,0xC9,0x95,0xE8,0xD5);
197 DEFINE_GUID(IID_IDvdCmd,0x5A4A97E4,0x94EE,0x4A55,0x97,0x51,0x74,0xB5,0x64,0x3A,0xA2,0x7D);
198 DEFINE_GUID(IID_IDvdControl,0xA70EFE61,0xE2A3,0x11D0,0xA9,0xBE,0x00,0xAA,0x00,0x61,0xBE,0x93);
199 DEFINE_GUID(IID_IDvdControl2,0x33BC7430,0xEEC0,0x11D2,0x82,0x01,0x00,0xA0,0xC9,0xD7,0x48,0x42);
200 DEFINE_GUID(IID_IDvdGraphBuilder,0xFCC152B6,0xF372,0x11D0,0x8E,0x00,0x00,0xC0,0x4F,0xD7,0xC0,0x8B);
201 DEFINE_GUID(IID_IDvdInfo,0xA70EFE60,0xE2A3,0x11D0,0xA9,0xBE,0x00,0xAA,0x00,0x61,0xBE,0x93);
202 DEFINE_GUID(IID_IDvdInfo2,0x34151510,0xEEC0,0x11D2,0x82,0x01,0x00,0xA0,0xC9,0xD7,0x48,0x42);
203 DEFINE_GUID(IID_IDvdState,0x86303D6D,0x1C4A,0x4087,0xAB,0x42,0xF7,0x11,0x16,0x70,0x48,0xEF);
204 DEFINE_GUID(IID_IDVEnc,0xD18E17A0,0xAACB,0x11D0,0xAF,0xB0,0x00,0xAA,0x00,0xB6,0x7A,0x42);
205 DEFINE_GUID(IID_IDVSplitter,0x92A3A302,0xDA7C,0x4A1F,0xBA,0x7E,0x18,0x02,0xBB,0x5D,0x2D,0x02);
206 DEFINE_GUID(IID_IEnumFilters,0x56A86893,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
207 DEFINE_GUID(IID_IEnumMediaTypes,0x89C31040,0x846B,0x11CE,0x97,0xD3,0x00,0xAA,0x00,0x55,0x59,0x5A);
208 DEFINE_GUID(IID_IEnumPins,0x56A86892,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
209 DEFINE_GUID(IID_IEnumRegFilters,0x56A868A4,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
210 DEFINE_GUID(IID_IEnumStreamIdMap,0x945C1566,0x6202,0x46FC,0x96,0xC7,0xD8,0x7F,0x28,0x9C,0x65,0x34);
211 DEFINE_GUID(IID_IFileSinkFilter,0xA2104830,0x7C70,0x11CF,0x8B,0xCE,0x00,0xAA,0x00,0xA3,0xF1,0xA6);
212 DEFINE_GUID(IID_IFileSinkFilter2,0x00855B90,0xCE1B,0x11D0,0xBD,0x4F,0x00,0xA0,0xC9,0x11,0xCE,0x86);
213 DEFINE_GUID(IID_IFileSourceFilter,0x56A868A6,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
214 DEFINE_GUID(IID_IFilterChain,0xDCFBDCF6,0x0DC2,0x45F5,0x9A,0xB2,0x7C,0x33,0x0E,0xA0,0x9C,0x29);
215 DEFINE_GUID(IID_IFilterGraph,0x56A8689F,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
216 DEFINE_GUID(IID_IFilterGraph2,0x36B73882,0xC2C8,0x11CF,0x8B,0x46,0x00,0x80,0x5F,0x6C,0xEF,0x60);
217 DEFINE_GUID(IID_IFilterMapper,0x56A868A3,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
218 DEFINE_GUID(IID_IFilterMapper2,0xB79BB0B0,0x33C1,0x11D1,0xAB,0xE1,0x00,0xA0,0xC9,0x05,0xF3,0x75);
219 DEFINE_GUID(IID_IFilterMapper3,0xB79BB0B1,0x33C1,0x11D1,0xAB,0xE1,0x00,0xA0,0xC9,0x05,0xF3,0x75);
220 DEFINE_GUID(IID_IGraphBuilder,0x56A868A9,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
221 DEFINE_GUID(IID_IGraphConfig,0x03A1EB8E,0x32BF,0x4245,0x85,0x02,0x11,0x4D,0x08,0xA9,0xCB,0x88);
222 DEFINE_GUID(IID_IGraphConfigCallback,0xADE0FD60,0xD19D,0x11D2,0xAB,0xF6,0x00,0xA0,0xC9,0x05,0xF3,0x75);
223 DEFINE_GUID(IID_IGraphVersion,0x56A868AB,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
224 DEFINE_GUID(IID_IIPDVDec,0xB8E8BD60,0x0BFE,0x11D0,0xAF,0x91,0x00,0xAA,0x00,0xB6,0x7A,0x42);
225 DEFINE_GUID(IID_IMediaEventSink,0x56A868A2,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
226 DEFINE_GUID(IID_IMediaPropertyBag,0x6025A880,0xC0D5,0x11D0,0xBD,0x4E,0x00,0xA0,0xC9,0x11,0xCE,0x86);
227 DEFINE_GUID(IID_IMediaSample,0x56A8689A,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
228 DEFINE_GUID(IID_IMediaSample2,0x36B73884,0xC2C8,0x11CF,0x8B,0x46,0x00,0x80,0x5F,0x6C,0xEF,0x60);
229 DEFINE_GUID(IID_IMediaSeeking,0x36B73880,0xC2C8,0x11CF,0x8B,0x46,0x00,0x80,0x5F,0x6C,0xEF,0x60);
230 DEFINE_GUID(IID_IMemAllocator,0x56A8689C,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
231 DEFINE_GUID(IID_IMemAllocatorCallbackTemp,0x379A0CF0,0xC1DE,0x11D2,0xAB,0xF5,0x00,0xA0,0xC9,0x05,0xF3,0x75);
232 DEFINE_GUID(IID_IMemAllocatorNotifyCallbackTemp,0x92980B30,0xC1DE,0x11D2,0xAB,0xF5,0x00,0xA0,0xC9,0x05,0xF3,0x75);
233 DEFINE_GUID(IID_IMemInputPin,0x56A8689D,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
234 DEFINE_GUID(IID_IMpeg2Demultiplexer,0x436EEE9C,0x264F,0x4242,0x90,0xE1,0x4E,0x33,0x0C,0x10,0x75,0x12);
235 DEFINE_GUID(IID_IMPEG2StreamIdMap,0xD0E04C47,0x25B8,0x4369,0x92,0x5A,0x36,0x2A,0x01,0xD9,0x54,0x44);
236 DEFINE_GUID(IID_IOverlay,0x56A868A1,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
237 DEFINE_GUID(IID_IOverlayNotify,0x56A868A0,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
238 DEFINE_GUID(IID_IOverlayNotify2,0x680EFA10,0xD535,0x11D1,0x87,0xC8,0x00,0xA0,0xC9,0x22,0x31,0x96);
239 DEFINE_GUID(IID_IPersistMediaPropertyBag,0x5738E040,0xB67F,0x11D0,0xBD,0x4D,0x00,0xA0,0xC9,0x11,0xCE,0x86);
240 DEFINE_GUID(IID_IPin,0x56A86891,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
241 DEFINE_GUID(IID_IPinConnection,0x4A9A62D3,0x27D4,0x403D,0x91,0xE9,0x89,0xF5,0x40,0xE5,0x55,0x34);
242 DEFINE_GUID(IID_IPinFlowControl,0xC56E9858,0xDBF3,0x4F6B,0x81,0x19,0x38,0x4A,0xF2,0x06,0x0D,0xEB);
243 DEFINE_GUID(IID_IQualityControl,0x56A868A5,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
244 DEFINE_GUID(IID_IReferenceClock,0x56A86897,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
245 DEFINE_GUID(IID_IReferenceClock2,0x36B73885,0xC2C8,0x11CF,0x8B,0x46,0x00,0x80,0x5F,0x6C,0xEF,0x60);
246 DEFINE_GUID(IID_IResourceConsumer,0x56A868AD,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
247 DEFINE_GUID(IID_IResourceManager,0x56A868AC,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
248 DEFINE_GUID(IID_ISeekingPassThru,0x36B73883,0xC2C8,0x11CF,0x8B,0x46,0x00,0x80,0x5F,0x6C,0xEF,0x60);
249 DEFINE_GUID(IID_IStreamBuilder,0x56A868BF,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70);
250 DEFINE_GUID(IID_IVideoFrameStep,0xE46A9787,0x2B71,0x444D,0xA4,0xB5,0x1F,0xAB,0x7B,0x70,0x8D,0x6A);
251
252
253 #ifndef __WINE_REFTIME_DEFINED_
254 #define __WINE_REFTIME_DEFINED_
255 typedef double REFTIME;
256 #endif /* __WINE_REFTIME_DEFINED_ */
257
258 typedef LONGLONG        REFERENCE_TIME;
259 typedef DWORD_PTR       HSEMAPHORE;
260 typedef DWORD_PTR       HEVENT;
261
262 /* enums. */
263
264 typedef enum
265 {
266         PINDIR_INPUT = 0,
267         PINDIR_OUTPUT = 1,
268 } PIN_DIRECTION;
269
270 typedef enum
271 {
272         State_Stopped = 0,
273         State_Paused = 1,
274         State_Running = 2,
275 } FILTER_STATE;
276
277 typedef enum
278 {
279         Famine = 0,
280         Flood = 1,
281 } QualityMessageType;
282
283 typedef enum
284 {
285         REG_PINFLAG_B_ZERO = 0x1,
286         REG_PINFLAG_B_RENDERER = 0x2,
287         REG_PINFLAG_B_MANY = 0x4,
288         REG_PINFLAG_B_OUTPUT = 0x8,
289 } REG_PINFLAG;
290
291 typedef enum
292 {
293         AM_SAMPLE_SPLICEPOINT           = 0x1,
294         AM_SAMPLE_PREROLL               = 0x2,
295         AM_SAMPLE_DATADISCONTINUITY     = 0x4,
296         AM_SAMPLE_TYPECHANGED           = 0x8,
297         AM_SAMPLE_TIMEVALID             = 0x10,
298         AM_SAMPLE_TIMEDISCONTINUITY     = 0x40,
299         AM_SAMPLE_FLUSH_ON_PAUSE        = 0x80,
300         AM_SAMPLE_STOPVALID             = 0x100,
301         AM_SAMPLE_ENDOFSTREAM           = 0x200,
302
303         AM_STREAM_MEDIA                 = 0,
304         AM_STREAM_CONTROL               = 1
305 } AM_SAMPLE_PROPERTY_FLAGS;
306
307 enum __MIDL_IFilterMapper_0001
308 {
309         MERIT_PREFERRED = 0x800000,
310         MERIT_NORMAL    = 0x600000,
311         MERIT_UNLIKELY  = 0x400000,
312         MERIT_DO_NOT_USE        = 0x200000,
313         MERIT_HW_COMPRESSOR     = 0x100050,
314         MERIT_SW_COMPRESSOR     = 0x100000,
315 };
316
317
318
319 /* structs. */
320
321 typedef struct
322 {
323         GUID    majortype;
324         GUID    subtype;
325         BOOL    bFixedSizeSamples;
326         BOOL    bTemporalCompression;
327         ULONG   lSampleSize;
328         GUID    formattype;
329         IUnknown*       pUnk;
330         ULONG   cbFormat;
331         BYTE*   pbFormat;
332 } AM_MEDIA_TYPE;
333
334 typedef struct
335 {
336         long    cBuffers;
337         long    cbBuffer;
338         long    cbAlign;
339         long    cbPrefix;
340 } ALLOCATOR_PROPERTIES;
341
342 typedef struct
343 {
344         IBaseFilter*    pFilter;
345         PIN_DIRECTION   dir;
346         WCHAR           achName[ 128 ];
347 } PIN_INFO;
348
349 typedef struct
350 {
351         WCHAR           achName[ 128 ];
352         IFilterGraph*   pGraph;
353 } FILTER_INFO;
354
355 typedef struct
356 {
357         REFERENCE_TIME  tStart;
358         REFERENCE_TIME  tStop;
359         DWORD           dwStartCookie;
360         DWORD           dwStopCookie;
361         DWORD           dwFlags;
362 } AM_STREAM_INFO;
363
364 typedef struct tagCOLORKEY
365 {
366         DWORD           KeyType;
367         DWORD           PaletteIndex;
368         COLORREF        LowColorValue;
369         COLORREF        HighColorValue;
370 } COLORKEY;
371
372 typedef struct
373 {
374         QualityMessageType      Type;
375         long                    Proportion;
376         REFERENCE_TIME          Late;
377         REFERENCE_TIME          TimeStamp;
378 } Quality;
379
380 typedef struct
381 {
382         const CLSID*    clsMajorType;
383         const CLSID*    clsMinorType;
384 } REGPINTYPES;
385
386 typedef struct
387 {
388         LPWSTR  strName;
389         BOOL    bRendered;
390         BOOL    bOutput;
391         BOOL    bZero;
392         BOOL    bMany;
393         const CLSID*    clsConnectsToFilter;
394         const WCHAR*    strConnectsToPin;
395         UINT    nMediaTypes;
396         const REGPINTYPES*      lpMediaType;
397 } REGFILTERPINS;
398
399 typedef struct
400 {
401         CLSID   clsMedium;
402         DWORD   dw1;
403         DWORD   dw2;
404 } REGPINMEDIUM;
405
406 typedef struct
407 {
408         DWORD   dwFlags;
409         UINT    cInstances;
410         UINT    nMediaTypes;
411         const REGPINTYPES*      lpMediaType;
412         UINT    nMediums;
413         const REGPINMEDIUM*     lpMedium;
414         const CLSID*    clsPinCategory;
415 } REGFILTERPINS2;
416
417 typedef struct
418 {
419         DWORD   dwVersion;
420         DWORD   dwMerit;
421         union {
422                 struct {
423                         ULONG   cPins;
424                         const REGFILTERPINS*    rgPins;
425                 } DUMMYSTRUCTNAME1;
426                 struct {
427                         ULONG   cPins2;
428                         const REGFILTERPINS2*   rgPins2;
429                 } DUMMYSTRUCTNAME2;
430         } DUMMYUNIONNAME;
431 } REGFILTER2;
432
433 typedef struct
434 {
435         DWORD           cbData;
436         DWORD           dwTypeSpecificFlags;
437         DWORD           dwSampleFlags;
438         LONG            lActual;
439         REFERENCE_TIME  tStart;
440         REFERENCE_TIME  tStop;
441         DWORD           dwStreamId;
442         AM_MEDIA_TYPE*  pMediaType;
443         BYTE*           pbBuffer;
444         LONG            cbBuffer;
445 } AM_SAMPLE2_PROPERTIES;
446
447
448
449 /* defines. */
450
451 #define CHARS_IN_GUID   39
452 #define MAX_PIN_NAME    128
453 #define MAX_FILTER_NAME 128
454
455 #define AM_GBF_PREVFRAMESKIPPED         1
456 #define AM_GBF_NOTASYNCPOINT            2
457 #define AM_GBF_NOWAIT                   4
458
459
460 /* interfaces. */
461
462 /**************************************************************************
463  *
464  * IAsyncReader interface
465  *
466  */
467
468 #define ICOM_INTERFACE IAsyncReader
469 #define IAsyncReader_METHODS \
470     ICOM_METHOD3(HRESULT,RequestAllocator,IMemAllocator*,a1,ALLOCATOR_PROPERTIES*,a2,IMemAllocator**,a3) \
471     ICOM_METHOD2(HRESULT,Request,IMediaSample*,a1,DWORD_PTR,a2) \
472     ICOM_METHOD3(HRESULT,WaitForNext,DWORD,a1,IMediaSample**,a2,DWORD_PTR*,a3) \
473     ICOM_METHOD1(HRESULT,SyncReadAligned,IMediaSample*,a1) \
474     ICOM_METHOD3(HRESULT,SyncRead,LONGLONG,a1,LONG,a2,BYTE*,a3) \
475     ICOM_METHOD2(HRESULT,Length,LONGLONG*,a1,LONGLONG*,a2) \
476     ICOM_METHOD (HRESULT,BeginFlush) \
477     ICOM_METHOD (HRESULT,EndFlush)
478
479 #define IAsyncReader_IMETHODS \
480     IUnknown_IMETHODS \
481     IAsyncReader_METHODS
482
483 ICOM_DEFINE(IAsyncReader,IUnknown)
484 #undef ICOM_INTERFACE
485
486     /*** IUnknown methods ***/
487 #define IAsyncReader_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
488 #define IAsyncReader_AddRef(p) ICOM_CALL (AddRef,p)
489 #define IAsyncReader_Release(p) ICOM_CALL (Release,p)
490     /*** IAsyncReader methods ***/
491 #define IAsyncReader_RequestAllocator(p,a1,a2,a3) ICOM_CALL3(RequestAllocator,p,a1,a2,a3)
492 #define IAsyncReader_Request(p,a1,a2) ICOM_CALL2(Request,p,a1,a2)
493 #define IAsyncReader_WaitForNext(p,a1,a2,a3) ICOM_CALL3(WaitForNext,p,a1,a2,a3)
494 #define IAsyncReader_SyncReadAligned(p,a1) ICOM_CALL1(SyncReadAligned,p,a1)
495 #define IAsyncReader_SyncRead(p,a1,a2,a3) ICOM_CALL3(SyncRead,p,a1,a2,a3)
496 #define IAsyncReader_Length(p,a1,a2) ICOM_CALL2(Length,p,a1,a2)
497 #define IAsyncReader_BeginFlush(p) ICOM_CALL (BeginFlush,p)
498 #define IAsyncReader_EndFlush(p) ICOM_CALL (EndFlush,p)
499
500 /**************************************************************************
501  *
502  * IMediaFilter interface
503  *
504  */
505
506 #define ICOM_INTERFACE IMediaFilter
507 #define IMediaFilter_METHODS \
508     ICOM_METHOD (HRESULT,Stop) \
509     ICOM_METHOD (HRESULT,Pause) \
510     ICOM_METHOD1(HRESULT,Run,REFERENCE_TIME,a1) \
511     ICOM_METHOD2(HRESULT,GetState,DWORD,a1,FILTER_STATE*,a2) \
512     ICOM_METHOD1(HRESULT,SetSyncSource,IReferenceClock*,a1) \
513     ICOM_METHOD1(HRESULT,GetSyncSource,IReferenceClock**,a1)
514
515 #define IMediaFilter_IMETHODS \
516     IPersist_IMETHODS \
517     IMediaFilter_METHODS
518
519 ICOM_DEFINE(IMediaFilter,IPersist)
520 #undef ICOM_INTERFACE
521
522     /*** IUnknown methods ***/
523 #define IMediaFilter_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
524 #define IMediaFilter_AddRef(p) ICOM_CALL (AddRef,p)
525 #define IMediaFilter_Release(p) ICOM_CALL (Release,p)
526     /*** IPersist methods ***/
527 #define IMediaFilter_GetClassID(p,a1) ICOM_CALL1(GetClassID,p,a1)
528     /*** IMediaFilter methods ***/
529 #define IMediaFilter_Stop(p) ICOM_CALL (Stop,p)
530 #define IMediaFilter_Pause(p) ICOM_CALL (Pause,p)
531 #define IMediaFilter_Run(p,a1) ICOM_CALL1(Run,p,a1)
532 #define IMediaFilter_GetState(p,a1,a2) ICOM_CALL2(GetState,p,a1,a2)
533 #define IMediaFilter_SetSyncSource(p,a1) ICOM_CALL1(SetSyncSource,p,a1)
534 #define IMediaFilter_GetSyncSource(p,a1) ICOM_CALL1(GetSyncSource,p,a1)
535
536 /**************************************************************************
537  *
538  * IBaseFilter interface
539  *
540  */
541
542 #define ICOM_INTERFACE IBaseFilter
543 #define IBaseFilter_METHODS \
544     ICOM_METHOD1(HRESULT,EnumPins,IEnumPins**,a1) \
545     ICOM_METHOD2(HRESULT,FindPin,LPCWSTR,a1,IPin**,a2) \
546     ICOM_METHOD1(HRESULT,QueryFilterInfo,FILTER_INFO*,a1) \
547     ICOM_METHOD2(HRESULT,JoinFilterGraph,IFilterGraph*,a1,LPCWSTR,a2) \
548     ICOM_METHOD1(HRESULT,QueryVendorInfo,LPWSTR*,a1)
549
550 #define IBaseFilter_IMETHODS \
551     IMediaFilter_IMETHODS \
552     IBaseFilter_METHODS
553
554 ICOM_DEFINE(IBaseFilter,IMediaFilter)
555 #undef ICOM_INTERFACE
556
557     /*** IUnknown methods ***/
558 #define IBaseFilter_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
559 #define IBaseFilter_AddRef(p) ICOM_CALL (AddRef,p)
560 #define IBaseFilter_Release(p) ICOM_CALL (Release,p)
561     /*** IPersist methods ***/
562 #define IBaseFilter_GetClassID(p,a1) ICOM_CALL1(GetClassID,p,a1)
563     /*** IMediaFilter methods ***/
564 #define IBaseFilter_Stop(p) ICOM_CALL (Stop,p)
565 #define IBaseFilter_Pause(p) ICOM_CALL (Pause,p)
566 #define IBaseFilter_Run(p,a1) ICOM_CALL1(Run,p,a1)
567 #define IBaseFilter_GetState(p,a1,a2) ICOM_CALL2(GetState,p,a1,a2)
568 #define IBaseFilter_SetSyncSource(p,a1) ICOM_CALL1(SetSyncSource,p,a1)
569 #define IBaseFilter_GetSyncSource(p,a1) ICOM_CALL1(GetSyncSource,p,a1)
570     /*** IBaseFilter methods ***/
571 #define IBaseFilter_EnumPins(p,a1) ICOM_CALL1(EnumPins,p,a1)
572 #define IBaseFilter_FindPin(p,a1,a2) ICOM_CALL2(FindPin,p,a1,a2)
573 #define IBaseFilter_QueryFilterInfo(p,a1) ICOM_CALL1(QueryFilterInfo,p,a1)
574 #define IBaseFilter_JoinFilterGraph(p,a1,a2) ICOM_CALL2(JoinFilterGraph,p,a1,a2)
575 #define IBaseFilter_QueryVendorInfo(p,a1) ICOM_CALL1(QueryVendorInfo,p,a1)
576
577 /**************************************************************************
578  *
579  * ICaptureGraphBuilder interface
580  *
581  */
582
583 #define ICOM_INTERFACE ICaptureGraphBuilder
584 #define ICaptureGraphBuilder_METHODS \
585     ICOM_METHOD1(HRESULT,SetFiltergraph,IGraphBuilder*,a1) \
586     ICOM_METHOD1(HRESULT,GetFiltergraph,IGraphBuilder**,a1) \
587     ICOM_METHOD4(HRESULT,SetOutputFileName,const GUID*,a1,LPCOLESTR,a2,IBaseFilter**,a3,IFileSinkFilter**,a4) \
588     ICOM_METHOD4(HRESULT,FindInterface,const GUID*,a1,IBaseFilter*,a2,REFIID,a3,void**,a4) \
589     ICOM_METHOD4(HRESULT,RenderStream,const GUID*,a1,IUnknown*,a2,IBaseFilter*,a3,IBaseFilter*,a4) \
590     ICOM_METHOD6(HRESULT,ControlStream,const GUID*,a1,IBaseFilter*,a2,REFERENCE_TIME*,a3,REFERENCE_TIME*,a4,WORD,a5,WORD,a6) \
591     ICOM_METHOD2(HRESULT,AllocCapFile,LPCOLESTR,a1,DWORDLONG,a2) \
592     ICOM_METHOD4(HRESULT,CopyCaptureFile,LPOLESTR,a1,LPOLESTR,a2,int,a3,IAMCopyCaptureFileProgress*,a4)
593
594 #define ICaptureGraphBuilder_IMETHODS \
595     IUnknown_IMETHODS \
596     ICaptureGraphBuilder_METHODS
597
598 ICOM_DEFINE(ICaptureGraphBuilder,IUnknown)
599 #undef ICOM_INTERFACE
600
601     /*** IUnknown methods ***/
602 #define ICaptureGraphBuilder_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
603 #define ICaptureGraphBuilder_AddRef(p) ICOM_CALL (AddRef,p)
604 #define ICaptureGraphBuilder_Release(p) ICOM_CALL (Release,p)
605     /*** ICaptureGraphBuilder methods ***/
606 #define ICaptureGraphBuilder_SetFiltergraph(p,a1) ICOM_CALL1(SetFiltergraph,p,a1)
607 #define ICaptureGraphBuilder_GetFiltergraph(p,a1) ICOM_CALL1(GetFiltergraph,p,a1)
608 #define ICaptureGraphBuilder_SetOutputFileName(p,a1,a2,a3,a4) ICOM_CALL4(SetOutputFileName,p,a1,a2,a3,a4)
609 #define ICaptureGraphBuilder_FindInterface(p,a1,a2,a3,a4) ICOM_CALL4(FindInterface,p,a1,a2,a3,a4)
610 #define ICaptureGraphBuilder_RenderStream(p,a1,a2,a3,a4) ICOM_CALL4(RenderStream,p,a1,a2,a3,a4)
611 #define ICaptureGraphBuilder_ControlStream(p,a1,a2,a3,a4,a5,a6) ICOM_CALL6(ControlStream,p,a1,a2,a3,a4,a5,a6)
612 #define ICaptureGraphBuilder_AllocCapFile(p,a1,a2) ICOM_CALL2(AllocCapFile,p,a1,a2)
613 #define ICaptureGraphBuilder_CopyCaptureFile(p,a1,a2,a3,a4) ICOM_CALL4(CopyCaptureFile,p,a1,a2,a3,a4)
614
615 /**************************************************************************
616  *
617  * ICaptureGraphBuilder2 interface
618  *
619  */
620
621 #define ICOM_INTERFACE ICaptureGraphBuilder2
622 #define ICaptureGraphBuilder2_METHODS \
623     ICOM_METHOD1(HRESULT,SetFiltergraph,IGraphBuilder*,a1) \
624     ICOM_METHOD1(HRESULT,GetFiltergraph,IGraphBuilder**,a1) \
625     ICOM_METHOD4(HRESULT,SetOutputFileName,const GUID*,a1,LPCOLESTR,a2,IBaseFilter**,a3,IFileSinkFilter**,a4) \
626     ICOM_METHOD5(HRESULT,FindInterface,const GUID*,a1,const GUID*,a2,IBaseFilter*,a3,REFIID,a4,void**,a5) \
627     ICOM_METHOD5(HRESULT,RenderStream,const GUID*,a1,const GUID*,a2,IUnknown*,a3,IBaseFilter*,a4,IBaseFilter*,a5) \
628     ICOM_METHOD7(HRESULT,ControlStream,const GUID*,a1,const GUID*,a2,IBaseFilter*,a3,REFERENCE_TIME*,a4,REFERENCE_TIME*,a5,WORD,a6,WORD,a7) \
629     ICOM_METHOD2(HRESULT,AllocCapFile,LPCOLESTR,a1,DWORDLONG,a2) \
630     ICOM_METHOD4(HRESULT,CopyCaptureFile,LPOLESTR,a1,LPOLESTR,a2,int,a3,IAMCopyCaptureFileProgress*,a4) \
631     ICOM_METHOD7(HRESULT,FindPin,IUnknown*,a1,PIN_DIRECTION,a2,const GUID*,a3,const GUID*,a4,BOOL,a5,int,a6,IPin**,a7)
632
633 #define ICaptureGraphBuilder2_IMETHODS \
634     IUnknown_IMETHODS \
635     ICaptureGraphBuilder2_METHODS
636
637 ICOM_DEFINE(ICaptureGraphBuilder2,IUnknown)
638 #undef ICOM_INTERFACE
639
640     /*** IUnknown methods ***/
641 #define ICaptureGraphBuilder2_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
642 #define ICaptureGraphBuilder2_AddRef(p) ICOM_CALL (AddRef,p)
643 #define ICaptureGraphBuilder2_Release(p) ICOM_CALL (Release,p)
644     /*** ICaptureGraphBuilder2 methods ***/
645 #define ICaptureGraphBuilder2_SetFiltergraph(p,a1) ICOM_CALL1(SetFiltergraph,p,a1)
646 #define ICaptureGraphBuilder2_GetFiltergraph(p,a1) ICOM_CALL1(GetFiltergraph,p,a1)
647 #define ICaptureGraphBuilder2_SetOutputFileName(p,a1,a2,a3,a4) ICOM_CALL4(SetOutputFileName,p,a1,a2,a3,a4)
648 #define ICaptureGraphBuilder2_FindInterface(p,a1,a2,a3,a4,a5) ICOM_CALL5(FindInterface,p,a1,a2,a3,a4,a5)
649 #define ICaptureGraphBuilder2_RenderStream(p,a1,a2,a3,a4,a5) ICOM_CALL5(RenderStream,p,a1,a2,a3,a4,a5)
650 #define ICaptureGraphBuilder2_ControlStream(p,a1,a2,a3,a4,a5,a6,a7) ICOM_CALL7(ControlStream,p,a1,a2,a3,a4,a5,a6,a7)
651 #define ICaptureGraphBuilder2_AllocCapFile(p,a1,a2) ICOM_CALL2(AllocCapFile,p,a1,a2)
652 #define ICaptureGraphBuilder2_CopyCaptureFile(p,a1,a2,a3,a4) ICOM_CALL4(CopyCaptureFile,p,a1,a2,a3,a4)
653 #define ICaptureGraphBuilder2_FindPin(p,a1,a2,a3,a4,a5,a6,a7) ICOM_CALL7(FindPin,p,a1,a2,a3,a4,a5,a6,a7)
654
655 /**************************************************************************
656  *
657  * ICreateDevEnum interface
658  *
659  */
660
661 #define ICOM_INTERFACE ICreateDevEnum
662 #define ICreateDevEnum_METHODS \
663     ICOM_METHOD3(HRESULT,CreateClassEnumerator,REFCLSID,a1,IEnumMoniker**,a2,DWORD,a3)
664
665 #define ICreateDevEnum_IMETHODS \
666     IUnknown_IMETHODS \
667     ICreateDevEnum_METHODS
668
669 ICOM_DEFINE(ICreateDevEnum,IUnknown)
670 #undef ICOM_INTERFACE
671
672     /*** IUnknown methods ***/
673 #define ICreateDevEnum_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
674 #define ICreateDevEnum_AddRef(p) ICOM_CALL (AddRef,p)
675 #define ICreateDevEnum_Release(p) ICOM_CALL (Release,p)
676     /*** ICreateDevEnum methods ***/
677 #define ICreateDevEnum_CreateClassEnumerator(p,a1,a2,a3) ICOM_CALL3(CreateClassEnumerator,p,a1,a2,a3)
678
679 /**************************************************************************
680  *
681  * IDistributorNotify interface
682  *
683  */
684
685 #define ICOM_INTERFACE IDistributorNotify
686 #define IDistributorNotify_METHODS \
687     ICOM_METHOD (HRESULT,Stop) \
688     ICOM_METHOD (HRESULT,Pause) \
689     ICOM_METHOD1(HRESULT,Run,REFERENCE_TIME,a1) \
690     ICOM_METHOD1(HRESULT,SetSyncSource,IReferenceClock*,a1) \
691     ICOM_METHOD (HRESULT,NotifyGraphChange)
692
693 #define IDistributorNotify_IMETHODS \
694     IUnknown_IMETHODS \
695     IDistributorNotify_METHODS
696
697 ICOM_DEFINE(IDistributorNotify,IUnknown)
698 #undef ICOM_INTERFACE
699
700     /*** IUnknown methods ***/
701 #define IDistributorNotify_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
702 #define IDistributorNotify_AddRef(p) ICOM_CALL (AddRef,p)
703 #define IDistributorNotify_Release(p) ICOM_CALL (Release,p)
704     /*** IDistributorNotify methods ***/
705 #define IDistributorNotify_Stop(p) ICOM_CALL (Stop,p)
706 #define IDistributorNotify_Pause(p) ICOM_CALL (Pause,p)
707 #define IDistributorNotify_Run(p,a1) ICOM_CALL1(Run,p,a1)
708 #define IDistributorNotify_SetSyncSource(p,a1) ICOM_CALL1(SetSyncSource,p,a1)
709 #define IDistributorNotify_NotifyGraphChange(p) ICOM_CALL (NotifyGraphChange,p)
710
711 /**************************************************************************
712  *
713  * IDVSplitter interface
714  *
715  */
716
717 #define ICOM_INTERFACE IDVSplitter
718 #define IDVSplitter_METHODS \
719     ICOM_METHOD1(HRESULT,DiscardAlternateVideoFrames,int,a1)
720
721 #define IDVSplitter_IMETHODS \
722     IUnknown_IMETHODS \
723     IDVSplitter_METHODS
724
725 ICOM_DEFINE(IDVSplitter,IUnknown)
726 #undef ICOM_INTERFACE
727
728     /*** IUnknown methods ***/
729 #define IDVSplitter_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
730 #define IDVSplitter_AddRef(p) ICOM_CALL (AddRef,p)
731 #define IDVSplitter_Release(p) ICOM_CALL (Release,p)
732     /*** IDVSplitter methods ***/
733 #define IDVSplitter_DiscardAlternateVideoFrames(p,a1) ICOM_CALL1(DiscardAlternateVideoFrames,p,a1)
734
735 /**************************************************************************
736  *
737  * IEnumFilters interface
738  *
739  */
740
741 #define ICOM_INTERFACE IEnumFilters
742 #define IEnumFilters_METHODS \
743     ICOM_METHOD3(HRESULT,Next,ULONG,a1,IBaseFilter**,a2,ULONG*,a3) \
744     ICOM_METHOD1(HRESULT,Skip,ULONG,a1) \
745     ICOM_METHOD (HRESULT,Reset) \
746     ICOM_METHOD1(HRESULT,Clone,IEnumFilters**,a1)
747
748 #define IEnumFilters_IMETHODS \
749     IUnknown_IMETHODS \
750     IEnumFilters_METHODS
751
752 ICOM_DEFINE(IEnumFilters,IUnknown)
753 #undef ICOM_INTERFACE
754
755     /*** IUnknown methods ***/
756 #define IEnumFilters_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
757 #define IEnumFilters_AddRef(p) ICOM_CALL (AddRef,p)
758 #define IEnumFilters_Release(p) ICOM_CALL (Release,p)
759     /*** IEnumFilters methods ***/
760 #define IEnumFilters_Next(p,a1,a2,a3) ICOM_CALL3(Next,p,a1,a2,a3)
761 #define IEnumFilters_Skip(p,a1) ICOM_CALL1(Skip,p,a1)
762 #define IEnumFilters_Reset(p) ICOM_CALL (Reset,p)
763 #define IEnumFilters_Clone(p,a1) ICOM_CALL1(Clone,p,a1)
764
765 /**************************************************************************
766  *
767  * IEnumMediaTypes interface
768  *
769  */
770
771 #define ICOM_INTERFACE IEnumMediaTypes
772 #define IEnumMediaTypes_METHODS \
773     ICOM_METHOD3(HRESULT,Next,ULONG,a1,AM_MEDIA_TYPE**,a2,ULONG*,a3) \
774     ICOM_METHOD1(HRESULT,Skip,ULONG,a1) \
775     ICOM_METHOD (HRESULT,Reset) \
776     ICOM_METHOD1(HRESULT,Clone,IEnumMediaTypes**,a1)
777
778 #define IEnumMediaTypes_IMETHODS \
779     IUnknown_IMETHODS \
780     IEnumMediaTypes_METHODS
781
782 ICOM_DEFINE(IEnumMediaTypes,IUnknown)
783 #undef ICOM_INTERFACE
784
785     /*** IUnknown methods ***/
786 #define IEnumMediaTypes_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
787 #define IEnumMediaTypes_AddRef(p) ICOM_CALL (AddRef,p)
788 #define IEnumMediaTypes_Release(p) ICOM_CALL (Release,p)
789     /*** IEnumMediaTypes methods ***/
790 #define IEnumMediaTypes_Next(p,a1,a2,a3) ICOM_CALL3(Next,p,a1,a2,a3)
791 #define IEnumMediaTypes_Skip(p,a1) ICOM_CALL1(Skip,p,a1)
792 #define IEnumMediaTypes_Reset(p) ICOM_CALL (Reset,p)
793 #define IEnumMediaTypes_Clone(p,a1) ICOM_CALL1(Clone,p,a1)
794
795 /**************************************************************************
796  *
797  * IEnumPins interface
798  *
799  */
800
801 #define ICOM_INTERFACE IEnumPins
802 #define IEnumPins_METHODS \
803     ICOM_METHOD3(HRESULT,Next,ULONG,a1,IPin**,a2,ULONG*,a3) \
804     ICOM_METHOD1(HRESULT,Skip,ULONG,a1) \
805     ICOM_METHOD (HRESULT,Reset) \
806     ICOM_METHOD1(HRESULT,Clone,IEnumPins**,a1)
807
808 #define IEnumPins_IMETHODS \
809     IUnknown_IMETHODS \
810     IEnumPins_METHODS
811
812 ICOM_DEFINE(IEnumPins,IUnknown)
813 #undef ICOM_INTERFACE
814
815     /*** IUnknown methods ***/
816 #define IEnumPins_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
817 #define IEnumPins_AddRef(p) ICOM_CALL (AddRef,p)
818 #define IEnumPins_Release(p) ICOM_CALL (Release,p)
819     /*** IEnumPins methods ***/
820 #define IEnumPins_Next(p,a1,a2,a3) ICOM_CALL3(Next,p,a1,a2,a3)
821 #define IEnumPins_Skip(p,a1) ICOM_CALL1(Skip,p,a1)
822 #define IEnumPins_Reset(p) ICOM_CALL (Reset,p)
823 #define IEnumPins_Clone(p,a1) ICOM_CALL1(Clone,p,a1)
824
825 /**************************************************************************
826  *
827  * IFileSinkFilter interface
828  *
829  */
830
831 #define ICOM_INTERFACE IFileSinkFilter
832 #define IFileSinkFilter_METHODS \
833     ICOM_METHOD2(HRESULT,SetFileName,LPCOLESTR,a1,const AM_MEDIA_TYPE*,a2) \
834     ICOM_METHOD2(HRESULT,GetCurFile,LPOLESTR*,a1,AM_MEDIA_TYPE*,a2)
835
836 #define IFileSinkFilter_IMETHODS \
837     IUnknown_IMETHODS \
838     IFileSinkFilter_METHODS
839
840 ICOM_DEFINE(IFileSinkFilter,IUnknown)
841 #undef ICOM_INTERFACE
842
843     /*** IUnknown methods ***/
844 #define IFileSinkFilter_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
845 #define IFileSinkFilter_AddRef(p) ICOM_CALL (AddRef,p)
846 #define IFileSinkFilter_Release(p) ICOM_CALL (Release,p)
847     /*** IFileSinkFilter methods ***/
848 #define IFileSinkFilter_SetFileName(p,a1,a2) ICOM_CALL2(SetFileName,p,a1,a2)
849 #define IFileSinkFilter_GetCurFile(p,a1,a2) ICOM_CALL2(GetCurFile,p,a1,a2)
850
851 /**************************************************************************
852  *
853  * IFileSinkFilter2 interface
854  *
855  */
856
857 #define ICOM_INTERFACE IFileSinkFilter2
858 #define IFileSinkFilter2_METHODS \
859     ICOM_METHOD1(HRESULT,SetMode,DWORD,a1) \
860     ICOM_METHOD1(HRESULT,GetMode,DWORD*,a1)
861
862 #define IFileSinkFilter2_IMETHODS \
863     IFileSinkFilter_IMETHODS \
864     IFileSinkFilter2_METHODS
865
866 ICOM_DEFINE(IFileSinkFilter2,IFileSinkFilter)
867 #undef ICOM_INTERFACE
868
869     /*** IUnknown methods ***/
870 #define IFileSinkFilter2_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
871 #define IFileSinkFilter2_AddRef(p) ICOM_CALL (AddRef,p)
872 #define IFileSinkFilter2_Release(p) ICOM_CALL (Release,p)
873     /*** IFileSinkFilter methods ***/
874 #define IFileSinkFilter2_SetFileName(p,a1,a2) ICOM_CALL2(SetFileName,p,a1,a2)
875 #define IFileSinkFilter2_GetCurFile(p,a1,a2) ICOM_CALL2(GetCurFile,p,a1,a2)
876     /*** IFileSinkFilter2 methods ***/
877 #define IFileSinkFilter2_SetMode(p,a1) ICOM_CALL1(SetMode,p,a1)
878 #define IFileSinkFilter2_GetMode(p,a1) ICOM_CALL1(GetMode,p,a1)
879
880 /**************************************************************************
881  *
882  * IFileSourceFilter interface
883  *
884  */
885
886 #define ICOM_INTERFACE IFileSourceFilter
887 #define IFileSourceFilter_METHODS \
888     ICOM_METHOD2(HRESULT,Load,LPCOLESTR,a1,const AM_MEDIA_TYPE*,a2) \
889     ICOM_METHOD2(HRESULT,GetCurFile,LPOLESTR*,a1,AM_MEDIA_TYPE*,a2)
890
891 #define IFileSourceFilter_IMETHODS \
892     IUnknown_IMETHODS \
893     IFileSourceFilter_METHODS
894
895 ICOM_DEFINE(IFileSourceFilter,IUnknown)
896 #undef ICOM_INTERFACE
897
898     /*** IUnknown methods ***/
899 #define IFileSourceFilter_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
900 #define IFileSourceFilter_AddRef(p) ICOM_CALL (AddRef,p)
901 #define IFileSourceFilter_Release(p) ICOM_CALL (Release,p)
902     /*** IFileSourceFilter methods ***/
903 #define IFileSourceFilter_Load(p,a1,a2) ICOM_CALL2(Load,p,a1,a2)
904 #define IFileSourceFilter_GetCurFile(p,a1,a2) ICOM_CALL2(GetCurFile,p,a1,a2)
905
906 /**************************************************************************
907  *
908  * IFilterChain interface
909  *
910  */
911
912 #define ICOM_INTERFACE IFilterChain
913 #define IFilterChain_METHODS \
914     ICOM_METHOD2(HRESULT,StartChain,IBaseFilter*,a1,IBaseFilter*,a2) \
915     ICOM_METHOD2(HRESULT,PauseChain,IBaseFilter*,a1,IBaseFilter*,a2) \
916     ICOM_METHOD2(HRESULT,StopChain,IBaseFilter*,a1,IBaseFilter*,a2) \
917     ICOM_METHOD2(HRESULT,RemoveChain,IBaseFilter*,a1,IBaseFilter*,a2)
918
919 #define IFilterChain_IMETHODS \
920     IUnknown_IMETHODS \
921     IFilterChain_METHODS
922
923 ICOM_DEFINE(IFilterChain,IUnknown)
924 #undef ICOM_INTERFACE
925
926     /*** IUnknown methods ***/
927 #define IFilterChain_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
928 #define IFilterChain_AddRef(p) ICOM_CALL (AddRef,p)
929 #define IFilterChain_Release(p) ICOM_CALL (Release,p)
930     /*** IFilterChain methods ***/
931 #define IFilterChain_StartChain(p,a1,a2) ICOM_CALL2(StartChain,p,a1,a2)
932 #define IFilterChain_PauseChain(p,a1,a2) ICOM_CALL2(PauseChain,p,a1,a2)
933 #define IFilterChain_StopChain(p,a1,a2) ICOM_CALL2(StopChain,p,a1,a2)
934 #define IFilterChain_RemoveChain(p,a1,a2) ICOM_CALL2(RemoveChain,p,a1,a2)
935
936 /**************************************************************************
937  *
938  * IFilterMapper interface
939  *
940  */
941
942 #define ICOM_INTERFACE IFilterMapper
943 #define IFilterMapper_METHODS \
944     ICOM_METHOD3(HRESULT,RegisterFilter,CLSID,a1,LPCWSTR,a2,DWORD,a3) \
945     ICOM_METHOD3(HRESULT,RegisterFilterInstance,CLSID,a1,LPCWSTR,a2,CLSID*,a3) \
946     ICOM_METHOD8(HRESULT,RegisterPin,CLSID,a1,LPCWSTR,a2,BOOL,a3,BOOL,a4,BOOL,a5,BOOL,a6,CLSID,a7,LPCWSTR,a8) \
947     ICOM_METHOD4(HRESULT,RegisterPinType,CLSID,a1,LPCWSTR,a2,CLSID,a3,CLSID,a4) \
948     ICOM_METHOD1(HRESULT,UnregisterFilter,CLSID,a1) \
949     ICOM_METHOD1(HRESULT,UnregisterFilterInstance,CLSID,a1) \
950     ICOM_METHOD2(HRESULT,UnregisterPin,CLSID,a1,LPCWSTR,a2) \
951     ICOM_METHOD9(HRESULT,EnumMatchingFilters,IEnumRegFilters**,a1,DWORD,a2,BOOL,a3,CLSID,a4,CLSID,a5,BOOL,a6,BOOL,a7,CLSID,a8,CLSID,a9)
952
953 #define IFilterMapper_IMETHODS \
954     IUnknown_IMETHODS \
955     IFilterMapper_METHODS
956
957 ICOM_DEFINE(IFilterMapper,IUnknown)
958 #undef ICOM_INTERFACE
959
960     /*** IUnknown methods ***/
961 #define IFilterMapper_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
962 #define IFilterMapper_AddRef(p) ICOM_CALL (AddRef,p)
963 #define IFilterMapper_Release(p) ICOM_CALL (Release,p)
964     /*** IFilterMapper methods ***/
965 #define IFilterMapper_RegisterFilter(p,a1,a2,a3) ICOM_CALL3(RegisterFilter,p,a1,a2,a3)
966 #define IFilterMapper_RegisterFilterInstance(p,a1,a2,a3) ICOM_CALL3(RegisterFilterInstance,p,a1,a2,a3)
967 #define IFilterMapper_RegisterPin(p,a1,a2,a3,a4,a5,a6,a7,a8) ICOM_CALL8(RegisterPin,p,a1,a2,a3,a4,a5,a6,a7,a8)
968 #define IFilterMapper_RegisterPinType(p,a1,a2,a3,a4) ICOM_CALL4(RegisterPinType,p,a1,a2,a3,a4)
969 #define IFilterMapper_UnregisterFilter(p,a1) ICOM_CALL1(UnregisterFilter,p,a1)
970 #define IFilterMapper_UnregisterFilterInstance(p,a1) ICOM_CALL1(UnregisterFilterInstance,p,a1)
971 #define IFilterMapper_UnregisterPin(p,a1,a2) ICOM_CALL2(UnregisterPin,p,a1,a2)
972 #define IFilterMapper_EnumMatchingFilters(p,a1,a2,a3,a4,a5,a6,a7,a8,a9) ICOM_CALL9(EnumMatchingFilters,p,a1,a2,a3,a4,a5,a6,a7,a8,a9)
973
974 /**************************************************************************
975  *
976  * IFilterMapper2 interface
977  *
978  */
979
980 #define ICOM_INTERFACE IFilterMapper2
981 #define IFilterMapper2_METHODS \
982     ICOM_METHOD3(HRESULT,CreateCategory,REFCLSID,a1,DWORD,a2,LPCWSTR,a3) \
983     ICOM_METHOD3(HRESULT,UnregisterFilter,const CLSID*,a1,const OLECHAR*,a2,REFCLSID,a3) \
984     ICOM_METHOD6(HRESULT,RegisterFilter,REFCLSID,a1,LPCWSTR,a2,IMoniker**,a3,const CLSID*,a4,const OLECHAR*,a5,const REGFILTER2*,a6) \
985     ICOM_METHOD15(HRESULT,EnumMatchingFilters,IEnumMoniker**,a1,DWORD,a2,BOOL,a3,DWORD,a4,BOOL,a5,DWORD,a6,const GUID*,a7,const REGPINMEDIUM*,a8,const CLSID*,a9,BOOL,a10,BOOL,a11,DWORD,a12,const GUID*,a13,const REGPINMEDIUM*,a14,const CLSID*,a15)
986
987 #define IFilterMapper2_IMETHODS \
988     IUnknown_IMETHODS \
989     IFilterMapper2_METHODS
990
991 ICOM_DEFINE(IFilterMapper2,IUnknown)
992 #undef ICOM_INTERFACE
993
994     /*** IUnknown methods ***/
995 #define IFilterMapper2_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
996 #define IFilterMapper2_AddRef(p) ICOM_CALL (AddRef,p)
997 #define IFilterMapper2_Release(p) ICOM_CALL (Release,p)
998     /*** IFilterMapper2 methods ***/
999 #define IFilterMapper2_CreateCategory(p,a1,a2,a3) ICOM_CALL3(CreateCategory,p,a1,a2,a3)
1000 #define IFilterMapper2_UnregisterFilter(p,a1,a2,a3) ICOM_CALL3(UnregisterFilter,p,a1,a2,a3)
1001 #define IFilterMapper2_RegisterFilter(p,a1,a2,a3,a4,a5,a6) ICOM_CALL6(RegisterFilter,p,a1,a2,a3,a4,a5,a6)
1002 #define IFilterMapper2_EnumMatchingFilters(p,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15) ICOM_CALL15(EnumMatchingFilters,p,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15)
1003
1004 /**************************************************************************
1005  *
1006  * IFilterMapper3 interface
1007  *
1008  */
1009
1010 #define ICOM_INTERFACE IFilterMapper3
1011 #define IFilterMapper3_METHODS \
1012     ICOM_METHOD1(HRESULT,GetICreateDevEnum,ICreateDevEnum**,a1)
1013
1014 #define IFilterMapper3_IMETHODS \
1015     IFilterMapper2_IMETHODS \
1016     IFilterMapper3_METHODS
1017
1018 ICOM_DEFINE(IFilterMapper3,IFilterMapper2)
1019 #undef ICOM_INTERFACE
1020
1021     /*** IUnknown methods ***/
1022 #define IFilterMapper3_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1023 #define IFilterMapper3_AddRef(p) ICOM_CALL (AddRef,p)
1024 #define IFilterMapper3_Release(p) ICOM_CALL (Release,p)
1025     /*** IFilterMapper2 methods ***/
1026 #define IFilterMapper3_CreateCategory(p,a1,a2,a3) ICOM_CALL3(CreateCategory,p,a1,a2,a3)
1027 #define IFilterMapper3_UnregisterFilter(p,a1,a2,a3) ICOM_CALL3(UnregisterFilter,p,a1,a2,a3)
1028 #define IFilterMapper3_RegisterFilter(p,a1,a2,a3,a4,a5,a6) ICOM_CALL6(RegisterFilter,p,a1,a2,a3,a4,a5,a6)
1029 #define IFilterMapper3_EnumMatchingFilters(p,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15) ICOM_CALL15(EnumMatchingFilters,p,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15)
1030     /*** IFilterMapper3 methods ***/
1031 #define IFilterMapper3_GetICreateDevEnum(p,a1) ICOM_CALL1(GetICreateDevEnum,p,a1)
1032
1033 /**************************************************************************
1034  *
1035  * IFilterGraph interface
1036  *
1037  */
1038
1039 #define ICOM_INTERFACE IFilterGraph
1040 #define IFilterGraph_METHODS \
1041     ICOM_METHOD2(HRESULT,AddFilter,IBaseFilter*,a1,LPCWSTR,a2) \
1042     ICOM_METHOD1(HRESULT,RemoveFilter,IBaseFilter*,a1) \
1043     ICOM_METHOD1(HRESULT,EnumFilters,IEnumFilters**,a1) \
1044     ICOM_METHOD2(HRESULT,FindFilterByName,LPCWSTR,a1,IBaseFilter**,a2) \
1045     ICOM_METHOD3(HRESULT,ConnectDirect,IPin*,a1,IPin*,a2,const AM_MEDIA_TYPE*,a3) \
1046     ICOM_METHOD1(HRESULT,Reconnect,IPin*,a1) \
1047     ICOM_METHOD1(HRESULT,Disconnect,IPin*,a1) \
1048     ICOM_METHOD (HRESULT,SetDefaultSyncSource)
1049
1050 #define IFilterGraph_IMETHODS \
1051     IUnknown_IMETHODS \
1052     IFilterGraph_METHODS
1053
1054 ICOM_DEFINE(IFilterGraph,IUnknown)
1055 #undef ICOM_INTERFACE
1056
1057     /*** IUnknown methods ***/
1058 #define IFilterGraph_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1059 #define IFilterGraph_AddRef(p) ICOM_CALL (AddRef,p)
1060 #define IFilterGraph_Release(p) ICOM_CALL (Release,p)
1061     /*** IFilterGraph methods ***/
1062 #define IFilterGraph_AddFilter(p,a1,a2) ICOM_CALL2(AddFilter,p,a1,a2)
1063 #define IFilterGraph_RemoveFilter(p,a1) ICOM_CALL1(RemoveFilter,p,a1)
1064 #define IFilterGraph_EnumFilters(p,a1) ICOM_CALL1(EnumFilters,p,a1)
1065 #define IFilterGraph_FindFilterByName(p,a1,a2) ICOM_CALL2(FindFilterByName,p,a1,a2)
1066 #define IFilterGraph_ConnectDirect(p,a1,a2,a3) ICOM_CALL3(ConnectDirect,p,a1,a2,a3)
1067 #define IFilterGraph_Reconnect(p,a1) ICOM_CALL1(Reconnect,p,a1)
1068 #define IFilterGraph_Disconnect(p,a1) ICOM_CALL1(Disconnect,p,a1)
1069 #define IFilterGraph_SetDefaultSyncSource(p) ICOM_CALL (SetDefaultSyncSource,p)
1070
1071 /**************************************************************************
1072  *
1073  * IGraphBuilder interface
1074  *
1075  */
1076
1077 #define ICOM_INTERFACE IGraphBuilder
1078 #define IGraphBuilder_METHODS \
1079     ICOM_METHOD2(HRESULT,Connect,IPin*,a1,IPin*,a2) \
1080     ICOM_METHOD1(HRESULT,Render,IPin*,a1) \
1081     ICOM_METHOD2(HRESULT,RenderFile,LPCWSTR,a1,LPCWSTR,a2) \
1082     ICOM_METHOD3(HRESULT,AddSourceFilter,LPCWSTR,a1,LPCWSTR,a2,IBaseFilter**,a3) \
1083     ICOM_METHOD1(HRESULT,SetLogFile,DWORD_PTR,a1) \
1084     ICOM_METHOD (HRESULT,Abort) \
1085     ICOM_METHOD (HRESULT,ShouldOperationContinue)
1086
1087 #define IGraphBuilder_IMETHODS \
1088     IFilterGraph_IMETHODS \
1089     IGraphBuilder_METHODS
1090
1091 ICOM_DEFINE(IGraphBuilder,IFilterGraph)
1092 #undef ICOM_INTERFACE
1093
1094     /*** IUnknown methods ***/
1095 #define IGraphBuilder_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1096 #define IGraphBuilder_AddRef(p) ICOM_CALL (AddRef,p)
1097 #define IGraphBuilder_Release(p) ICOM_CALL (Release,p)
1098     /*** IFilterGraph methods ***/
1099 #define IGraphBuilder_AddFilter(p,a1,a2) ICOM_CALL2(AddFilter,p,a1,a2)
1100 #define IGraphBuilder_RemoveFilter(p,a1) ICOM_CALL1(RemoveFilter,p,a1)
1101 #define IGraphBuilder_EnumFilters(p,a1) ICOM_CALL1(EnumFilters,p,a1)
1102 #define IGraphBuilder_FindFilterByName(p,a1,a2) ICOM_CALL2(FindFilterByName,p,a1,a2)
1103 #define IGraphBuilder_ConnectDirect(p,a1,a2,a3) ICOM_CALL3(ConnectDirect,p,a1,a2,a3)
1104 #define IGraphBuilder_Reconnect(p,a1) ICOM_CALL1(Reconnect,p,a1)
1105 #define IGraphBuilder_Disconnect(p,a1) ICOM_CALL1(Disconnect,p,a1)
1106 #define IGraphBuilder_SetDefaultSyncSource(p,a1) ICOM_CALL1(SetDefaultSyncSource,p,a1)
1107     /*** IGraphBuilder methods ***/
1108 #define IGraphBuilder_Connect(p,a1,a2) ICOM_CALL2(Connect,p,a1,a2)
1109 #define IGraphBuilder_Render(p,a1) ICOM_CALL1(Render,p,a1)
1110 #define IGraphBuilder_RenderFile(p,a1,a2) ICOM_CALL2(RenderFile,p,a1,a2)
1111 #define IGraphBuilder_AddSourceFilter(p,a1,a2,a3) ICOM_CALL3(AddSourceFilter,p,a1,a2,a3)
1112 #define IGraphBuilder_SetLogFile(p,a1) ICOM_CALL1(SetLogFile,p,a1)
1113 #define IGraphBuilder_Abort(p) ICOM_CALL (Abort,p)
1114 #define IGraphBuilder_ShouldOperationContinue(p) ICOM_CALL (ShouldOperationContinue,p)
1115
1116 /**************************************************************************
1117  *
1118  * IFilterGraph2 interface
1119  *
1120  */
1121
1122 #define ICOM_INTERFACE IFilterGraph2
1123 #define IFilterGraph2_METHODS \
1124     ICOM_METHOD4(HRESULT,AddSourceFilterForMoniker,IMoniker*,a1,IBindCtx*,a2,LPCWSTR,a3,IBaseFilter**,a4) \
1125     ICOM_METHOD2(HRESULT,ReconnectEx,IPin*,a1,const AM_MEDIA_TYPE*,a2) \
1126     ICOM_METHOD3(HRESULT,RenderEx,IPin*,a1,DWORD,a2,DWORD*,a3)
1127
1128 #define IFilterGraph2_IMETHODS \
1129     IGraphBuilder_IMETHODS \
1130     IFilterGraph2_METHODS
1131
1132 ICOM_DEFINE(IFilterGraph2,IGraphBuilder)
1133 #undef ICOM_INTERFACE
1134
1135     /*** IUnknown methods ***/
1136 #define IFilterGraph2_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1137 #define IFilterGraph2_AddRef(p) ICOM_CALL (AddRef,p)
1138 #define IFilterGraph2_Release(p) ICOM_CALL (Release,p)
1139     /*** IFilterGraph methods ***/
1140 #define IFilterGraph2_AddFilter(p,a1,a2) ICOM_CALL2(AddFilter,p,a1,a2)
1141 #define IFilterGraph2_RemoveFilter(p,a1) ICOM_CALL1(RemoveFilter,p,a1)
1142 #define IFilterGraph2_EnumFilters(p,a1) ICOM_CALL1(EnumFilters,p,a1)
1143 #define IFilterGraph2_FindFilterByName(p,a1,a2) ICOM_CALL2(FindFilterByName,p,a1,a2)
1144 #define IFilterGraph2_ConnectDirect(p,a1,a2,a3) ICOM_CALL3(ConnectDirect,p,a1,a2,a3)
1145 #define IFilterGraph2_Reconnect(p,a1) ICOM_CALL1(Reconnect,p,a1)
1146 #define IFilterGraph2_Disconnect(p,a1) ICOM_CALL1(Disconnect,p,a1)
1147 #define IFilterGraph2_SetDefaultSyncSource(p,a1) ICOM_CALL1(SetDefaultSyncSource,p,a1)
1148     /*** IGraphBuilder methods ***/
1149 #define IFilterGraph2_Connect(p,a1,a2) ICOM_CALL2(Connect,p,a1,a2)
1150 #define IFilterGraph2_Render(p,a1) ICOM_CALL1(Render,p,a1)
1151 #define IFilterGraph2_RenderFile(p,a1,a2) ICOM_CALL2(RenderFile,p,a1,a2)
1152 #define IFilterGraph2_AddSourceFilter(p,a1,a2,a3) ICOM_CALL3(AddSourceFilter,p,a1,a2,a3)
1153 #define IFilterGraph2_SetLogFile(p,a1) ICOM_CALL1(SetLogFile,p,a1)
1154 #define IFilterGraph2_Abort(p) ICOM_CALL (Abort,p)
1155 #define IFilterGraph2_ShouldOperationContinue(p) ICOM_CALL (ShouldOperationContinue,p)
1156     /*** IFilterGraph2 methods ***/
1157 #define IFilterGraph2_AddSourceFilterForMoniker(p,a1,a2,a3,a4) ICOM_CALL4(AddSourceFilterForMoniker,p,a1,a2,a3,a4)
1158 #define IFilterGraph2_ReconnectEx(p,a1,a2) ICOM_CALL2(ReconnectEx,p,a1,a2)
1159 #define IFilterGraph2_RenderEx(p,a1,a2,a3) ICOM_CALL3(RenderEx,p,a1,a2,a3)
1160
1161 /**************************************************************************
1162  *
1163  * IGraphConfig interface
1164  *
1165  */
1166
1167 #define ICOM_INTERFACE IGraphConfig
1168 #define IGraphConfig_METHODS \
1169     ICOM_METHOD6(HRESULT,Reconnect,IPin*,a1,IPin*,a2,const AM_MEDIA_TYPE*,a3,IBaseFilter*,a4,HANDLE,a5,DWORD,a6) \
1170     ICOM_METHOD4(HRESULT,Reconfigure,IGraphConfigCallback*,a1,PVOID,a2,DWORD,a3,HANDLE,a4) \
1171     ICOM_METHOD1(HRESULT,AddFilterToCache,IBaseFilter*,a1) \
1172     ICOM_METHOD1(HRESULT,EnumCacheFilter,IEnumFilters**,a1) \
1173     ICOM_METHOD1(HRESULT,RemoveFilterFromCache,IBaseFilter*,a1) \
1174     ICOM_METHOD1(HRESULT,GetStartTime,REFERENCE_TIME*,a1) \
1175     ICOM_METHOD3(HRESULT,PushThroughData,IPin*,a1,IPinConnection*,a2,HANDLE,a3) \
1176     ICOM_METHOD2(HRESULT,SetFilterFlags,IBaseFilter*,a1,DWORD,a2) \
1177     ICOM_METHOD2(HRESULT,GetFilterFlags,IBaseFilter*,a1,DWORD*,a2) \
1178     ICOM_METHOD2(HRESULT,RemoveFilterEx,IBaseFilter*,a1,DWORD,a2)
1179
1180 #define IGraphConfig_IMETHODS \
1181     IUnknown_IMETHODS \
1182     IGraphConfig_METHODS
1183
1184 ICOM_DEFINE(IGraphConfig,IUnknown)
1185 #undef ICOM_INTERFACE
1186
1187     /*** IUnknown methods ***/
1188 #define IGraphConfig_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1189 #define IGraphConfig_AddRef(p) ICOM_CALL (AddRef,p)
1190 #define IGraphConfig_Release(p) ICOM_CALL (Release,p)
1191     /*** IGraphConfig methods ***/
1192 #define IGraphConfig_Reconnect(p,a1,a2,a3,a4,a5,a6) ICOM_CALL6(Reconnect,p,a1,a2,a3,a4,a5,a6)
1193 #define IGraphConfig_Reconfigure(p,a1,a2,a3,a4) ICOM_CALL4(Reconfigure,p,a1,a2,a3,a4)
1194 #define IGraphConfig_AddFilterToCache(p,a1) ICOM_CALL1(AddFilterToCache,p,a1)
1195 #define IGraphConfig_EnumCacheFilter(p,a1) ICOM_CALL1(EnumCacheFilter,p,a1)
1196 #define IGraphConfig_RemoveFilterFromCache(p,a1) ICOM_CALL1(RemoveFilterFromCache,p,a1)
1197 #define IGraphConfig_GetStartTime(p,a1) ICOM_CALL1(GetStartTime,p,a1)
1198 #define IGraphConfig_PushThroughData(p,a1,a2,a3) ICOM_CALL3(PushThroughData,p,a1,a2,a3)
1199 #define IGraphConfig_SetFilterFlags(p,a1,a2) ICOM_CALL2(SetFilterFlags,p,a1,a2)
1200 #define IGraphConfig_GetFilterFlags(p,a1,a2) ICOM_CALL2(GetFilterFlags,p,a1,a2)
1201 #define IGraphConfig_RemoveFilterEx(p,a1,a2) ICOM_CALL2(RemoveFilterEx,p,a1,a2)
1202
1203 /**************************************************************************
1204  *
1205  * IGraphConfigCallback interface
1206  *
1207  */
1208
1209 #define ICOM_INTERFACE IGraphConfigCallback
1210 #define IGraphConfigCallback_METHODS \
1211     ICOM_METHOD2(HRESULT,Reconfigure,PVOID,a1,DWORD,a2)
1212
1213 #define IGraphConfigCallback_IMETHODS \
1214     IUnknown_IMETHODS \
1215     IGraphConfigCallback_METHODS
1216
1217 ICOM_DEFINE(IGraphConfigCallback,IUnknown)
1218 #undef ICOM_INTERFACE
1219
1220     /*** IUnknown methods ***/
1221 #define IGraphConfigCallback_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1222 #define IGraphConfigCallback_AddRef(p) ICOM_CALL (AddRef,p)
1223 #define IGraphConfigCallback_Release(p) ICOM_CALL (Release,p)
1224     /*** IGraphConfigCallback methods ***/
1225 #define IGraphConfigCallback_Reconfigure(p,a1,a2) ICOM_CALL2(Reconfigure,p,a1,a2)
1226
1227 /**************************************************************************
1228  *
1229  * IGraphVersion interface
1230  *
1231  */
1232
1233 #define ICOM_INTERFACE IGraphVersion
1234 #define IGraphVersion_METHODS \
1235     ICOM_METHOD1(HRESULT,QueryVersion,LONG*,a1)
1236
1237 #define IGraphVersion_IMETHODS \
1238     IUnknown_IMETHODS \
1239     IGraphVersion_METHODS
1240
1241 ICOM_DEFINE(IGraphVersion,IUnknown)
1242 #undef ICOM_INTERFACE
1243
1244     /*** IUnknown methods ***/
1245 #define IGraphVersion_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1246 #define IGraphVersion_AddRef(p) ICOM_CALL (AddRef,p)
1247 #define IGraphVersion_Release(p) ICOM_CALL (Release,p)
1248     /*** IGraphVersion methods ***/
1249 #define IGraphVersion_QueryVersion(p,a1) ICOM_CALL1(QueryVersion,p,a1)
1250
1251
1252 /**************************************************************************
1253  *
1254  * IMediaEventSink interface
1255  *
1256  */
1257
1258 #define ICOM_INTERFACE IMediaEventSink
1259 #define IMediaEventSink_METHODS \
1260     ICOM_METHOD3(HRESULT,Notify,long,a1,LONG_PTR,a2,LONG_PTR,a3)
1261
1262 #define IMediaEventSink_IMETHODS \
1263     IUnknown_IMETHODS \
1264     IMediaEventSink_METHODS
1265
1266 ICOM_DEFINE(IMediaEventSink,IUnknown)
1267 #undef ICOM_INTERFACE
1268
1269     /*** IUnknown methods ***/
1270 #define IMediaEventSink_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1271 #define IMediaEventSink_AddRef(p) ICOM_CALL (AddRef,p)
1272 #define IMediaEventSink_Release(p) ICOM_CALL (Release,p)
1273     /*** IMediaEventSink methods ***/
1274 #define IMediaEventSink_Notify(p,a1,a2,a3) ICOM_CALL3(Notify,p,a1,a2,a3)
1275
1276 /**************************************************************************
1277  *
1278  * IMediaPropertyBag interface
1279  *
1280  */
1281
1282 #define ICOM_INTERFACE IMediaPropertyBag
1283 #define IMediaPropertyBag_METHODS \
1284     ICOM_METHOD3(HRESULT,EnumProperty,ULONG,a1,VARIANT*,a2,VARIANT*,a3)
1285
1286 #define IMediaPropertyBag_IMETHODS \
1287     IPropertyBag_IMETHODS \
1288     IMediaPropertyBag_METHODS
1289
1290 ICOM_DEFINE(IMediaPropertyBag,IPropertyBag)
1291 #undef ICOM_INTERFACE
1292
1293     /*** IUnknown methods ***/
1294 #define IMediaPropertyBag_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1295 #define IMediaPropertyBag_AddRef(p) ICOM_CALL (AddRef,p)
1296 #define IMediaPropertyBag_Release(p) ICOM_CALL (Release,p)
1297     /*** IPropertyBag methods ***/
1298 #define IMediaPropertyBag_Read(p,a1,a2,a3) ICOM_CALL3(Read,p,a1,a2,a3)
1299 #define IMediaPropertyBag_Write(p,a1,a2) ICOM_CALL2(Write,p,a1,a2)
1300     /*** IMediaPropertyBag methods ***/
1301 #define IMediaPropertyBag_EnumProperty(p,a1,a2,a3) ICOM_CALL3(EnumProperty,p,a1,a2,a3)
1302
1303 /**************************************************************************
1304  *
1305  * IMediaSample interface
1306  *
1307  */
1308
1309 #define ICOM_INTERFACE IMediaSample
1310 #define IMediaSample_METHODS \
1311     ICOM_METHOD1(HRESULT,GetPointer,BYTE**,a1) \
1312     ICOM_METHOD (long,GetSize) \
1313     ICOM_METHOD2(HRESULT,GetTime,REFERENCE_TIME*,a1,REFERENCE_TIME*,a2) \
1314     ICOM_METHOD2(HRESULT,SetTime,REFERENCE_TIME*,a1,REFERENCE_TIME*,a2) \
1315     ICOM_METHOD (HRESULT,IsSyncPoint) \
1316     ICOM_METHOD1(HRESULT,SetSyncPoint,BOOL,a1) \
1317     ICOM_METHOD (HRESULT,IsPreroll) \
1318     ICOM_METHOD1(HRESULT,SetPreroll,BOOL,a1) \
1319     ICOM_METHOD (long,GetActualDataLength) \
1320     ICOM_METHOD1(HRESULT,SetActualDataLength,long,a1) \
1321     ICOM_METHOD1(HRESULT,GetMediaType,AM_MEDIA_TYPE**,a1) \
1322     ICOM_METHOD1(HRESULT,SetMediaType,AM_MEDIA_TYPE*,a1) \
1323     ICOM_METHOD (HRESULT,IsDiscontinuity) \
1324     ICOM_METHOD1(HRESULT,SetDiscontinuity,BOOL,a1) \
1325     ICOM_METHOD2(HRESULT,GetMediaTime,LONGLONG*,a1,LONGLONG*,a2) \
1326     ICOM_METHOD2(HRESULT,SetMediaTime,LONGLONG*,a1,LONGLONG*,a2)
1327
1328 #define IMediaSample_IMETHODS \
1329     IUnknown_IMETHODS \
1330     IMediaSample_METHODS
1331
1332 ICOM_DEFINE(IMediaSample,IUnknown)
1333 #undef ICOM_INTERFACE
1334
1335     /*** IUnknown methods ***/
1336 #define IMediaSample_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1337 #define IMediaSample_AddRef(p) ICOM_CALL (AddRef,p)
1338 #define IMediaSample_Release(p) ICOM_CALL (Release,p)
1339     /*** IMediaSample methods ***/
1340 #define IMediaSample_GetPointer(p,a1) ICOM_CALL1(GetPointer,p,a1)
1341 #define IMediaSample_GetSize(p) ICOM_CALL (GetSize,p)
1342 #define IMediaSample_GetTime(p,a1,a2) ICOM_CALL2(GetTime,p,a1,a2)
1343 #define IMediaSample_SetTime(p,a1,a2) ICOM_CALL2(SetTime,p,a1,a2)
1344 #define IMediaSample_IsSyncPoint(p) ICOM_CALL (IsSyncPoint,p)
1345 #define IMediaSample_SetSyncPoint(p,a1) ICOM_CALL1(SetSyncPoint,p,a1)
1346 #define IMediaSample_IsPreroll(p) ICOM_CALL (IsPreroll,p)
1347 #define IMediaSample_SetPreroll(p,a1) ICOM_CALL1(SetPreroll,p,a1)
1348 #define IMediaSample_GetActualDataLength(p) ICOM_CALL (GetActualDataLength,p)
1349 #define IMediaSample_SetActualDataLength(p,a1) ICOM_CALL1(SetActualDataLength,p,a1)
1350 #define IMediaSample_GetMediaType(p,a1) ICOM_CALL1(GetMediaType,p,a1)
1351 #define IMediaSample_SetMediaType(p,a1) ICOM_CALL1(SetMediaType,p,a1)
1352 #define IMediaSample_IsDiscontinuity(p) ICOM_CALL (IsDiscontinuity,p)
1353 #define IMediaSample_SetDiscontinuity(p,a1) ICOM_CALL1(SetDiscontinuity,p,a1)
1354 #define IMediaSample_GetMediaTime(p,a1,a2) ICOM_CALL2(GetMediaTime,p,a1,a2)
1355 #define IMediaSample_SetMediaTime(p,a1,a2) ICOM_CALL2(SetMediaTime,p,a1,a2)
1356
1357 /**************************************************************************
1358  *
1359  * IMediaSample2 interface
1360  *
1361  */
1362
1363 #define ICOM_INTERFACE IMediaSample2
1364 #define IMediaSample2_METHODS \
1365     ICOM_METHOD2(HRESULT,GetProperties,DWORD,a1,BYTE*,a2) \
1366     ICOM_METHOD2(HRESULT,SetProperties,DWORD,a1,const BYTE*,a2)
1367
1368 #define IMediaSample2_IMETHODS \
1369     IMediaSample_IMETHODS \
1370     IMediaSample2_METHODS
1371
1372 ICOM_DEFINE(IMediaSample2,IMediaSample)
1373 #undef ICOM_INTERFACE
1374
1375     /*** IUnknown methods ***/
1376 #define IMediaSample2_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1377 #define IMediaSample2_AddRef(p) ICOM_CALL (AddRef,p)
1378 #define IMediaSample2_Release(p) ICOM_CALL (Release,p)
1379     /*** IMediaSample methods ***/
1380 #define IMediaSample2_GetPointer(p,a1) ICOM_CALL1(GetPointer,p,a1)
1381 #define IMediaSample2_GetSize(p,a1) ICOM_CALL1(GetSize,p,a1)
1382 #define IMediaSample2_GetTime(p,a1,a2) ICOM_CALL2(GetTime,p,a1,a2)
1383 #define IMediaSample2_SetTime(p,a1,a2) ICOM_CALL2(SetTime,p,a1,a2)
1384 #define IMediaSample2_IsSyncPoint(p,a1) ICOM_CALL1(IsSyncPoint,p,a1)
1385 #define IMediaSample2_SetSyncPoint(p,a1) ICOM_CALL1(SetSyncPoint,p,a1)
1386 #define IMediaSample2_IsPreroll(p,a1) ICOM_CALL1(IsPreroll,p,a1)
1387 #define IMediaSample2_SetPreroll(p,a1) ICOM_CALL1(SetPreroll,p,a1)
1388 #define IMediaSample2_GetActualDataLength(p,a1) ICOM_CALL1(GetActualDataLength,p,a1)
1389 #define IMediaSample2_SetActualDataLength(p,a1) ICOM_CALL1(SetActualDataLength,p,a1)
1390 #define IMediaSample2_GetMediaType(p,a1) ICOM_CALL1(GetMediaType,p,a1)
1391 #define IMediaSample2_SetMediaType(p,a1) ICOM_CALL1(SetMediaType,p,a1)
1392 #define IMediaSample2_IsDiscontinuity(p,a1) ICOM_CALL1(IsDiscontinuity,p,a1)
1393 #define IMediaSample2_SetDiscontinuity(p,a1) ICOM_CALL1(SetDiscontinuity,p,a1)
1394 #define IMediaSample2_GetMediaTime(p,a1,a2) ICOM_CALL2(GetMediaTime,p,a1,a2)
1395 #define IMediaSample2_SetMediaTime(p,a1,a2) ICOM_CALL2(SetMediaTime,p,a1,a2)
1396     /*** IMediaSample2 methods ***/
1397 #define IMediaSample2_GetProperties(p,a1,a2) ICOM_CALL2(GetProperties,p,a1,a2)
1398 #define IMediaSample2_SetProperties(p,a1,a2) ICOM_CALL2(SetProperties,p,a1,a2)
1399
1400 /**************************************************************************
1401  *
1402  * IMediaSeeking interface
1403  *
1404  */
1405
1406 #define ICOM_INTERFACE IMediaSeeking
1407 #define IMediaSeeking_METHODS \
1408     ICOM_METHOD1(HRESULT,GetCapabilities,DWORD*,a1) \
1409     ICOM_METHOD1(HRESULT,CheckCapabilities,DWORD*,a1) \
1410     ICOM_METHOD1(HRESULT,IsFormatSupported,const GUID*,a1) \
1411     ICOM_METHOD1(HRESULT,QueryPreferredFormat,GUID*,a1) \
1412     ICOM_METHOD1(HRESULT,GetTimeFormat,GUID*,a1) \
1413     ICOM_METHOD1(HRESULT,IsUsingTimeFormat,const GUID*,a1) \
1414     ICOM_METHOD1(HRESULT,SetTimeFormat,const GUID*,a1) \
1415     ICOM_METHOD1(HRESULT,GetDuration,LONGLONG*,a1) \
1416     ICOM_METHOD1(HRESULT,GetStopPosition,LONGLONG*,a1) \
1417     ICOM_METHOD1(HRESULT,GetCurrentPosition,LONGLONG*,a1) \
1418     ICOM_METHOD4(HRESULT,ConvertTimeFormat,LONGLONG*,a1,const GUID*,a2,LONGLONG,a3,const GUID*,a4) \
1419     ICOM_METHOD4(HRESULT,SetPositions,LONGLONG*,a1,DWORD,a2,LONGLONG*,a3,DWORD,a4) \
1420     ICOM_METHOD2(HRESULT,GetPositions,LONGLONG*,a1,LONGLONG*,a2) \
1421     ICOM_METHOD2(HRESULT,GetAvailable,LONGLONG*,a1,LONGLONG*,a2) \
1422     ICOM_METHOD1(HRESULT,SetRate,double,a1) \
1423     ICOM_METHOD1(HRESULT,GetRate,double*,a1) \
1424     ICOM_METHOD1(HRESULT,GetPreroll,LONGLONG*,a1)
1425
1426 #define IMediaSeeking_IMETHODS \
1427     IUnknown_IMETHODS \
1428     IMediaSeeking_METHODS
1429
1430 ICOM_DEFINE(IMediaSeeking,IUnknown)
1431 #undef ICOM_INTERFACE
1432
1433     /*** IUnknown methods ***/
1434 #define IMediaSeeking_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1435 #define IMediaSeeking_AddRef(p) ICOM_CALL (AddRef,p)
1436 #define IMediaSeeking_Release(p) ICOM_CALL (Release,p)
1437     /*** IMediaSeeking methods ***/
1438 #define IMediaSeeking_GetCapabilities(p,a1) ICOM_CALL1(GetCapabilities,p,a1)
1439 #define IMediaSeeking_CheckCapabilities(p,a1) ICOM_CALL1(CheckCapabilities,p,a1)
1440 #define IMediaSeeking_IsFormatSupported(p,a1) ICOM_CALL1(IsFormatSupported,p,a1)
1441 #define IMediaSeeking_QueryPreferredFormat(p,a1) ICOM_CALL1(QueryPreferredFormat,p,a1)
1442 #define IMediaSeeking_GetTimeFormat(p,a1) ICOM_CALL1(GetTimeFormat,p,a1)
1443 #define IMediaSeeking_IsUsingTimeFormat(p,a1) ICOM_CALL1(IsUsingTimeFormat,p,a1)
1444 #define IMediaSeeking_SetTimeFormat(p,a1) ICOM_CALL1(SetTimeFormat,p,a1)
1445 #define IMediaSeeking_GetDuration(p,a1) ICOM_CALL1(GetDuration,p,a1)
1446 #define IMediaSeeking_GetStopPosition(p,a1) ICOM_CALL1(GetStopPosition,p,a1)
1447 #define IMediaSeeking_GetCurrentPosition(p,a1) ICOM_CALL1(GetCurrentPosition,p,a1)
1448 #define IMediaSeeking_ConvertTimeFormat(p,a1,a2,a3,a4) ICOM_CALL4(ConvertTimeFormat,p,a1,a2,a3,a4)
1449 #define IMediaSeeking_SetPositions(p,a1,a2,a3,a4) ICOM_CALL4(SetPositions,p,a1,a2,a3,a4)
1450 #define IMediaSeeking_GetPositions(p,a1,a2) ICOM_CALL2(GetPositions,p,a1,a2)
1451 #define IMediaSeeking_GetAvailable(p,a1,a2) ICOM_CALL2(GetAvailable,p,a1,a2)
1452 #define IMediaSeeking_SetRate(p,a1) ICOM_CALL1(SetRate,p,a1)
1453 #define IMediaSeeking_GetRate(p,a1) ICOM_CALL1(GetRate,p,a1)
1454 #define IMediaSeeking_GetPreroll(p,a1) ICOM_CALL1(GetPreroll,p,a1)
1455
1456 /**************************************************************************
1457  *
1458  * IMemAllocator interface
1459  *
1460  */
1461
1462 #define ICOM_INTERFACE IMemAllocator
1463 #define IMemAllocator_METHODS \
1464     ICOM_METHOD2(HRESULT,SetProperties,ALLOCATOR_PROPERTIES*,a1,ALLOCATOR_PROPERTIES*,a2) \
1465     ICOM_METHOD1(HRESULT,GetProperties,ALLOCATOR_PROPERTIES*,a1) \
1466     ICOM_METHOD (HRESULT,Commit) \
1467     ICOM_METHOD (HRESULT,Decommit) \
1468     ICOM_METHOD4(HRESULT,GetBuffer,IMediaSample**,a1,REFERENCE_TIME*,a2,REFERENCE_TIME*,a3,DWORD,a4) \
1469     ICOM_METHOD1(HRESULT,ReleaseBuffer,IMediaSample*,a1)
1470
1471 #define IMemAllocator_IMETHODS \
1472     IUnknown_IMETHODS \
1473     IMemAllocator_METHODS
1474
1475 ICOM_DEFINE(IMemAllocator,IUnknown)
1476 #undef ICOM_INTERFACE
1477
1478     /*** IUnknown methods ***/
1479 #define IMemAllocator_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1480 #define IMemAllocator_AddRef(p) ICOM_CALL (AddRef,p)
1481 #define IMemAllocator_Release(p) ICOM_CALL (Release,p)
1482     /*** IMemAllocator methods ***/
1483 #define IMemAllocator_SetProperties(p,a1,a2) ICOM_CALL2(SetProperties,p,a1,a2)
1484 #define IMemAllocator_GetProperties(p,a1) ICOM_CALL1(GetProperties,p,a1)
1485 #define IMemAllocator_Commit(p) ICOM_CALL (Commit,p)
1486 #define IMemAllocator_Decommit(p) ICOM_CALL (Decommit,p)
1487 #define IMemAllocator_GetBuffer(p,a1,a2,a3,a4) ICOM_CALL4(GetBuffer,p,a1,a2,a3,a4)
1488 #define IMemAllocator_ReleaseBuffer(p,a1) ICOM_CALL1(ReleaseBuffer,p,a1)
1489
1490 /**************************************************************************
1491  *
1492  * IMemAllocatorCallbackTemp interface
1493  *
1494  */
1495
1496 #define ICOM_INTERFACE IMemAllocatorCallbackTemp
1497 #define IMemAllocatorCallbackTemp_METHODS \
1498     ICOM_METHOD1(HRESULT,SetNotify,IMemAllocatorNotifyCallbackTemp*,a1) \
1499     ICOM_METHOD1(HRESULT,GetFreeCount,LONG*,a1)
1500
1501 #define IMemAllocatorCallbackTemp_IMETHODS \
1502     IMemAllocator_IMETHODS \
1503     IMemAllocatorCallbackTemp_METHODS
1504
1505 ICOM_DEFINE(IMemAllocatorCallbackTemp,IMemAllocator)
1506 #undef ICOM_INTERFACE
1507
1508     /*** IUnknown methods ***/
1509 #define IMemAllocatorCallbackTemp_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1510 #define IMemAllocatorCallbackTemp_AddRef(p) ICOM_CALL (AddRef,p)
1511 #define IMemAllocatorCallbackTemp_Release(p) ICOM_CALL (Release,p)
1512     /*** IMemAllocator methods ***/
1513 #define IMemAllocatorCallbackTemp_SetProperties(p,a1,a2) ICOM_CALL2(SetProperties,p,a1,a2)
1514 #define IMemAllocatorCallbackTemp_GetProperties(p,a1) ICOM_CALL1(GetProperties,p,a1)
1515 #define IMemAllocatorCallbackTemp_Commit(p,a1) ICOM_CALL1(Commit,p,a1)
1516 #define IMemAllocatorCallbackTemp_Decommit(p,a1) ICOM_CALL1(Decommit,p,a1)
1517 #define IMemAllocatorCallbackTemp_GetBuffer(p,a1,a2,a3,a4) ICOM_CALL4(GetBuffer,p,a1,a2,a3,a4)
1518 #define IMemAllocatorCallbackTemp_ReleaseBuffer(p,a1) ICOM_CALL1(ReleaseBuffer,p,a1)
1519     /*** IMemAllocatorCallbackTemp methods ***/
1520 #define IMemAllocatorCallbackTemp_SetNotify(p,a1) ICOM_CALL1(SetNotify,p,a1)
1521 #define IMemAllocatorCallbackTemp_GetFreeCount(p,a1) ICOM_CALL1(GetFreeCount,p,a1)
1522
1523 /**************************************************************************
1524  *
1525  * IMemAllocatorNotifyCallbackTemp interface
1526  *
1527  */
1528
1529 #define ICOM_INTERFACE IMemAllocatorNotifyCallbackTemp
1530 #define IMemAllocatorNotifyCallbackTemp_METHODS \
1531     ICOM_METHOD (HRESULT,NotifyRelease)
1532
1533 #define IMemAllocatorNotifyCallbackTemp_IMETHODS \
1534     IUnknown_IMETHODS \
1535     IMemAllocatorNotifyCallbackTemp_METHODS
1536
1537 ICOM_DEFINE(IMemAllocatorNotifyCallbackTemp,IUnknown)
1538 #undef ICOM_INTERFACE
1539
1540     /*** IUnknown methods ***/
1541 #define IMemAllocatorNotifyCallbackTemp_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1542 #define IMemAllocatorNotifyCallbackTemp_AddRef(p) ICOM_CALL (AddRef,p)
1543 #define IMemAllocatorNotifyCallbackTemp_Release(p) ICOM_CALL (Release,p)
1544     /*** IMemAllocatorNotifyCallbackTemp methods ***/
1545 #define IMemAllocatorNotifyCallbackTemp_NotifyRelease(p) ICOM_CALL (NotifyRelease,p)
1546
1547 /**************************************************************************
1548  *
1549  * IMemInputPin interface
1550  *
1551  */
1552
1553 #define ICOM_INTERFACE IMemInputPin
1554 #define IMemInputPin_METHODS \
1555     ICOM_METHOD1(HRESULT,GetAllocator,IMemAllocator**,a1) \
1556     ICOM_METHOD2(HRESULT,NotifyAllocator,IMemAllocator*,a1,BOOL,a2) \
1557     ICOM_METHOD1(HRESULT,GetAllocatorRequirements,ALLOCATOR_PROPERTIES*,a1) \
1558     ICOM_METHOD1(HRESULT,Receive,IMediaSample*,a1) \
1559     ICOM_METHOD3(HRESULT,ReceiveMultiple,IMediaSample**,a1,long,a2,long*,a3) \
1560     ICOM_METHOD (HRESULT,ReceiveCanBlock)
1561
1562 #define IMemInputPin_IMETHODS \
1563     IUnknown_IMETHODS \
1564     IMemInputPin_METHODS
1565
1566 ICOM_DEFINE(IMemInputPin,IUnknown)
1567 #undef ICOM_INTERFACE
1568
1569     /*** IUnknown methods ***/
1570 #define IMemInputPin_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1571 #define IMemInputPin_AddRef(p) ICOM_CALL (AddRef,p)
1572 #define IMemInputPin_Release(p) ICOM_CALL (Release,p)
1573     /*** IMemInputPin methods ***/
1574 #define IMemInputPin_GetAllocator(p,a1) ICOM_CALL1(GetAllocator,p,a1)
1575 #define IMemInputPin_NotifyAllocator(p,a1,a2) ICOM_CALL2(NotifyAllocator,p,a1,a2)
1576 #define IMemInputPin_GetAllocatorRequirements(p,a1) ICOM_CALL1(GetAllocatorRequirements,p,a1)
1577 #define IMemInputPin_Receive(p,a1) ICOM_CALL1(Receive,p,a1)
1578 #define IMemInputPin_ReceiveMultiple(p,a1,a2,a3) ICOM_CALL3(ReceiveMultiple,p,a1,a2,a3)
1579 #define IMemInputPin_ReceiveCanBlock(p) ICOM_CALL (ReceiveCanBlock,p)
1580
1581 /**************************************************************************
1582  *
1583  * IOverlay interface
1584  *
1585  */
1586
1587 #define ICOM_INTERFACE IOverlay
1588 #define IOverlay_METHODS \
1589     ICOM_METHOD2(HRESULT,GetPalette,DWORD*,a1,PALETTEENTRY**,a2) \
1590     ICOM_METHOD2(HRESULT,SetPalette,DWORD,a1,PALETTEENTRY*,a2) \
1591     ICOM_METHOD1(HRESULT,GetDefaultColorKey,COLORKEY*,a1) \
1592     ICOM_METHOD1(HRESULT,GetColorKey,COLORKEY*,a1) \
1593     ICOM_METHOD1(HRESULT,SetColorKey,COLORKEY*,a1) \
1594     ICOM_METHOD1(HRESULT,GetWindowHandle,HWND*,a1) \
1595     ICOM_METHOD3(HRESULT,GetClipList,RECT*,a1,RECT*,a2,RGNDATA**,a3) \
1596     ICOM_METHOD2(HRESULT,GetVideoPosition,RECT*,a1,RECT*,a2) \
1597     ICOM_METHOD2(HRESULT,Advise,IOverlayNotify*,a1,DWORD,a2) \
1598     ICOM_METHOD (HRESULT,Unadvise)
1599
1600 #define IOverlay_IMETHODS \
1601     IUnknown_IMETHODS \
1602     IOverlay_METHODS
1603
1604 ICOM_DEFINE(IOverlay,IUnknown)
1605 #undef ICOM_INTERFACE
1606
1607     /*** IUnknown methods ***/
1608 #define IOverlay_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1609 #define IOverlay_AddRef(p) ICOM_CALL (AddRef,p)
1610 #define IOverlay_Release(p) ICOM_CALL (Release,p)
1611     /*** IOverlay methods ***/
1612 #define IOverlay_GetPalette(p,a1,a2) ICOM_CALL2(GetPalette,p,a1,a2)
1613 #define IOverlay_SetPalette(p,a1,a2) ICOM_CALL2(SetPalette,p,a1,a2)
1614 #define IOverlay_GetDefaultColorKey(p,a1) ICOM_CALL1(GetDefaultColorKey,p,a1)
1615 #define IOverlay_GetColorKey(p,a1) ICOM_CALL1(GetColorKey,p,a1)
1616 #define IOverlay_SetColorKey(p,a1) ICOM_CALL1(SetColorKey,p,a1)
1617 #define IOverlay_GetWindowHandle(p,a1) ICOM_CALL1(GetWindowHandle,p,a1)
1618 #define IOverlay_GetClipList(p,a1,a2,a3) ICOM_CALL3(GetClipList,p,a1,a2,a3)
1619 #define IOverlay_GetVideoPosition(p,a1,a2) ICOM_CALL2(GetVideoPosition,p,a1,a2)
1620 #define IOverlay_Advise(p,a1,a2) ICOM_CALL2(Advise,p,a1,a2)
1621 #define IOverlay_Unadvise(p) ICOM_CALL1(Unadvise,p)
1622
1623 /**************************************************************************
1624  *
1625  * IPin interface
1626  *
1627  */
1628
1629 #define ICOM_INTERFACE IPin
1630 #define IPin_METHODS \
1631     ICOM_METHOD2(HRESULT,Connect,IPin*,a1,const AM_MEDIA_TYPE*,a2) \
1632     ICOM_METHOD2(HRESULT,ReceiveConnection,IPin*,a1,const AM_MEDIA_TYPE*,a2) \
1633     ICOM_METHOD (HRESULT,Disconnect) \
1634     ICOM_METHOD1(HRESULT,ConnectedTo,IPin**,a1) \
1635     ICOM_METHOD1(HRESULT,ConnectionMediaType,AM_MEDIA_TYPE*,a1) \
1636     ICOM_METHOD1(HRESULT,QueryPinInfo,PIN_INFO*,a1) \
1637     ICOM_METHOD1(HRESULT,QueryDirection,PIN_DIRECTION*,a1) \
1638     ICOM_METHOD1(HRESULT,QueryId,LPWSTR*,a1) \
1639     ICOM_METHOD1(HRESULT,QueryAccept,const AM_MEDIA_TYPE*,a1) \
1640     ICOM_METHOD1(HRESULT,EnumMediaTypes,IEnumMediaTypes**,a1) \
1641     ICOM_METHOD2(HRESULT,QueryInternalConnections,IPin**,a1,ULONG*,a2) \
1642     ICOM_METHOD (HRESULT,EndOfStream) \
1643     ICOM_METHOD (HRESULT,BeginFlush) \
1644     ICOM_METHOD (HRESULT,EndFlush) \
1645     ICOM_METHOD3(HRESULT,NewSegment,REFERENCE_TIME,a1,REFERENCE_TIME,a2,double,a3)
1646
1647 #define IPin_IMETHODS \
1648     IUnknown_IMETHODS \
1649     IPin_METHODS
1650
1651 ICOM_DEFINE(IPin,IUnknown)
1652 #undef ICOM_INTERFACE
1653
1654     /*** IUnknown methods ***/
1655 #define IPin_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1656 #define IPin_AddRef(p) ICOM_CALL (AddRef,p)
1657 #define IPin_Release(p) ICOM_CALL (Release,p)
1658     /*** IPin methods ***/
1659 #define IPin_Connect(p,a1,a2) ICOM_CALL2(Connect,p,a1,a2)
1660 #define IPin_ReceiveConnection(p,a1,a2) ICOM_CALL2(ReceiveConnection,p,a1,a2)
1661 #define IPin_Disconnect(p) ICOM_CALL (Disconnect,p)
1662 #define IPin_ConnectedTo(p,a1) ICOM_CALL1(ConnectedTo,p,a1)
1663 #define IPin_ConnectionMediaType(p,a1) ICOM_CALL1(ConnectionMediaType,p,a1)
1664 #define IPin_QueryPinInfo(p,a1) ICOM_CALL1(QueryPinInfo,p,a1)
1665 #define IPin_QueryDirection(p,a1) ICOM_CALL1(QueryDirection,p,a1)
1666 #define IPin_QueryId(p,a1) ICOM_CALL1(QueryId,p,a1)
1667 #define IPin_QueryAccept(p,a1) ICOM_CALL1(QueryAccept,p,a1)
1668 #define IPin_EnumMediaTypes(p,a1) ICOM_CALL1(EnumMediaTypes,p,a1)
1669 #define IPin_QueryInternalConnections(p,a1,a2) ICOM_CALL2(QueryInternalConnections,p,a1,a2)
1670 #define IPin_EndOfStream(p) ICOM_CALL (EndOfStream,p)
1671 #define IPin_BeginFlush(p) ICOM_CALL (BeginFlush,p)
1672 #define IPin_EndFlush(p) ICOM_CALL (EndFlush,p)
1673 #define IPin_NewSegment(p,a1,a2,a3) ICOM_CALL3(NewSegment,p,a1,a2,a3)
1674
1675 /**************************************************************************
1676  *
1677  * IQualityControl interface
1678  *
1679  */
1680
1681 #define ICOM_INTERFACE IQualityControl
1682 #define IQualityControl_METHODS \
1683     ICOM_METHOD2(HRESULT,Notify,IBaseFilter*,a1,Quality,a2) \
1684     ICOM_METHOD1(HRESULT,SetSink,IQualityControl*,a1)
1685
1686 #define IQualityControl_IMETHODS \
1687     IUnknown_IMETHODS \
1688     IQualityControl_METHODS
1689
1690 ICOM_DEFINE(IQualityControl,IUnknown)
1691 #undef ICOM_INTERFACE
1692
1693     /*** IUnknown methods ***/
1694 #define IQualityControl_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1695 #define IQualityControl_AddRef(p) ICOM_CALL (AddRef,p)
1696 #define IQualityControl_Release(p) ICOM_CALL (Release,p)
1697     /*** IQualityControl methods ***/
1698 #define IQualityControl_Notify(p,a1,a2) ICOM_CALL2(Notify,p,a1,a2)
1699 #define IQualityControl_SetSink(p,a1) ICOM_CALL1(SetSink,p,a1)
1700
1701 /**************************************************************************
1702  *
1703  * IReferenceClock interface
1704  *
1705  */
1706
1707 #define ICOM_INTERFACE IReferenceClock
1708 #define IReferenceClock_METHODS \
1709     ICOM_METHOD1(HRESULT,GetTime,REFERENCE_TIME*,a1) \
1710     ICOM_METHOD4(HRESULT,AdviseTime,REFERENCE_TIME,a1,REFERENCE_TIME,a2,HEVENT,a3,DWORD_PTR*,a4) \
1711     ICOM_METHOD4(HRESULT,AdvisePeriodic,REFERENCE_TIME,a1,REFERENCE_TIME,a2,HSEMAPHORE,a3,DWORD_PTR*,a4) \
1712     ICOM_METHOD1(HRESULT,Unadvise,DWORD_PTR,a1)
1713
1714 #define IReferenceClock_IMETHODS \
1715     IUnknown_IMETHODS \
1716     IReferenceClock_METHODS
1717
1718 ICOM_DEFINE(IReferenceClock,IUnknown)
1719 #undef ICOM_INTERFACE
1720
1721     /*** IUnknown methods ***/
1722 #define IReferenceClock_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1723 #define IReferenceClock_AddRef(p) ICOM_CALL (AddRef,p)
1724 #define IReferenceClock_Release(p) ICOM_CALL (Release,p)
1725     /*** IReferenceClock methods ***/
1726 #define IReferenceClock_GetTime(p,a1) ICOM_CALL1(GetTime,p,a1)
1727 #define IReferenceClock_AdviseTime(p,a1,a2,a3,a4) ICOM_CALL4(AdviseTime,p,a1,a2,a3,a4)
1728 #define IReferenceClock_AdvisePeriodic(p,a1,a2,a3,a4) ICOM_CALL4(AdvisePeriodic,p,a1,a2,a3,a4)
1729 #define IReferenceClock_Unadvise(p,a1) ICOM_CALL1(Unadvise,p,a1)
1730
1731 /**************************************************************************
1732  *
1733  * IReferenceClock2 interface
1734  *
1735  */
1736
1737 #define ICOM_INTERFACE IReferenceClock2
1738 #define IReferenceClock2_METHODS
1739
1740 #define IReferenceClock2_IMETHODS \
1741     IReferenceClock_IMETHODS \
1742     IReferenceClock2_METHODS
1743
1744 ICOM_DEFINE(IReferenceClock2,IReferenceClock)
1745 #undef ICOM_INTERFACE
1746
1747     /*** IUnknown methods ***/
1748 #define IReferenceClock2_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1749 #define IReferenceClock2_AddRef(p) ICOM_CALL (AddRef,p)
1750 #define IReferenceClock2_Release(p) ICOM_CALL (Release,p)
1751     /*** IReferenceClock methods ***/
1752 #define IReferenceClock2_GetTime(p,a1) ICOM_CALL1(GetTime,p,a1)
1753 #define IReferenceClock2_AdviseTime(p,a1,a2,a3,a4) ICOM_CALL4(AdviseTime,p,a1,a2,a3,a4)
1754 #define IReferenceClock2_AdvisePeriodic(p,a1,a2,a3,a4) ICOM_CALL4(AdvisePeriodic,p,a1,a2,a3,a4)
1755 #define IReferenceClock2_Unadvise(p,a1) ICOM_CALL1(Unadvise,p,a1)
1756     /*** IReferenceClock2 methods ***/
1757
1758 /**************************************************************************
1759  *
1760  * ISeekingPassThru interface
1761  *
1762  */
1763
1764 #define ICOM_INTERFACE ISeekingPassThru
1765 #define ISeekingPassThru_METHODS \
1766     ICOM_METHOD2(HRESULT,Init,BOOL,a1,IPin*,a2)
1767
1768 #define ISeekingPassThru_IMETHODS \
1769     IUnknown_IMETHODS \
1770     ISeekingPassThru_METHODS
1771
1772 ICOM_DEFINE(ISeekingPassThru,IUnknown)
1773 #undef ICOM_INTERFACE
1774
1775     /*** IUnknown methods ***/
1776 #define ISeekingPassThru_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2)
1777 #define ISeekingPassThru_AddRef(p) ICOM_CALL (AddRef,p)
1778 #define ISeekingPassThru_Release(p) ICOM_CALL (Release,p)
1779     /*** ISeekingPassThru methods ***/
1780 #define ISeekingPassThru_Init(p,a1,a2) ICOM_CALL2(Init,p,a1,a2)
1781
1782
1783
1784
1785 #endif  /* __WINE_STRMIF_H_ */