source: trunk/DirectShowSpy/DirectShowSpy.idl @ 199

Last change on this file since 199 was 199, checked in by roman, 9 years ago

COM helper for graph to text "conversion"

  • Property svn:keywords set to Id
File size: 4.3 KB
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2008-2013
3// Created by Roman Ryltsov roman@alax.info
4
5import "oaidl.idl";
6import "ocidl.idl";
7
8[
9        object,
10        uuid(6945711B-FE0F-4C54-965F-5B67969C28B7),
11        dual,
12        oleautomation,
13        nonextensible,
14        helpstring("ISpy Interface"),
15        pointer_default(unique)
16]
17interface ISpy : IDispatch
18{
19};
20[
21        object,
22        uuid(34B280D7-A144-4a64-BCB9-3616896F6877),
23        dual,
24        oleautomation,
25        nonextensible,
26        helpstring("IFilterMapperSpy Interface"),
27        pointer_default(unique)
28]
29interface IFilterMapperSpy : IDispatch
30{
31};
32[
33        object,
34        uuid(14EB119F-25CE-4654-ABE1-E6742AF03F2D),
35        dual,
36        oleautomation,
37        nonextensible,
38        helpstring("ISystemDeviceEnumeratorSpy Interface"),
39        pointer_default(unique)
40]
41interface ISystemDeviceEnumeratorSpy : IDispatch
42{
43};
44[
45        object,
46        uuid(3D1AF248-DEF1-4E26-A071-FEDF15FED6A8),
47        dual,
48        oleautomation,
49        nonextensible,
50        helpstring("IFilterGraphHelper Interface"),
51        pointer_default(unique)
52]
53interface IFilterGraphHelper : IDispatch
54{
55        [id(DISPID_VALUE), propget] HRESULT FilterGraph([out, retval] IUnknown** ppFilterGraphUnknown);
56        [id(DISPID_VALUE), propput] HRESULT FilterGraph([in] IUnknown* pFilterGraphUnknown);
57        [id(1), propget] HRESULT Text([out, retval] BSTR* psText);
58};
59[
60        uuid(B9EC374B-834B-4DA9-BFB5-C1872CE736FF),
61        version(1.0),
62        helpstring("Alax.Info Filter Graph Spy 1.0 Type Library")
63]
64library AlaxInfoDirectShowSpy
65{
66        importlib("stdole2.tlb");
67        [
68                object,
69                uuid(ACBECDFD-D8CA-49c8-B799-D23225D5BFAD),
70                nonextensible,
71                helpstring("IFilterGraphAddRemoveHook Interface"),
72                pointer_default(unique)
73        ]
74        interface IFilterGraphAddRemoveHook : IUnknown
75        {
76                HRESULT OnAddFilter([in] ISpy* pSpy, [in] IUnknown* pBaseFilterUnknown, [in] LPCWSTR pszName, [in, out] BOOL* pbDefault);
77                HRESULT OnRemoveFilter([in] ISpy* pSpy, [in] IUnknown* pBaseFilterUnknown, [in, out] BOOL* pbDefault);
78                HRESULT OnAddSourceFilter([in] ISpy* pSpy, [in] LPCWSTR pszFileName, [in] LPCWSTR pszFilterName, [out] IUnknown** ppBaseFilterUnknown, [in, out] BOOL* pbDefault);
79                HRESULT OnAddSourceFilterForMoniker([in] ISpy* pSpy, [in] IUnknown* pMonikerUnknown, [in] IUnknown* pBindCtxUnknown, [in] LPCWSTR pszFilterName, [out] IUnknown** ppBaseFilterUnknown, [in, out] BOOL* pbDefault);
80        };
81        [
82                object,
83                uuid(D0F4C168-D09D-481e-903D-7461CE69E391),
84                nonextensible,
85                helpstring("IFilterGraphConnectHook Interface"),
86                pointer_default(unique)
87        ]
88        interface IFilterGraphConnectHook : IUnknown
89        {
90                HRESULT OnConnectDirect([in] ISpy* pSpy, [in] IUnknown* pOutputPinUnknown, [in] IUnknown* pInputPinUnknown, [in] const BYTE* pMediaTypeData, [in, out] BOOL* pbDefault);
91                HRESULT OnReconnect([in] ISpy* pSpy, [in] IUnknown* pPinUnknown, [in, out] BOOL* pbDefault);
92                HRESULT OnDisconnect([in] ISpy* pSpy, [in] IUnknown* pPinUnknown, [in, out] BOOL* pbDefault);
93                HRESULT OnConnect([in] ISpy* pSpy, [in] IUnknown* pOutputPinUnknown, [in] IUnknown* pInputPinUnknown, [in, out] BOOL* pbDefault);
94                HRESULT OnReconnectEx([in] ISpy* pSpy, [in] IUnknown* pPinUnknown, [in] const BYTE* pMediaTypeData, [in, out] BOOL* pbDefault);
95        };
96        [
97                object,
98                uuid(65FA1519-A935-4fa9-A15D-9426457E02F6),
99                nonextensible,
100                helpstring("IFilterGraphStateControlHook Interface"),
101                pointer_default(unique)
102        ]
103        interface IFilterGraphStateControlHook : IUnknown
104        {
105                HRESULT OnRun([in] ISpy* pSpy, [in, out] BOOL* pbDefault);
106                HRESULT OnPause([in] ISpy* pSpy, [in, out] BOOL* pbDefault);
107                HRESULT OnStop([in] ISpy* pSpy, [in, out] BOOL* pbDefault);
108        };
109        [
110                uuid(F552C23D-F088-41C3-A080-8464D7BB9BAD),
111                helpstring("Spy Class")
112        ]
113        coclass Spy
114        {
115                [default] interface ISpy;
116        };
117        [
118                uuid(2C281C40-8853-4a30-99D3-9DCFF2C015C9),
119                helpstring("NoThreadSpy Class")
120        ]
121        coclass NoThreadSpy
122        {
123                [default] interface ISpy;
124        };
125        [
126                uuid(B6274D9B-1AD3-4c32-83C5-35DC33CAFF47),
127                helpstring("FilterMapperSpy Class")
128        ]
129        coclass FilterMapperSpy
130        {
131                [default] interface IFilterMapperSpy;
132        };
133        [
134                uuid(AD42E3BD-7B9B-4783-9DA2-61A9ACD0D4D2),
135                helpstring("SystemDeviceEnumeratorSpy Class")
136        ]
137        coclass SystemDeviceEnumeratorSpy
138        {
139                [default] interface ISystemDeviceEnumeratorSpy;
140        };
141        [
142                uuid(5A9A684C-A891-4032-8D31-FF6EAB5A0C1E),
143                helpstring("FilterGraphHelper Class")
144        ]
145        coclass FilterGraphHelper
146        {
147                [default] interface IFilterGraphHelper;
148        };
149};
Note: See TracBrowser for help on using the repository browser.