ReactOS 0.4.15-dev-7953-g1f49173
precomp.h File Reference
#include <dshow.h>
#include <ks.h>
#include <ksproxy.h>
#include <stdio.h>
#include <wchar.h>
#include <tchar.h>
#include <uuids.h>
#include <bdatypes.h>
#include <bdaiface.h>
#include <bdamedia.h>
#include <tuner.h>
#include <assert.h>
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 MSVIDCTL_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 CTuningSpaceContainer_fnConstructor (IUnknown *pUnknown, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI CTuningSpace_fnConstructor (IUnknown *pUnknown, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI CTuneRequest_fnConstructor (IUnknown *pUnknown, ITuningSpace *TuningSpace, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI CEnumTuningSpaces_fnConstructor (IUnknown *pUnknown, REFIID riid, LPVOID *ppv)
 

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.

◆ MSVIDCTL_TRACE

#define MSVIDCTL_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 22 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

Referenced by DllGetClassObject().

◆ CEnumTuningSpaces_fnConstructor()

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

Definition at line 114 of file enumtuningspaces.cpp.

118{
119 // construct device control
120 CEnumTuningSpaces * tuningspaces = new CEnumTuningSpaces();
121
122#ifdef MSVIDCTL_TRACE
126 swprintf(Buffer, L"CEnumTuningSpaces_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
128#endif
129
130 if (!tuningspaces)
131 return E_OUTOFMEMORY;
132
133 if (FAILED(tuningspaces->QueryInterface(riid, ppv)))
134 {
135 /* not supported */
136 delete tuningspaces;
137 return E_NOINTERFACE;
138 }
139
140 return NOERROR;
141}
Definition: bufpool.h:45
STDMETHODIMP QueryInterface(REFIID InterfaceId, PVOID *Interface)
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define MAX_PATH
Definition: compat.h:34
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 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

Referenced by CTuningSpaceContainer::get_EnumTuningSpaces().

◆ CTuneRequest_fnConstructor()

HRESULT WINAPI CTuneRequest_fnConstructor ( IUnknown pUnknown,
ITuningSpace TuningSpace,
REFIID  riid,
LPVOID ppv 
)

Definition at line 303 of file tunerequest.cpp.

308{
309 // construct device control
310 CTuneRequest * request = new CTuneRequest(TuningSpace);
311
312#ifdef MSVIDCTL_TRACE
316 swprintf(Buffer, L"CTuneRequest_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
318#endif
319
320 if (!request)
321 return E_OUTOFMEMORY;
322
323 if (FAILED(request->QueryInterface(riid, ppv)))
324 {
325 /* not supported */
326 delete request;
327 return E_NOINTERFACE;
328 }
329
330 return NOERROR;
331}
Definition: tftpd.h:86

Referenced by CTuningSpace::CreateTuneRequest().

◆ CTuningSpace_fnConstructor()

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

Definition at line 336 of file tuningspace.cpp.

340{
341 // construct device control
343
344#ifdef MSVIDCTL_TRACE
348 swprintf(Buffer, L"CTuningSpace_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
350#endif
351
352 if (!space)
353 return E_OUTOFMEMORY;
354
355 if (FAILED(space->QueryInterface(riid, ppv)))
356 {
357 /* not supported */
358 delete space;
359 return E_NOINTERFACE;
360 }
361
362 return NOERROR;
363}

Referenced by CTuningSpaceContainer::get_Item(), and CEnumTuningSpaces::Next().

◆ CTuningSpaceContainer_fnConstructor()

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

Definition at line 245 of file tuningspace_container.cpp.

249{
250 // construct device control
252
253#ifdef MSVIDCTL_TRACE
257 swprintf(Buffer, L"CTuningSpaceContainer_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
259#endif
260
261 if (!provider)
262 return E_OUTOFMEMORY;
263
264 if (FAILED(provider->QueryInterface(riid, ppv)))
265 {
266 /* not supported */
267 delete provider;
268 return E_NOINTERFACE;
269 }
270
271 return NOERROR;
272}
STDMETHODIMP QueryInterface(REFIID InterfaceId, PVOID *Interface)