ReactOS 0.4.15-dev-8219-ge8b88cf
precomp.h File Reference
#include <dshow.h>
#include <ks.h>
#include <ksproxy.h>
#include <ksmedia.h>
#include <stdio.h>
#include <wchar.h>
#include <tchar.h>
#include <uuids.h>
#include <bdatypes.h>
#include <bdaiface.h>
#include <bdatif.h>
#include <bdamedia.h>
#include <tuner.h>
#include <assert.h>
#include <vector>
Include dependency graph for precomp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  INTERFACE_TABLE
 

Macros

#define MSDVBNP_TRACE
 
#define BUILDING_KS
 
#define _KSDDK_
 
#define __STREAMS__
 

Typedefs

typedef HRESULT(CALLBACKLPFNCREATEINSTANCE) (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObject)
 

Functions

IClassFactoryCClassFactory_fnConstructor (LPFNCREATEINSTANCE lpfnCI, PLONG pcRefDll, IID *riidInst)
 
HRESULT WINAPI CNetworkProvider_fnConstructor (IUnknown *pUnknown, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI CScanningTunner_fnConstructor (std::vector< IUnknown * > &m_DeviceFilter, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI CEnumPins_fnConstructor (IUnknown *pUnknown, ULONG NumPins, IPin **pins, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI CPin_fnConstructor (IUnknown *pUnknown, IBaseFilter *ParentFilter, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI CEnumMediaTypes_fnConstructor (IUnknown *pUnknown, ULONG MediaTypeCount, AM_MEDIA_TYPE *MediaTypes, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI CEthernetFilter_fnConstructor (IBDA_NetworkProvider *pNetworkProvider, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI CIPV6Filter_fnConstructor (IBDA_NetworkProvider *pNetworkProvider, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI CIPV4Filter_fnConstructor (IBDA_NetworkProvider *pNetworkProvider, REFIID riid, LPVOID *ppv)
 

Variables

const GUID CLSID_DVBTNetworkProvider
 

Macro Definition Documentation

◆ __STREAMS__

#define __STREAMS__

Definition at line 10 of file precomp.h.

◆ _KSDDK_

#define _KSDDK_

Definition at line 6 of file precomp.h.

◆ BUILDING_KS

#define BUILDING_KS

Definition at line 5 of file precomp.h.

◆ MSDVBNP_TRACE

#define MSDVBNP_TRACE

Definition at line 4 of file precomp.h.

Typedef Documentation

◆ LPFNCREATEINSTANCE

typedef HRESULT(CALLBACK * LPFNCREATEINSTANCE) (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObject)

Definition at line 25 of file precomp.h.

Function Documentation

◆ CClassFactory_fnConstructor()

IClassFactory * CClassFactory_fnConstructor ( LPFNCREATEINSTANCE  lpfnCI,
PLONG  pcRefDll,
IID riidInst 
)

Definition at line 91 of file classfactory.cpp.

95{
96 CClassFactory* factory = new CClassFactory(lpfnCI, pcRefDll, riidInst);
97
98 if (!factory)
99 return NULL;
100
101 if (pcRefDll)
102 InterlockedIncrement(pcRefDll);
103
104 return (LPCLASSFACTORY)factory;
105}
#define InterlockedIncrement
Definition: armddk.h:53
#define NULL
Definition: types.h:112
LPFNCREATEINSTANCE lpfnCI
Definition: shellole.c:61
Definition: main.c:439

◆ CEnumMediaTypes_fnConstructor()

HRESULT WINAPI CEnumMediaTypes_fnConstructor ( IUnknown pUnknown,
ULONG  MediaTypeCount,
AM_MEDIA_TYPE MediaTypes,
REFIID  riid,
LPVOID ppv 
)

Definition at line 157 of file enum_mediatypes.cpp.

163{
164 CEnumMediaTypes * handler = new CEnumMediaTypes(MediaTypeCount, MediaTypes);
165
166#ifdef MSDVBNP_TRACE
170 swprintf(Buffer, L"CEnumMediaTypes_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
172#endif
173
174 if (!handler)
175 {
176 CoTaskMemFree(MediaTypes);
177 return E_OUTOFMEMORY;
178 }
179
180 if (FAILED(handler->QueryInterface(riid, ppv)))
181 {
182 /* not supported */
183 delete handler;
184 return E_NOINTERFACE;
185 }
186
187 return NOERROR;
188}
Definition: bufpool.h:45
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define MAX_PATH
Definition: compat.h:34
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7482
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412
#define swprintf
Definition: precomp.h:40
_In_ PUNKNOWN pUnknown
Definition: drmk.h:76
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define FAILED(hr)
Definition: intsafe.h:51
static LPCSTR lpstr
Definition: font.c:51
static LPOLESTR
Definition: stg_prop.c:27
#define L(x)
Definition: ntvdm.h:50
#define E_NOINTERFACE
Definition: winerror.h:2364
#define NOERROR
Definition: winerror.h:2354
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ CEnumPins_fnConstructor()

HRESULT WINAPI CEnumPins_fnConstructor ( IUnknown pUnknown,
ULONG  NumPins,
IPin **  pins,
REFIID  riid,
LPVOID ppv 
)

Definition at line 149 of file enumpins.cpp.

155{
156 CEnumPins * handler = new CEnumPins(NumPins, pins);
157
158 if (!handler)
159 return E_OUTOFMEMORY;
160
161 if (FAILED(handler->QueryInterface(riid, ppv)))
162 {
163 /* not supported */
164 delete handler;
165 return E_NOINTERFACE;
166 }
167
168 return NOERROR;
169}

◆ CEthernetFilter_fnConstructor()

HRESULT WINAPI CEthernetFilter_fnConstructor ( IBDA_NetworkProvider pNetworkProvider,
REFIID  riid,
LPVOID ppv 
)

Definition at line 151 of file ethernetfilter.cpp.

155{
156 CEthernetFilter * filter = new CEthernetFilter(pNetworkProvider);
157
158 if (!filter)
159 return E_OUTOFMEMORY;
160
161 if (FAILED(filter->QueryInterface(riid, ppv)))
162 {
163 /* not supported */
164 delete filter;
165 return E_NOINTERFACE;
166 }
167
168 return NOERROR;
169}
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: glext.h:7005

◆ CIPV4Filter_fnConstructor()

HRESULT WINAPI CIPV4Filter_fnConstructor ( IBDA_NetworkProvider pNetworkProvider,
REFIID  riid,
LPVOID ppv 
)

Definition at line 152 of file ipv4.cpp.

156{
157 CIPV4Filter * filter = new CIPV4Filter(pNetworkProvider);
158
159 if (!filter)
160 return E_OUTOFMEMORY;
161
162 if (FAILED(filter->QueryInterface(riid, ppv)))
163 {
164 /* not supported */
165 delete filter;
166 return E_NOINTERFACE;
167 }
168
169 return NOERROR;
170}

Referenced by CNetworkProvider::QueryInterface().

◆ CIPV6Filter_fnConstructor()

HRESULT WINAPI CIPV6Filter_fnConstructor ( IBDA_NetworkProvider pNetworkProvider,
REFIID  riid,
LPVOID ppv 
)

Definition at line 149 of file ipv6.cpp.

153{
154 CIPV6Filter * filter = new CIPV6Filter(pNetworkProvider);
155
156 if (!filter)
157 return E_OUTOFMEMORY;
158
159 if (FAILED(filter->QueryInterface(riid, ppv)))
160 {
161 /* not supported */
162 delete filter;
163 return E_NOINTERFACE;
164 }
165
166 return NOERROR;
167}

Referenced by CNetworkProvider::QueryInterface().

◆ CNetworkProvider_fnConstructor()

HRESULT WINAPI CNetworkProvider_fnConstructor ( IUnknown pUnknown,
REFIID  riid,
LPVOID ppv 
)

Definition at line 552 of file networkprovider.cpp.

556{
558
559#ifdef MSDVBNP_TRACE
563 swprintf(Buffer, L"CNetworkProvider_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
565#endif
566
567 if (!handler)
568 return E_OUTOFMEMORY;
569
570 if (FAILED(handler->QueryInterface(riid, ppv)))
571 {
572 /* not supported */
573 delete handler;
574 return E_NOINTERFACE;
575 }
576 return NOERROR;
577}
const GUID CLSID_DVBTNetworkProvider

◆ CPin_fnConstructor()

HRESULT WINAPI CPin_fnConstructor ( IUnknown pUnknown,
IBaseFilter ParentFilter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 318 of file pin.cpp.

323{
324 CPin * handler = new CPin(ParentFilter);
325
326#ifdef MSDVBNP_TRACE
330 swprintf(Buffer, L"CPin_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
332#endif
333
334 if (!handler)
335 return E_OUTOFMEMORY;
336
337 if (FAILED(handler->QueryInterface(riid, ppv)))
338 {
339 /* not supported */
340 delete handler;
341 return E_NOINTERFACE;
342 }
343
344 return NOERROR;
345}
Definition: pin.cpp:17

Referenced by CNetworkProvider::EnumPins().

◆ CScanningTunner_fnConstructor()

HRESULT WINAPI CScanningTunner_fnConstructor ( std::vector< IUnknown * > &  m_DeviceFilter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 696 of file scanningtuner.cpp.

700{
701 CScanningTunner * handler = new CScanningTunner(DeviceFilter);
702
703#ifdef MSDVBNP_TRACE
707 swprintf(Buffer, L"CScanningTunner_fnConstructor riid %s\n", lpstr);
709#endif
710
711 if (!handler)
712 return E_OUTOFMEMORY;
713
714 if (FAILED(handler->QueryInterface(riid, ppv)))
715 {
716 /* not supported */
717 delete handler;
718 return E_NOINTERFACE;
719 }
720
721 return NOERROR;
722}

Referenced by CNetworkProvider::QueryInterface().

Variable Documentation

◆ CLSID_DVBTNetworkProvider

const GUID CLSID_DVBTNetworkProvider
extern