setupapi/tests: Add simple enumeration tests for SetupIterateCabinetA.
[wine/hramrach.git] / include / axextend.idl
blobc546a7e94beffcb0f55607a90497e806500aa31f
1 /*
2 * Copyright (C) 2002 Robert Shearman
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 interface IAMAnalogVideoDecoder;
20 interface IAMAnalogVideoEncoder;
21 interface IAMAudioInputMixer;
22 interface IAMAudioRendererStats;
23 interface IAMBufferNegotiation;
24 interface IAMCameraControl;
25 interface IAMCopyCaptureFileProgress;
26 interface IAMCrossbar;
27 interface IAMDevMemoryAllocator;
28 interface IAMDevMemoryControl;
29 interface IAMDroppedFrames;
30 interface IAMExtDevice;
31 interface IAMExtTransport;
32 interface IAMGraphStreams;
33 interface IAMLatency;
34 interface IAMOpenProgress;
35 interface IAMOverlayFX;
36 interface IAMPhysicalPinInfo;
37 interface IAMPushSource;
38 interface IAMStreamConfig;
39 interface IAMTimecodeDisplay;
40 interface IAMTimecodeGenerator;
41 interface IAMTimecodeReader;
42 interface IAMTVTuner;
43 interface IAMVfwCaptureDialogs;
44 interface IAMVfwCompressDialogs;
45 interface IAMVideoCompression;
46 interface IAMVideoDecimationProperties;
47 interface IAMVideoProcAmp;
48 interface ICaptureGraphBuilder;
49 interface ICaptureGraphBuilder2;
50 interface IConfigAviMux;
51 interface IConfigInterleaving;
52 interface IDecimateVideoImage;
53 interface IDrawVideoImage;
54 interface IEnumRegFilters;
55 interface IEnumStreamIdMap;
56 interface IFileSourceFilter;
57 interface IFileSinkFilter;
58 interface IFileSinkFilter2;
59 interface IFilterMapper;
60 interface IFilterMapper2;
61 interface IGraphBuilder;
62 interface IKsPropertySet;
63 interface IMediaEventSink;
64 interface IMpeg2Demultiplexer;
65 interface IMPEG2StreamIdMap;
66 interface IOverlay;
67 interface IOverlayNotify;
68 interface IOverlayNotify2;
69 interface IQualityControl;
70 interface ISeekingPassThru;
72 typedef struct
74 CLSID Clsid;
75 LPWSTR Name;
76 } REGFILTER;
79 object,
80 uuid(56a868a4-0ad4-11ce-b03a-0020af0ba770),
81 pointer_default(unique)
83 interface IEnumRegFilters : IUnknown
85 HRESULT Next
86 ( [in] ULONG cFilters,
87 [out] REGFILTER ** apRegFilter,
88 [out] ULONG * pcFetched
91 HRESULT Skip(
92 [in] ULONG cFilters
95 HRESULT Reset(void);
97 HRESULT Clone(
98 [out] IEnumRegFilters **ppEnum
103 typedef IEnumRegFilters *PENUMREGFILTERS;
106 object,
107 uuid(56a868a3-0ad4-11ce-b03a-0020af0ba770),
108 pointer_default(unique)
110 interface IFilterMapper : IUnknown
112 enum { MERIT_PREFERRED = 0x800000,
113 MERIT_NORMAL = 0x600000,
114 MERIT_UNLIKELY = 0x400000,
115 MERIT_DO_NOT_USE = 0x200000,
116 MERIT_SW_COMPRESSOR = 0x100000,
117 MERIT_HW_COMPRESSOR = 0x100050
120 HRESULT RegisterFilter
121 ( [in] CLSID clsid,
122 [in] LPCWSTR Name,
123 [in] DWORD dwMerit
126 HRESULT RegisterFilterInstance
127 ( [in] CLSID clsid,
128 [in] LPCWSTR Name,
129 [out] CLSID *MRId
133 HRESULT RegisterPin
134 ( [in] CLSID Filter,
135 [in] LPCWSTR Name,
136 [in] BOOL bRendered,
137 [in] BOOL bOutput,
138 [in] BOOL bZero,
139 [in] BOOL bMany,
140 [in] CLSID ConnectsToFilter,
141 [in] LPCWSTR ConnectsToPin
144 HRESULT RegisterPinType
145 ( [in] CLSID clsFilter,
146 [in] LPCWSTR strName,
147 [in] CLSID clsMajorType,
148 [in] CLSID clsSubType
152 HRESULT UnregisterFilter
153 ( [in] CLSID Filter
157 HRESULT UnregisterFilterInstance
158 ( [in] CLSID MRId
162 HRESULT UnregisterPin
163 ( [in] CLSID Filter,
164 [in] LPCWSTR Name
167 HRESULT EnumMatchingFilters
168 ( [out] IEnumRegFilters **ppEnum,
169 [in] DWORD dwMerit,
170 [in] BOOL bInputNeeded,
171 [in] CLSID clsInMaj,
172 [in] CLSID clsInSub,
173 [in] BOOL bRender,
174 [in] BOOL bOututNeeded,
175 [in] CLSID clsOutMaj,
176 [in] CLSID clsOutSub
181 typedef struct
183 const CLSID * clsMajorType;
184 const CLSID * clsMinorType;
185 } REGPINTYPES;
187 typedef struct
189 LPWSTR strName;
190 BOOL bRendered;
191 BOOL bOutput;
192 BOOL bZero;
193 BOOL bMany;
194 const CLSID * clsConnectsToFilter;
195 const WCHAR * strConnectsToPin;
196 UINT nMediaTypes;
197 const REGPINTYPES * lpMediaType;
198 } REGFILTERPINS;
200 typedef struct
202 CLSID clsMedium;
203 DWORD dw1;
204 DWORD dw2;
205 } REGPINMEDIUM;
207 enum
209 REG_PINFLAG_B_ZERO = 0x1,
210 REG_PINFLAG_B_RENDERER = 0x2,
211 REG_PINFLAG_B_MANY = 0x4,
212 REG_PINFLAG_B_OUTPUT = 0x8
216 typedef struct
218 DWORD dwFlags;
219 UINT cInstances;
220 UINT nMediaTypes;
221 [size_is(nMediaTypes)] const REGPINTYPES * lpMediaType;
222 UINT nMediums;
223 [size_is(nMediums)] const REGPINMEDIUM *lpMedium;
224 const CLSID *clsPinCategory;
225 } REGFILTERPINS2;
227 typedef struct
229 DWORD dwVersion;
230 DWORD dwMerit;
231 [switch_is(dwVersion)] [switch_type(DWORD)] union
233 [case(1)]
234 struct
236 ULONG cPins;
237 [size_is(cPins)] const REGFILTERPINS *rgPins;
238 } DUMMYSTRUCTNAME;
240 [case(2)]
241 struct
243 ULONG cPins2;
244 [size_is(cPins2)] const REGFILTERPINS2 *rgPins2;
245 } DUMMYSTRUCTNAME1;
247 [default]
249 } DUMMYUNIONNAME;
251 } REGFILTER2;
255 object,
256 uuid(b79bb0b0-33c1-11d1-abe1-00a0c905f375),
257 pointer_default(unique)
259 interface IFilterMapper2 : IUnknown
261 HRESULT CreateCategory
262 ( [in] REFCLSID clsidCategory,
263 [in] DWORD dwCategoryMerit,
264 [in] LPCWSTR Description
267 HRESULT UnregisterFilter
268 ( [in] const CLSID *pclsidCategory,
269 [in] LPCOLESTR szInstance,
270 [in] REFCLSID Filter
273 HRESULT RegisterFilter
274 ( [in] REFCLSID clsidFilter,
275 [in] LPCWSTR Name,
276 [in, out] IMoniker **ppMoniker,
277 [in] const CLSID *pclsidCategory,
278 [in] LPCOLESTR szInstance,
279 [in] const REGFILTER2 *prf2
282 HRESULT EnumMatchingFilters
283 ( [out] IEnumMoniker **ppEnum,
284 [in] DWORD dwFlags,
285 [in] BOOL bExactMatch,
286 [in] DWORD dwMerit,
287 [in] BOOL bInputNeeded,
288 [in] DWORD cInputTypes,
289 [size_is(cInputTypes*2)] const GUID *pInputTypes,
290 [in] const REGPINMEDIUM *pMedIn,
291 [in] const CLSID *pPinCategoryIn,
292 [in] BOOL bRender,
293 [in] BOOL bOutputNeeded,
294 [in] DWORD cOutputTypes,
295 [size_is(cOutputTypes*2)] const GUID *pOutputTypes,
296 [in] const REGPINMEDIUM *pMedOut,
297 [in] const CLSID *pPinCategoryOut
302 object,
303 uuid(b79bb0b1-33c1-11d1-abe1-00a0c905f375),
304 pointer_default(unique)
306 interface IFilterMapper3 : IFilterMapper2
308 HRESULT GetICreateDevEnum( [out] ICreateDevEnum **ppEnum );
311 typedef enum tagQualityMessageType
313 Famine,
314 Flood
315 } QualityMessageType;
317 typedef struct tagQuality
319 QualityMessageType Type;
320 LONG Proportion;
321 REFERENCE_TIME Late;
322 REFERENCE_TIME TimeStamp;
323 } Quality;
325 typedef IQualityControl *PQUALITYCONTROL;
328 object,
329 uuid(56a868a5-0ad4-11ce-b03a-0020af0ba770),
330 pointer_default(unique)
332 interface IQualityControl : IUnknown
334 HRESULT Notify
335 ( [in] IBaseFilter * pSelf,
336 [in] Quality q
339 HRESULT SetSink
340 ( [in] IQualityControl * piqc
344 enum
346 CK_NOCOLORKEY = 0x0,
347 CK_INDEX = 0x1,
348 CK_RGB = 0x2
351 typedef struct tagCOLORKEY
353 DWORD KeyType;
354 DWORD PaletteIndex;
355 COLORREF LowColorValue;
356 COLORREF HighColorValue;
357 } COLORKEY;
359 enum
361 ADVISE_NONE = 0x0,
362 ADVISE_CLIPPING = 0x1,
363 ADVISE_PALETTE = 0x2,
364 ADVISE_COLORKEY = 0x4,
365 ADVISE_POSITION = 0x8,
366 ADVISE_DISPLAY_CHANGE = 0x10
369 const DWORD ADVISE_ALL = ADVISE_CLIPPING |
370 ADVISE_PALETTE |
371 ADVISE_COLORKEY |
372 ADVISE_POSITION;
374 const DWORD ADVISE_ALL2 = ADVISE_ALL |
375 ADVISE_DISPLAY_CHANGE;
377 cpp_quote("#ifndef _WINGDI_")
379 /* already defined in wingdi.h, but needed for WIDL */
381 typedef struct _RGNDATAHEADER
383 DWORD dwSize;
384 DWORD iType;
385 DWORD nCount;
386 DWORD nRgnSize;
387 RECT rcBound;
388 } RGNDATAHEADER;
390 typedef struct _RGNDATA
392 RGNDATAHEADER rdh;
393 char Buffer[1];
394 } RGNDATA;
396 cpp_quote("#endif /* _WINGDI_ */")
399 object,
400 local,
401 uuid(56a868a0-0ad4-11ce-b03a-0020af0ba770),
402 pointer_default(unique)
404 interface IOverlayNotify : IUnknown
406 HRESULT OnPaletteChange(
407 [in] DWORD dwColors,
408 [in] const PALETTEENTRY *pPalette);
410 HRESULT OnClipChange(
411 [in] const RECT *pSourceRect,
412 [in] const RECT *pDestinationRect,
413 [in] const RGNDATA *pRgnData);
415 HRESULT OnColorKeyChange([in] const COLORKEY *pColorKey);
417 HRESULT OnPositionChange([in] const RECT *pSourceRect,
418 [in] const RECT *pDestinationRect);
421 typedef IOverlayNotify *POVERLAYNOTIFY;
423 cpp_quote("#if 0")
424 typedef HANDLE HMONITOR;
425 cpp_quote("#endif /* 0 */")
428 object,
429 local,
430 uuid(680EFA10-D535-11D1-87C8-00A0C9223196),
431 pointer_default(unique)
433 interface IOverlayNotify2 : IOverlayNotify
435 HRESULT OnDisplayChange(
436 HMONITOR hMonitor);
439 typedef IOverlayNotify2 *POVERLAYNOTIFY2;
442 object,
443 local,
444 uuid(56a868a1-0ad4-11ce-b03a-0020af0ba770),
445 pointer_default(unique)
447 interface IOverlay : IUnknown
449 HRESULT GetPalette(
450 [out] DWORD *pdwColors,
451 [out] PALETTEENTRY **ppPalette);
453 HRESULT SetPalette(
454 [in] DWORD dwColors,
455 [in] PALETTEENTRY *pPalette);
457 HRESULT GetDefaultColorKey([out] COLORKEY *pColorKey);
459 HRESULT GetColorKey([out] COLORKEY *pColorKey);
461 HRESULT SetColorKey([in,out] COLORKEY *pColorKey);
463 HRESULT GetWindowHandle([out] HWND *pHwnd);
465 HRESULT GetClipList([out] RECT *pSourceRect,
466 [out] RECT *pDestinationRect,
467 [out] RGNDATA **ppRgnData);
469 HRESULT GetVideoPosition([out] RECT *pSourceRect,
470 [out] RECT *pDestinationRect);
472 HRESULT Advise(
473 [in] IOverlayNotify *pOverlayNotify,
474 [in] DWORD dwInterests);
476 HRESULT Unadvise();
479 typedef IOverlay *POVERLAY;
482 object,
483 uuid(56a868a2-0ad4-11ce-b03a-0020af0ba770),
484 pointer_default(unique)
486 interface IMediaEventSink : IUnknown
488 HRESULT Notify(
489 [in] LONG EventCode,
490 [in] LONG_PTR EventParam1,
491 [in] LONG_PTR EventParam2
495 typedef IMediaEventSink *PMEDIAEVENTSINK;
498 object,
499 uuid(56a868a6-0ad4-11ce-b03a-0020af0ba770),
500 pointer_default(unique)
502 interface IFileSourceFilter : IUnknown
504 HRESULT Load(
505 [in] LPCOLESTR pszFileName,
506 [in, unique] const AM_MEDIA_TYPE *pmt
509 HRESULT GetCurFile(
510 [out] LPOLESTR *ppszFileName,
511 [out] AM_MEDIA_TYPE *pmt
515 typedef IFileSourceFilter *PFILTERFILESOURCE;
518 object,
519 uuid(a2104830-7c70-11cf-8bce-00aa00a3f1a6),
520 pointer_default(unique)
522 interface IFileSinkFilter : IUnknown
524 HRESULT SetFileName(
525 [in] LPCOLESTR pszFileName,
526 [in, unique] const AM_MEDIA_TYPE *pmt
529 HRESULT GetCurFile(
530 [out] LPOLESTR *ppszFileName,
531 [out] AM_MEDIA_TYPE *pmt
535 typedef IFileSinkFilter *PFILTERFILESINK;
538 object,
539 uuid(00855B90-CE1B-11d0-BD4F-00A0C911CE86),
540 pointer_default(unique)
542 interface IFileSinkFilter2 : IFileSinkFilter
544 HRESULT SetMode(
545 [in] DWORD dwFlags
548 HRESULT GetMode(
549 [out] DWORD *pdwFlags
553 typedef IFileSinkFilter2 *PFILESINKFILTER2;
555 typedef enum
557 AM_FILE_OVERWRITE = 0x00000001,
558 } AM_FILESINK_FLAGS;
561 object,
562 uuid(56a868a9-0ad4-11ce-b03a-0020af0ba770),
563 pointer_default(unique)
565 interface IGraphBuilder : IFilterGraph
567 HRESULT Connect
568 ( [in] IPin * ppinOut,
569 [in] IPin * ppinIn
572 HRESULT Render
573 ( [in] IPin * ppinOut
576 HRESULT RenderFile
577 ( [in] LPCWSTR lpcwstrFile,
578 [in, unique] LPCWSTR lpcwstrPlayList
581 HRESULT AddSourceFilter
582 ( [in] LPCWSTR lpcwstrFileName,
583 [in, unique] LPCWSTR lpcwstrFilterName,
584 [out] IBaseFilter* *ppFilter
587 HRESULT SetLogFile
588 ( [in] DWORD_PTR hFile
591 HRESULT Abort();
593 HRESULT ShouldOperationContinue();
598 object,
599 uuid(bf87b6e0-8c27-11d0-b3f0-00aa003761c5),
600 pointer_default(unique)
602 interface ICaptureGraphBuilder : IUnknown {
604 HRESULT SetFiltergraph(
605 [in] IGraphBuilder *pfg);
607 HRESULT GetFiltergraph(
608 [out] IGraphBuilder **ppfg);
610 HRESULT SetOutputFileName(
611 [in] const GUID *pType,
612 [in] LPCOLESTR lpstrFile,
613 [out] IBaseFilter **ppf,
614 [out] IFileSinkFilter **ppSink);
616 [local] HRESULT FindInterface(
617 [in, unique] const GUID *pCategory,
618 [in] IBaseFilter *pf,
619 [in] REFIID riid,
620 [out] void **ppint);
622 [call_as(FindInterface)] HRESULT RemoteFindInterface(
623 [in, unique] const GUID *pCategory,
624 [in] IBaseFilter *pf,
625 [in] REFIID riid,
626 [out] IUnknown **ppint);
628 HRESULT RenderStream(
629 [in] const GUID *pCategory,
630 [in] IUnknown *pSource,
631 [in] IBaseFilter *pfCompressor,
632 [in] IBaseFilter *pfRenderer);
634 HRESULT ControlStream(
635 [in] const GUID *pCategory,
636 [in] IBaseFilter *pFilter,
637 [in] REFERENCE_TIME *pstart,
638 [in] REFERENCE_TIME *pstop,
639 [in] WORD wStartCookie,
640 [in] WORD wStopCookie);
642 HRESULT AllocCapFile(
643 [in] LPCOLESTR lpstr,
644 [in] DWORDLONG dwlSize);
646 HRESULT CopyCaptureFile(
647 [in] LPOLESTR lpwstrOld,
648 [in] LPOLESTR lpwstrNew,
649 [in] int fAllowEscAbort,
650 [in] IAMCopyCaptureFileProgress *pCallback);
654 object,
655 uuid(670d1d20-a068-11d0-b3f0-00aa003761c5),
656 pointer_default(unique)
658 interface IAMCopyCaptureFileProgress : IUnknown
660 HRESULT Progress(
661 [in] int iProgress);
665 object,
666 uuid(93E5A4E0-2D50-11d2-ABFA-00A0C9C6E38D),
667 pointer_default(unique)
669 interface ICaptureGraphBuilder2 : IUnknown
671 HRESULT SetFiltergraph(
672 [in] IGraphBuilder *pfg);
674 HRESULT GetFiltergraph(
675 [out] IGraphBuilder **ppfg);
677 HRESULT SetOutputFileName(
678 [in] const GUID *pType,
679 [in] LPCOLESTR lpstrFile,
680 [out] IBaseFilter **ppf,
681 [out] IFileSinkFilter **ppSink);
683 [local] HRESULT FindInterface(
684 [in] const GUID *pCategory,
685 [in] const GUID *pType,
686 [in] IBaseFilter *pf,
687 [in] REFIID riid,
688 [out] void **ppint);
690 [call_as(FindInterface)] HRESULT RemoteFindInterface(
691 [in] const GUID *pCategory,
692 [in] const GUID *pType,
693 [in] IBaseFilter *pf,
694 [in] REFIID riid,
695 [out] IUnknown **ppint);
697 HRESULT RenderStream(
698 [in] const GUID *pCategory,
699 [in] const GUID *pType,
700 [in] IUnknown *pSource,
701 [in] IBaseFilter *pfCompressor,
702 [in] IBaseFilter *pfRenderer);
704 HRESULT ControlStream(
705 [in] const GUID *pCategory,
706 [in] const GUID *pType,
707 [in] IBaseFilter *pFilter,
708 [in] REFERENCE_TIME *pstart,
709 [in] REFERENCE_TIME *pstop,
710 [in] WORD wStartCookie,
711 [in] WORD wStopCookie);
713 HRESULT AllocCapFile(
714 [in] LPCOLESTR lpstr,
715 [in] DWORDLONG dwlSize);
717 HRESULT CopyCaptureFile(
718 [in] LPOLESTR lpwstrOld,
719 [in] LPOLESTR lpwstrNew,
720 [in] int fAllowEscAbort,
721 [in] IAMCopyCaptureFileProgress *pCallback);
723 HRESULT FindPin(
724 [in] IUnknown *pSource,
725 [in] PIN_DIRECTION pindir,
726 [in] const GUID *pCategory,
727 [in] const GUID *pType,
728 [in] BOOL fUnconnected,
729 [in] int num,
730 [out] IPin **ppPin);
733 enum _AM_RENSDEREXFLAGS
735 AM_RENDEREX_RENDERTOEXISTINGRENDERERS = 0x01
739 object,
740 uuid(36b73882-c2c8-11cf-8b46-00805f6cef60),
741 pointer_default(unique)
743 interface IFilterGraph2: IGraphBuilder
745 HRESULT AddSourceFilterForMoniker(
746 [in] IMoniker *pMoniker,
747 [in] IBindCtx *pCtx,
748 [in, unique] LPCWSTR lpcwstrFilterName,
749 [out] IBaseFilter **ppFilter
752 HRESULT ReconnectEx
753 ( [in] IPin * ppin,
754 [in, unique] const AM_MEDIA_TYPE *pmt
757 HRESULT RenderEx( [in] IPin *pPinOut,
758 [in] DWORD dwFlags,
759 [in, out] DWORD *pvContext
764 object,
765 local,
766 uuid(56a868bf-0ad4-11ce-b03a-0020af0ba770),
767 pointer_default(unique)
769 interface IStreamBuilder : IUnknown
771 HRESULT Render
772 ( [in] IPin * ppinOut,
773 [in] IGraphBuilder * pGraph
776 HRESULT Backout
777 ( [in] IPin * ppinOut,
778 [in] IGraphBuilder * pGraph
783 /*****************************************************************************
784 * IAMStreamConfig interface
787 object,
788 uuid(c6e13340-30ac-11d0-a18c-00a0c9118956),
789 pointer_default(unique)
791 interface IAMStreamConfig : IUnknown
793 HRESULT SetFormat( [in] AM_MEDIA_TYPE *pmt);
794 HRESULT GetFormat( [in] AM_MEDIA_TYPE **pmt);
795 HRESULT GetNumberOfCapabilities( [out] int *piCount, [out] int *piSize);
796 HRESULT GetStreamCaps( [in] int iIndex, [out] AM_MEDIA_TYPE **pmt,
797 [out] BYTE *pSCC);
801 typedef enum tagVideoProcAmpProperty
803 VideoProcAmp_Brightness,
804 VideoProcAmp_Contrast,
805 VideoProcAmp_Hue,
806 VideoProcAmp_Saturation,
807 VideoProcAmp_Sharpness,
808 VideoProcAmp_Gamma,
809 VideoProcAmp_ColorEnable,
810 VideoProcAmp_WhiteBalance,
811 VideoProcAmp_BacklightCompensation,
812 VideoProcAmp_Gain
813 } VideoProcAmpProperty;
815 typedef enum tagVideoProcAmpFlags
817 VideoProcAmp_Flags_Auto = 0x0001,
818 VideoProcAmp_Flags_Manual = 0x0002,
819 } VideoProcAmpFlags;
821 /*****************************************************************************
822 * IAMVideoProcAmp interface
825 object,
826 uuid(c6e13360-30ac-11d0-a18c-00a0c9118956),
827 pointer_default(unique)
829 interface IAMVideoProcAmp : IUnknown
831 HRESULT GetRange( [in] LONG Property, [out] LONG *pMin, [out] LONG *pMax,
832 [out] LONG *pSteppingDelta, [out] LONG *pDefault,
833 [out] LONG *pCapsFlags);
834 HRESULT Set( [in] LONG Property, [in] LONG lValue, [in] LONG Flags);
835 HRESULT Get( [in] LONG Property, [out] LONG *lValue, [out] LONG *Flags);
840 object,
841 uuid(56a868aa-0ad4-11ce-b03a-0020af0ba770),
842 pointer_default(unique)
844 interface IAsyncReader : IUnknown
846 HRESULT RequestAllocator(
847 [in] IMemAllocator* pPreferred,
848 [in] ALLOCATOR_PROPERTIES* pProps,
849 [out] IMemAllocator ** ppActual);
851 HRESULT Request(
852 [in] IMediaSample* pSample,
853 [in] DWORD_PTR dwUser);
855 HRESULT WaitForNext(
856 [in] DWORD dwTimeout,
857 [out] IMediaSample** ppSample,
858 [out] DWORD_PTR * pdwUser);
860 HRESULT SyncReadAligned(
861 [in] IMediaSample* pSample);
863 HRESULT SyncRead(
864 [in] LONGLONG llPosition,
865 [in] LONG lLength,
866 [out, size_is(lLength)]
867 BYTE* pBuffer);
869 HRESULT Length(
870 [out] LONGLONG* pTotal,
871 [out] LONGLONG* pAvailable);
873 HRESULT BeginFlush(void);
875 HRESULT EndFlush(void);
880 object,
881 uuid(56a868ab-0ad4-11ce-b03a-0020af0ba770),
882 pointer_default(unique)
884 interface IGraphVersion : IUnknown
886 HRESULT QueryVersion(LONG* pVersion);
890 object,
891 uuid(56a868ad-0ad4-11ce-b03a-0020af0ba770),
892 pointer_default(unique)
894 interface IResourceConsumer : IUnknown
896 HRESULT AcquireResource(
897 [in] LONG idResource);
899 HRESULT ReleaseResource(
900 [in] LONG idResource);
905 object,
906 uuid(56a868ac-0ad4-11ce-b03a-0020af0ba770),
907 pointer_default(unique)
909 interface IResourceManager : IUnknown
911 HRESULT Register(
912 [in] LPCWSTR pName,
913 [in] LONG cResource,
914 [out] LONG* plToken
917 HRESULT RegisterGroup(
918 [in] LPCWSTR pName,
919 [in] LONG cResource,
920 [in, size_is(cResource)]
921 LONG* palTokens,
922 [out] LONG* plToken
925 HRESULT RequestResource(
926 [in] LONG idResource,
927 [in] IUnknown* pFocusObject,
928 [in] IResourceConsumer* pConsumer
931 HRESULT NotifyAcquire(
932 [in] LONG idResource,
933 [in] IResourceConsumer* pConsumer,
934 [in] HRESULT hr);
936 HRESULT NotifyRelease(
937 [in] LONG idResource,
938 [in] IResourceConsumer* pConsumer,
939 [in] BOOL bStillWant);
941 HRESULT CancelRequest(
942 [in] LONG idResource,
943 [in] IResourceConsumer* pConsumer);
945 HRESULT SetFocus(
946 [in] IUnknown* pFocusObject);
948 HRESULT ReleaseFocus(
949 [in] IUnknown* pFocusObject);
953 cpp_quote("#ifndef _IKsPropertySet_")
954 cpp_quote("#define _IKsPropertySet_")
955 cpp_quote("#define KSPROPERTY_SUPPORT_GET 1")
956 cpp_quote("#define KSPROPERTY_SUPPORT_SET 2")
959 object,
960 uuid(31efac30-515c-11d0-a9aa-00aa0061be93),
961 pointer_default(unique),
962 local
964 interface IKsPropertySet : IUnknown
966 HRESULT Set( [in] REFGUID guidPropSet,
967 [in] DWORD dwPropID,
968 [in, size_is(cbInstanceData)] LPVOID pInstanceData,
969 [in] DWORD cbInstanceData,
970 [in, size_is(cbPropData)] LPVOID pPropData,
971 [in] DWORD cbPropData );
973 HRESULT Get( [in] REFGUID guidPropSet,
974 [in] DWORD dwPropID,
975 [in, size_is(cbInstanceData)] LPVOID pInstanceData,
976 [in] DWORD cbInstanceData,
977 [out, size_is(cbPropData)] LPVOID pPropData,
978 [in] DWORD cbPropData,
979 [out] DWORD *pcbReturned );
981 HRESULT QuerySupported( [in] REFGUID guidPropSet,
982 [in] DWORD dwPropID,
983 [out] DWORD *pTypeSupport);
985 cpp_quote("#endif /* _IKsPropertySet_ */")
988 object,
989 uuid(36b73883-c2c8-11cf-8b46-00805f6cef60),
990 pointer_default(unique)
992 interface ISeekingPassThru : IUnknown
994 HRESULT Init( [in] BOOL bSupportRendering, [in] IPin *pPin);
997 enum _AM_FILTER_MISC_FLAGS
999 AM_FILTER_MISC_FLAGS_IS_RENDERER = 0x1,
1000 AM_FILTER_MISC_FLAGS_IS_SOURCE = 0x2
1004 local,
1005 object,
1006 uuid(2dd74950-a890-11d1-abe8-00a0c905f375),
1007 pointer_default(unique)
1009 interface IAMFilterMiscFlags : IUnknown
1011 ULONG GetMiscFlags();