source: trunk/DirectShowSpy/DirectShowSpy.idl @ 247

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

Added ISpy methods, added IFilterGraphHelper methods for better GSN integration; Added property frame tree info tips and class descriptions; Added email credentials cleanup link and hints

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