ReactOS  0.4.12-dev-919-gfc3b8d5
precomp.h
Go to the documentation of this file.
1 #pragma once
2 
3 #define WIN32_NO_STATUS
4 #define WIN32_LEAN_AND_MEAN
5 
6 #define _FORCENAMELESSUNION
7 #define BUILDING_KS
8 #define _KSDDK_
9 #define KSPROXY_TRACE
10 #include <dshow.h>
11 //#include <streams.h>
12 #include <ks.h>
13 #define __STREAMS__
14 #include <ksproxy.h>
15 #include <devioctl.h>
16 #include <stdio.h>
17 //#include <wchar.h>
18 //#include <tchar.h>
19 //#include <uuids.h>
20 #include <dvp.h>
21 #include <vptype.h>
22 #include <vpconfig.h>
23 #include <setupapi.h>
24 #include <vector>
25 #include <stack>
26 #include <list>
27 #include <assert.h>
28 #include <ksmedia.h>
29 //#include <debug.h>
30 
31 interface DECLSPEC_UUID("877E4351-6FEA-11D0-B863-00AA00A216A1") IKsClock;
32 
33 #undef INTERFACE
34 #define INTERFACE IKsClock
35 
37 {
38  STDMETHOD_(HANDLE, KsGetClockHandle)(
39  THIS
40  ) PURE;
41 };
42 
43 
45 
46 typedef struct {
47  const GUID* riid;
50 
51 /* classfactory.cpp */
52 
56  PLONG pcRefDll,
57  IID * riidInst);
58 
59 /* datatype.cpp */
60 HRESULT
61 WINAPI
63  IUnknown * pUnkOuter,
64  REFIID riid,
65  LPVOID * ppv);
66 
67 /* interface.cpp */
68 HRESULT
69 WINAPI
71  IUnknown * pUnkOuter,
72  REFIID riid,
73  LPVOID * ppv);
74 
75 /* clockforward.cpp */
76 HRESULT
77 WINAPI
79  IUnknown * pUnkOuter,
80  REFIID riid,
81  LPVOID * ppv);
82 
83 /* qualityforward.cpp */
84 HRESULT
85 WINAPI
87  IUnknown * pUnkOuter,
88  REFIID riid,
89  LPVOID * ppv);
90 
91 /* cvpconfig.cpp */
92 HRESULT
93 WINAPI
95  IUnknown * pUnkOuter,
96  REFIID riid,
97  LPVOID * ppv);
98 
99 /* cvpvbiconfig.cpp */
100 HRESULT
101 WINAPI
103  IUnknown * pUnkOuter,
104  REFIID riid,
105  LPVOID * ppv);
106 
107 /* basicaudio.cpp */
108 HRESULT
109 WINAPI
111  IUnknown * pUnkOuter,
112  REFIID riid,
113  LPVOID * ppv);
114 
115 /* proxy.cpp */
116 HRESULT
117 WINAPI
119  IUnknown * pUnkOuter,
120  REFIID riid,
121  LPVOID * ppv);
122 
123 /* input_pin.cpp */
124 HRESULT
125 WINAPI
127  IBaseFilter * ParentFilter,
128  LPCWSTR PinName,
129  HANDLE hFilter,
130  ULONG PinId,
131  KSPIN_COMMUNICATION Communication,
132  REFIID riid,
133  LPVOID * ppv);
134 
135 /* output_pin.cpp */
136 HRESULT
137 WINAPI
139  IBaseFilter * ParentFilter,
140  LPCWSTR PinName,
141  ULONG PinId,
142  KSPIN_COMMUNICATION Communication,
143  REFIID riid,
144  LPVOID * ppv);
145 
146 HRESULT
149  IPin * Pin,
150  KSSTATE State);
151 
152 /* enumpins.cpp */
153 HRESULT
154 WINAPI
156  std::vector<IPin*> Pins,
157  REFIID riid,
158  LPVOID * ppv);
159 
160 /* enum_mediatypes.cpp */
161 HRESULT
162 WINAPI
164  ULONG MediaTypeCount,
165  AM_MEDIA_TYPE * MediaTypes,
166  REFIID riid,
167  LPVOID * ppv);
168 
169 /* node.cpp */
170 HRESULT
171 WINAPI
173  IUnknown * pUnkOuter,
174  HANDLE ParentHandle,
175  ULONG NodeId,
177  REFIID riid,
178  LPVOID * ppv);
179 
180 /* allocator.cpp */
181 HRESULT
182 WINAPI
184  IUnknown * pUnkOuter,
185  REFIID riid,
186  LPVOID * ppv);
187 
188 /* mediasample.cpp */
189 HRESULT
190 WINAPI
192  IMemAllocator* Allocator,
193  BYTE* pBuffer,
195  REFIID riid,
196  LPVOID * ppv);
197 
198 
199 extern const GUID IID_IKsObject;
200 extern const GUID IID_IKsPinEx;
201 extern const GUID IID_IKsAggregateControl;
202 extern const GUID IID_IKsPinPipe;
203 extern const GUID IID_IKsPinFactory;
204 extern const GUID IID_IKsAllocatorEx;
HRESULT WINAPI CEnumMediaTypes_fnConstructor(ULONG MediaTypeCount, AM_MEDIA_TYPE *MediaTypes, REFIID riid, LPVOID *ppv)
#define REFIID
Definition: guiddef.h:113
HRESULT WINAPI CKsDataTypeHandler_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: datatype.cpp:228
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define THIS
Definition: basetyps.h:66
REFIID riid
Definition: precomp.h:44
const GUID IID_IKsAllocatorEx
Definition: allocator.cpp:11
const GUID IID_IKsObject
#define CALLBACK
Definition: compat.h:27
REFIID LPVOID * ppv
Definition: atlbase.h:39
LPFNCREATEINSTANCE lpfnCI
Definition: shellole.c:61
HRESULT WINAPI CKsProxy_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: proxy.cpp:3159
HRESULT WINAPI CVPVBIConfig_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
HRESULT WINAPI CVPConfig_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: cvpconfig.cpp:336
KSPIN_INTERFACE StandardPinInterface
Definition: input_pin.cpp:14
IClassFactory * CClassFactory_fnConstructor(LPFNCREATEINSTANCE lpfnCI, PLONG pcRefDll, IID *riidInst)
HRESULT STDMETHODCALLTYPE COutputPin_SetState(IPin *Pin, KSSTATE State)
HRESULT(CALLBACK * LPFNCREATEINSTANCE)(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObject)
Definition: precomp.h:22
const GUID IID_IKsPinEx
Definition: input_pin.cpp:12
PVOID pBuffer
HRESULT WINAPI CKsQualityForwarder_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
const GUID IID_IKsAggregateControl
Definition: proxy.cpp:16
IN PDCB IN VBO IN ULONG IN BOOLEAN Pin
Definition: fatprocs.h:415
LONG HRESULT
Definition: typedefs.h:77
HRESULT WINAPI CEnumPins_fnConstructor(std::vector< IPin * > Pins, REFIID riid, LPVOID *ppv)
Definition: enumpins.cpp:151
#define WINAPI
Definition: msvc.h:8
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
#define BufferSize
Definition: classpnp.h:419
HRESULT WINAPI CKsAllocator_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: allocator.cpp:603
const GUID IID_IKsPinFactory
unsigned char BYTE
Definition: mem.h:68
REFIID LPVOID * ppvObject
Definition: precomp.h:44
HRESULT WINAPI CKsBasicAudio_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: basicaudio.cpp:272
DECLARE_INTERFACE_(ITrayWindow, IUnknown)
Definition: precomp.h:137
HRESULT WINAPI CKsInterfaceHandler_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: interface.cpp:478
HRESULT WINAPI CKsClockForwarder_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
HRESULT WINAPI CMediaSample_Constructor(IMemAllocator *Allocator, BYTE *pBuffer, ULONG BufferSize, REFIID riid, LPVOID *ppv)
HRESULT WINAPI CInputPin_Constructor(IBaseFilter *ParentFilter, LPCWSTR PinName, HANDLE hFilter, ULONG PinId, KSPIN_COMMUNICATION Communication, REFIID riid, LPVOID *ppv)
Definition: input_pin.cpp:1766
KSPIN_COMMUNICATION
Definition: ks.h:1283
interface DECLSPEC_UUID("877E4351-6FEA-11D0-B863-00AA00A216A1") IKsClock
KSSTATE
Definition: ks.h:1244
HRESULT WINAPI CKsNode_Constructor(IUnknown *pUnkOuter, HANDLE ParentHandle, ULONG NodeId, ACCESS_MASK DesiredAccess, REFIID riid, LPVOID *ppv)
Definition: node.cpp:115
Definition: axcore.idl:91
const GUID IID_IKsPinPipe
Definition: input_pin.cpp:11
_In_ PIO_STACK_LOCATION _Inout_ PFILE_OBJECT _Inout_ PVCB _Outptr_result_maybenull_ PDCB _In_ PDCB _In_ PDIRENT _In_ ULONG _In_ ULONG _In_ PUNICODE_STRING _In_ PACCESS_MASK DesiredAccess
Definition: create.c:4157
KSPIN_MEDIUM StandardPinMedium
Definition: input_pin.cpp:21
#define PURE
Definition: basetyps.h:64
unsigned int ULONG
Definition: retypes.h:1
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
typedef HRESULT(CALLBACK *LPFNCREATEINSTANCE)(IUnknown *pUnkOuter
signed int * PLONG
Definition: retypes.h:5
ULONG ACCESS_MASK
Definition: nt_native.h:40
HRESULT WINAPI COutputPin_Constructor(IBaseFilter *ParentFilter, LPCWSTR PinName, ULONG PinId, KSPIN_COMMUNICATION Communication, REFIID riid, LPVOID *ppv)