ReactOS 0.4.15-dev-5672-gf73ac17
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
31interface 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
46typedef struct {
47 const GUID* riid;
50
51/* classfactory.cpp */
52
56 PLONG pcRefDll,
57 IID * riidInst);
58
59/* datatype.cpp */
63 IUnknown * pUnkOuter,
65 LPVOID * ppv);
66
67/* interface.cpp */
71 IUnknown * pUnkOuter,
73 LPVOID * ppv);
74
75/* clockforward.cpp */
79 IUnknown * pUnkOuter,
81 LPVOID * ppv);
82
83/* qualityforward.cpp */
87 IUnknown * pUnkOuter,
89 LPVOID * ppv);
90
91/* cvpconfig.cpp */
95 IUnknown * pUnkOuter,
97 LPVOID * ppv);
98
99/* cvpvbiconfig.cpp */
101WINAPI
103 IUnknown * pUnkOuter,
104 REFIID riid,
105 LPVOID * ppv);
106
107/* basicaudio.cpp */
109WINAPI
111 IUnknown * pUnkOuter,
112 REFIID riid,
113 LPVOID * ppv);
114
115/* proxy.cpp */
117WINAPI
119 IUnknown * pUnkOuter,
120 REFIID riid,
121 LPVOID * ppv);
122
123/* input_pin.cpp */
125WINAPI
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 */
137WINAPI
139 IBaseFilter * ParentFilter,
140 LPCWSTR PinName,
141 ULONG PinId,
142 KSPIN_COMMUNICATION Communication,
143 REFIID riid,
144 LPVOID * ppv);
145
149 IPin * Pin,
150 KSSTATE State);
151
152/* enumpins.cpp */
154WINAPI
156 std::vector<IPin*> Pins,
157 REFIID riid,
158 LPVOID * ppv);
159
160/* enum_mediatypes.cpp */
162WINAPI
164 ULONG MediaTypeCount,
165 AM_MEDIA_TYPE * MediaTypes,
166 REFIID riid,
167 LPVOID * ppv);
168
169/* node.cpp */
171WINAPI
173 IUnknown * pUnkOuter,
174 HANDLE ParentHandle,
175 ULONG NodeId,
177 REFIID riid,
178 LPVOID * ppv);
179
180/* allocator.cpp */
182WINAPI
184 IUnknown * pUnkOuter,
185 REFIID riid,
186 LPVOID * ppv);
187
188/* mediasample.cpp */
190WINAPI
192 IMemAllocator* Allocator,
193 BYTE* pBuffer,
195 REFIID riid,
196 LPVOID * ppv);
197
198
199extern const GUID IID_IKsObject;
200extern const GUID IID_IKsPinEx;
201extern const GUID IID_IKsAggregateControl;
202extern const GUID IID_IKsPinPipe;
203extern const GUID IID_IKsPinFactory;
204extern const GUID IID_IKsAllocatorEx;
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define THIS
Definition: basetyps.h:66
#define PURE
Definition: basetyps.h:64
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
const GUID IID_IKsObject
HRESULT(CALLBACK * LPFNCREATEINSTANCE)(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObject)
Definition: precomp.h:22
IClassFactory * CClassFactory_fnConstructor(LPFNCREATEINSTANCE lpfnCI, PLONG pcRefDll, IID *riidInst)
HRESULT WINAPI COutputPin_Constructor(IBaseFilter *ParentFilter, LPCWSTR PinName, ULONG PinId, KSPIN_COMMUNICATION Communication, REFIID riid, LPVOID *ppv)
HRESULT WINAPI CVPVBIConfig_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
HRESULT WINAPI CKsProxy_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: proxy.cpp:3159
HRESULT STDMETHODCALLTYPE COutputPin_SetState(IPin *Pin, KSSTATE State)
HRESULT WINAPI CEnumPins_fnConstructor(std::vector< IPin * > Pins, REFIID riid, LPVOID *ppv)
Definition: enumpins.cpp:151
HRESULT WINAPI CKsAllocator_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: allocator.cpp:603
KSPIN_MEDIUM StandardPinMedium
Definition: input_pin.cpp:21
HRESULT WINAPI CMediaSample_Constructor(IMemAllocator *Allocator, BYTE *pBuffer, ULONG BufferSize, REFIID riid, LPVOID *ppv)
HRESULT WINAPI CKsInterfaceHandler_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: interface.cpp:478
HRESULT WINAPI CKsNode_Constructor(IUnknown *pUnkOuter, HANDLE ParentHandle, ULONG NodeId, ACCESS_MASK DesiredAccess, REFIID riid, LPVOID *ppv)
Definition: node.cpp:115
HRESULT WINAPI CKsClockForwarder_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
HRESULT WINAPI CKsQualityForwarder_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
const GUID IID_IKsPinFactory
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_INTERFACE StandardPinInterface
Definition: input_pin.cpp:14
const GUID IID_IKsAggregateControl
Definition: proxy.cpp:16
const GUID IID_IKsAllocatorEx
Definition: allocator.cpp:11
HRESULT WINAPI CEnumMediaTypes_fnConstructor(ULONG MediaTypeCount, AM_MEDIA_TYPE *MediaTypes, REFIID riid, LPVOID *ppv)
const GUID IID_IKsPinEx
Definition: input_pin.cpp:12
HRESULT WINAPI CKsDataTypeHandler_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: datatype.cpp:228
HRESULT WINAPI CKsBasicAudio_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: basicaudio.cpp:272
const GUID IID_IKsPinPipe
Definition: input_pin.cpp:11
HRESULT WINAPI CVPConfig_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
Definition: cvpconfig.cpp:336
#define CALLBACK
Definition: compat.h:35
LPFNCREATEINSTANCE lpfnCI
Definition: shellole.c:61
IN PDCB IN VBO IN ULONG IN BOOLEAN Pin
Definition: fatprocs.h:427
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
Definition: axcore.idl:92
KSSTATE
Definition: ks.h:1214
KSPIN_COMMUNICATION
Definition: ks.h:1253
ULONG ACCESS_MASK
Definition: nt_native.h:40
#define REFIID
Definition: guiddef.h:118
PVOID pBuffer
#define DECLSPEC_UUID(x)
Definition: rpcndr.h:161
int32_t * PLONG
Definition: typedefs.h:58
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
Definition: wdfdevice.h:2658
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082
#define HRESULT
Definition: msvc.h:7
#define WINAPI
Definition: msvc.h:6
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
unsigned char BYTE
Definition: xxhash.c:193